Skip to main content
Known Participant
June 4, 2017
Answered

Looping Issue

  • June 4, 2017
  • 2 replies
  • 539 views

I'm working on a project with two scenes.  Scene was has a robot walking that fades to black..  Scene 2 is similar to this: How to create a Mask Effect in Flash - YouTube

The problem I'm having is the robots loop cycle.  It loops through scene 1 and 2 nonstop.  I've done some research and found this.Scene1.stop(); and put it on the last frame of scene 1 then scene 2.  At the end of scene 1 it stops at the end of scene 1  At the end of scene 2 it stops at the end of the scene but then I can't move the cursor either.  Any help will be greatly appreciated. Thank you.

    This topic has been closed for replies.
    Correct answer Colin Holgate

    You can select the movieclip on the stage and in Properties set it to be Graphic. No need to remake it.

    It can even stay as movieclip in the Library, but as that could confuse things later you can also set it to be Graphic in the properties panel for the library symbol.

    2 replies

    Known Participant
    June 10, 2017

    Answer found.  The issue was I made it as a movie clip which loops.  I have to remake it as a graphic and I can select play once.

    Colin Holgate
    Colin HolgateCorrect answer
    Inspiring
    June 10, 2017

    You can select the movieclip on the stage and in Properties set it to be Graphic. No need to remake it.

    It can even stay as movieclip in the Library, but as that could confuse things later you can also set it to be Graphic in the properties panel for the library symbol.

    Colin Holgate
    Inspiring
    June 4, 2017

    Is the robot in the timeline, or are you adding it with code?

    I haven't heard of this.Scene1.stop();

    Normally if the robot is in the timeline, and it exists in scene 1 but not in scene 2, you should only see it in scene 1. If you added it with code you would want to remove it with code in the last frame of scene 1, or the first frame of scene 2.

    Known Participant
    June 5, 2017

    The robot is in the timeline.  No code was used to add it.

    "this.Scene1.stop(); is actionscript code supposed to be added to the last fram of it's layer

    in order to halt the loop, and go into scene 2 which is a game of find the object, in this case the

    body parts of the robot.

    Currently it just loops through scene 1 and 2.

    Legend
    June 5, 2017

    You really shouldn't be using scenes at all.