I would like to add a message that says "Click Play to replay the movie, or choose another movie to the left" (we have a whole list of other movies as well). How can I make this frame display when the FLV is done playing?
Thanks for your help!
Printable View
I would like to add a message that says "Click Play to replay the movie, or choose another movie to the left" (we have a whole list of other movies as well). How can I make this frame display when the FLV is done playing?
Thanks for your help!
Just a couple ideas, not sure exactly how to implement them though. You could edit your video so that the last frame is that image saying what to do and re-export to flv. But if you needed to do that for allll your videos that might take forever.
Or maybe you could do something like make the image a graphic and set it's alpha to zero and put it on a layer above the video. Then use the FLV on complete method to tell it to set it's alpha to 100 after the flv finishes. Then tell it to set back to 0 when the user clicks a button.
Just a couple ideas I had right off the top of my head. Hope it helped. :)
I just need the action script for when an FLV is done playing, show frame number X (that frame will say what I need it to). Any idea how to do that?
Give this a try. "my_FLV" should be the instance name of the FLV component, you'll have to change that to whatever it is that you've named it. But you would put this on the same frame as the component.
Code:var listenerObject:Object = new Object();
listenerObject.complete = function (eventObject:Object): Void{
_root.gotoAndPlay(frame number here);
}
my_FLV.addEventListener("complete",listenerObject);
I did this, but it just skips right to the 2nd frame. My actionscript is...
var listenerObject:Object = new Object();
listenerObject.complete = function (eventObject:Object): Void{
_root.gotoAndPlay(2);
}
jetdock.addEventListener("complete",listenerObject );
"jetdock" is the instance name I gave to the player.
do u have a stop(); on that frame too?
Works fer me
toptip !
@layerburn: great help for me ! works like a charm;)
tnx,
ovidiu