Monday, March 29, 2010

Simple Flash Video Cue Point Problem (I...

Hello everyone. Quick question. After I have added a cue
point to an end of a video, how can I have the cue point trigger an
action such as ''gotoAndPlay'' or ''fscommand(''quit'');'' etc.?



I thought this would be an easy thing to find by checking on
the various websties for other posts or tutorials but nothing I
found addressed this. Any info will be most appreciated.
Thanks.Simple Flash Video Cue Point Problem (I...
You don't even need a cuepoint to do this.



Using the FLVComponent or the VideoPlayer object, use the
''complete'' event to execute code. You set up an event listener
object to listen to the video object (using
videoobject.addEventListener(listenerObject) ), and create a
function for the listener object to do when the ''complete'' event
occurs (such as listenerObject.complete = function() { do whatever
};).



Here's a link to a useful pdf about the VideoPlayer object.




http://download.macromedia.com/pub/documentation/en/flash/fl8/VideoPlayer.pdf

No comments:

Post a Comment