FORUMS: list search recent posts

FLV to next scene

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Capps
FLV to next scene
on Mar 14, 2006 at 11:47:38 pm

I have an FLV video that plays in a scene by itself, when it is over I would like it to proceed automatically to the next scene. Is there any way to do that?


Return to posts index

lajoiet
Re: FLV to next scene
on Mar 15, 2006 at 2:15:26 am

Just set up an onStatus function for your NetStream object and watch for the message when the video has stopped playing, then use the nextScene() command to send the playhead to the begining of the next scene (the followind example assumes your netstream object has a name of "ns"):

ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Stop") {
nextScene();
}
}

>Todd
_____________________________________

I'm filling a need. Without me there would be no bad examples.
_____________________________________


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]