Question
Replaying a video
Hello,
I'm new to using AS3 and was hoping someone can help me out with the code to replay a video once it completes. I pasted an example of the code I use in AS2 and it works perfectly.
My goal is to run the movie keeping the replay button or movie clip invisible until the movie ends.
AS2 example-
replayClip._visible = false;
var playbackComplete:Object = new Object();
playbackComplete.complete = function(eventObject:Object):Void {
child.stop();
replayClip._visible = true;
replayClip.gotoAndPlay(1);
};
child.addEventListener("complete", playbackComplete);
Thanks for your help.
I'm new to using AS3 and was hoping someone can help me out with the code to replay a video once it completes. I pasted an example of the code I use in AS2 and it works perfectly.
My goal is to run the movie keeping the replay button or movie clip invisible until the movie ends.
AS2 example-
replayClip._visible = false;
var playbackComplete:Object = new Object();
playbackComplete.complete = function(eventObject:Object):Void {
child.stop();
replayClip._visible = true;
replayClip.gotoAndPlay(1);
};
child.addEventListener("complete", playbackComplete);
Thanks for your help.