How to gotoAndplay next scene after playing a video clip

Actionscript 2.0 questions.

How to gotoAndplay next scene after playing a video clip

Postby kisianhsang » Tue Apr 03, 2012 4:39 pm

I have a video clip in scene 1 and drag it to my scene with instance name:"newvideo".
I put it in a frame with action script2.0:
Code: Select all
stop();
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
    gotoAndStop("End",1);
};
newvideo.addEventListener("complete", listenerObject);

My video play correctly until it finished. But it doesn't play next scence automatically. And in next scene I have a video too, so I have to gotoAndStop(); it.
Please help me, any one! Thanks a lot for your helps! I have tried too much time with another code! (And I'm so sorry about my english :D)
kisianhsang
 
Posts: 1
Joined: Tue Apr 03, 2012 4:18 pm
Flash Version: Adobe Flash CS5

Return to Actionscript 2.0

Who is online

Users browsing this forum: No registered users and 1 guest

cron