• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cannot stop animaiton in order to put a button

Community Beginner ,
Nov 16, 2009 Nov 16, 2009

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  2.JPG1.JPG

I also uploaded half of my animation in .fla format but its ziped

TOPICS
ActionScript

Views

855

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

your lower image shows the stop() is not attached to any of the frames in the image.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

How can i attach it sorry am new at flash

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

Never mind i posted hte wrongscreen shot heres the one with the code attached to a frame1.JPG

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

does your timeline stop on frame 2 when you test (while viewing the "streaming graph")?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

it stops for a few seconds and then continues

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 16, 2009 Nov 16, 2009

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 16, 2009 Nov 16, 2009

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 16, 2009 Nov 16, 2009

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

forum malfunciton duplicated post

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 16, 2009 Nov 16, 2009

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

lol

forum malfunciton

disregard this post

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

LATEST

tahnk you but i solved the problem by changeing my settigns form actionscript 3.0 to action script 2.0 now the code works

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

attached the file i made

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines