-
Adding "Play Again" Message to the end of the Movie
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!
-
Senior Member
-
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?
-
Senior Member
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);
This is your brain. This is your brain on script.
-
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.
-
Senior Member
do u have a stop(); on that frame too?
This is your brain. This is your brain on script.
-
-
infidel!
@layerburn: great help for me ! works like a charm
tnx,
ovidiu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|