Oxity
05-29-2008, 12:24 AM
I need help with how to get a a mouse event to play a movie clip and wait for it to finish playing and then go to and play a different movie clip.
This is some idea of the code I am looking for.
button.addEventListener(MouseEvent.CLICK, clickHandler_1);
function clickHandler_1(event:MouseEvent)
(
movieclip1.play(1);
\\ once movieclip1 reaches last frame then
movieclip2.play(1);
);
Also I am looking for some code to do this.
button.addEventListener(MouseEvent.CLICK, clickHandler_1);
function clickHandler_1(event:MouseEvent)
(
gotAndPlay("action");
\\ once timeline reaches say frame label "endAction" then play movieclip2
movieclip2.play(1);
);
Thanks in advance - Dave
This is some idea of the code I am looking for.
button.addEventListener(MouseEvent.CLICK, clickHandler_1);
function clickHandler_1(event:MouseEvent)
(
movieclip1.play(1);
\\ once movieclip1 reaches last frame then
movieclip2.play(1);
);
Also I am looking for some code to do this.
button.addEventListener(MouseEvent.CLICK, clickHandler_1);
function clickHandler_1(event:MouseEvent)
(
gotAndPlay("action");
\\ once timeline reaches say frame label "endAction" then play movieclip2
movieclip2.play(1);
);
Thanks in advance - Dave