Or add a Cuepoint on a instance of your media component

var movieEndTime = 5; // end time of your movie
myMediaComponent.addCuePoint("endOfMovie", movieEndTime ); //
var cueListener   = new Object();
cueListener.cuePoint  = function(eventObject){
   trace(eventObject.cuePointName);
}

myMediaComponent.addEventListener("cuePoint", cueListener);



----- Original Message ----- From: "JesterXL" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Friday, November 04, 2005 10:50 PM
Subject: Re: [Flashcoders] placing an action at the end of a FLV video!


That's stopped, not finished. Finished is NetStream.Play.Stop followed immediately by a NetStream.Buffer.Empty.


----- Original Message ----- From: "Jason Lutes" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, November 04, 2005 10:07 AM
Subject: Re: [Flashcoders] placing an action at the end of a FLV video!


I have a swf that calls a flv on my server. The swf loads into a
movieclip on the main swf. I need the loaded swf with the flv to
load the default swf..(home.swf) into the mailloader clip when the
flv is finished.

How are you loading/playing the FLV?

If you're doing it via NetStream, just use something like the following.

yourNetStreamObject.onStatus(status:Object):Void {
 if (status.code == 'NetStream.Play.Stop') {
   // Place your code for loading the default SWF here.
 }
}

As soon as the FLV stream playback completes, the code will execute.


-
pixelTwiddler, a.k.a. Jason



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


__________ NOD32 1.1277 (20051105) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to