Copy link to clipboard
Copied
Hi i cannot stop my animaiton in order for me to put a start button to make the animaitoin start when the start button is clicked on. I put the code stop(); into one of the begining frames but it still played . I am using action script 3 on CS4
This is the frames i have and the code i tried to put in
I also uploaded half of my animation in .fla format but its ziped
Copy link to clipboard
Copied
your lower image shows the stop() is not attached to any of the frames in the image.
Copy link to clipboard
Copied
How can i attach it sorry am new at flash
Copy link to clipboard
Copied
Never mind i posted hte wrongscreen shot heres the one with the code attached to a frame
Copy link to clipboard
Copied
does your timeline stop on frame 2 when you test (while viewing the "streaming graph")?
Copy link to clipboard
Copied
it stops for a few seconds and then continues
Copy link to clipboard
Copied
then there must be code somewhere causing it to continue or you're pressing some keyboard key and making the timeline play.
Copy link to clipboard
Copied
i do not know baout the code that might cause it to not ot stop but i am not pressing nothing just the enter button thats it
Copy link to clipboard
Copied
I downloaded your file and ran it, no problem--it stops, doesn't go anywhere.
There isn't any code other than the stop(); command.
I created a new layer for your actions and put this in:
stop();
stage.addEventListener(MouseEvent.CLICK, driveOff);
function driveOff(event:MouseEvent):void{
stage.removeEventListener(MouseEvent.CLICK, driveOff);
gotoAndPlay(2);
}
works fine...I attched the file.
HTH
-Ted
Copy link to clipboard
Copied
forum malfunciton duplicated post
Copy link to clipboard
Copied
It worked fine for me...
I created a new layer for your actions and put this there--moving the stop command from where you had it..
stop();
stage.addEventListener(MouseEvent.CLICK, driveOff);
function driveOff(event:MouseEvent):void{
stage.removeEventListener(MouseEvent.CLICK, driveOff);
gotoAndPlay(2);
}
HTH
-Ted
Copy link to clipboard
Copied
lol
forum malfunciton
disregard this post
Copy link to clipboard
Copied
tahnk you but i solved the problem by changeing my settigns form actionscript 3.0 to action script 2.0 now the code works
Copy link to clipboard
Copied