A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: goto scene2 with mc?

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    2

    Lightbulb

    Hello!

    I have a problem using buttons in a movieclip. There are a few buttons in a mc, when I click on one of them i want to jump to Scene2. But I cannot use the dropdown menu to select the Scene?!

    How can I go to another Scene with a Button in a Movieclip?Anyone can help me??

    Tom
    skiracer9999@aol.com

  2. #2
    Unfortunately you can't change Scenes from within a MC directly using the pull-down menu. One way is to move the main timeline to a frame that will change scenes for you.

    Button:
    On (Press)
    Set Variable: "/:sceneChange" = 2
    End On
    On (Release)
    Begin Tell Target ("/")
    Go to and Play (2)
    End Tell Target
    End On

    In frame 2 of the main timeline, place the following:

    If (sceneChange = 2)
    Go to and Play (Scene 2, 1)
    End If

    This will allow you to control Scene changes from withing embedded MCs.

    Cheers,
    Markus B

  3. #3
    Senior Member dipkya's Avatar
    Join Date
    Mar 2001
    Location
    Mumbai (India)
    Posts
    158

    Use lables

    Hi
    Hey its possible by using frame lables.
    Inside your mc on your button use following script.
    On (Release)
    Begin Tell Target ("/")
    Go to and Stop ("mm")
    End Tell Target
    End On
    (here mm is a lable on main timeline in another scene.)

  4. #4
    Junior Member
    Join Date
    Jun 2001
    Posts
    2
    Thank you for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center