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

animation keeps running through. I want it to stop on main menu so i can click buttons

New Here ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

animation keeps running through. I want it to stop on main menu so i can click buttons which navigate to different scenes. Please help I am a noob.

here are screen shots of what i have going on:

Screen shot 2013-09-06 at 1.25.57 PM.pngMain time line "home" menu

Screen shot 2013-09-06 at 1.27.22 PM.pngscript in frame 1

Screen shot 2013-09-06 at 1.27.57 PM.pngscript in frame 48

Screen shot 2013-09-06 at 1.30.50 PM.pngscene 2 animation of shape tween which isnt supposed to run all the way through past the home page. I want it to animate but only after i click the button to do so.

Screen shot 2013-09-06 at 1.30.58 PM.pngscript for this scene

Screen shot 2013-09-06 at 1.31.12 PM.pngscene 3 which is causing all the issues i think? supposed to be able to drag boxes. but it just runs through without stopping when i play it.

here is the compiler errors:

Screen shot 2013-09-06 at 1.43.07 PM.png

TOPICS
ActionScript

Views

750

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

correct answers 1 Correct answer

LEGEND , Sep 06, 2013 Sep 06, 2013

If you removed the stop() from scene 2 it will not stop there it will return to wherever "home" is.

If you intend to have the timeline stop at some frame, then you need to place a stop() command in that frame, or use a gotoAndStop() command.

If you are going to use scenes  be consistent with the way you write the goto commands. The use of is rarely recommended - instead, use different sections of the timeline of just one scene, or use movieclips and control their visibility, or a combination of bo

...

Votes

Translate

Translate
LEGEND ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

You need to fix the errors before the file will have a chance of playing right.  What is line 23 of frame 88?

If you have scenes then to find frame 88 you will have to add the frames starting from frame 1 of scene 1

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
New Here ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

i dont have an 88th frame but it was referring to my

gotoAndPlay(“home”)

on line 23 of the asin scene 3

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
LEGEND ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

How many frames do you have in each scene (reread my last posting's last sentence).

Also, that gotoAndPlay("home"); on line 23 of the last screenshot means you are not going to be staying in that frame at all.

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
New Here ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

i have 20 in scene 1

49 in scene 2

and 20 in scene 3

i got rid of the

gotoAndPlay("home"); on line 23

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
LEGEND ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

What about the same line that's in Scene 2?  It doesn't make sense to have a stop() and a gotoAndPlay() in the same set of code.

Do you still get that frame 88 error after removing the scene 3 line?

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
New Here ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

yes. the frame 88 error was gone after removing the scene 3 line.

i have fixed that problem.

i  removed the stop from scene 2 and added the Scene 1 in addition to the label "home" becaue it couldnt find it. Now the button to scene 2 doesn't work at all.

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
LEGEND ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

LATEST

If you removed the stop() from scene 2 it will not stop there it will return to wherever "home" is.

If you intend to have the timeline stop at some frame, then you need to place a stop() command in that frame, or use a gotoAndStop() command.

If you are going to use scenes  be consistent with the way you write the goto commands. The use of is rarely recommended - instead, use different sections of the timeline of just one scene, or use movieclips and control their visibility, or a combination of both.

If you continue to have issues, try simplifying first - build/add the navigation for one section at a time instead of trying to get it all in one shot.

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