A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Is this IMPOSSIBLE?

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Location
    Virginia, USA
    Posts
    437
    I have posted this question before but not too clear, so I deleted it and make a new thread.

    Simple movie contains 2 scenes. Scene 1 has a movie clip named A. Inside A, there is a button. I want to move to a NEXT scence on the main time line everytime I clik that the button in MC A.

    Using nextScene(), preScene() is possible with this? Or I have to label the scene, and using gotoAndPlay()? I don't want to label the scenes becuz the movie can get up 100 scenes.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    148
    to go to the next scene using nextScene(); on a button inside a MC won't work however you can work around it by:

    on the main timeline create a custom function like so:

    function goToNextScene() {
    gotoAndStop(nextScene());
    }


    Then you can goto the next scene from anyWhere in you movie by calling this function:

    on (release) {
    _root.goToNextScene();
    }

  3. #3
    Senior Member
    Join Date
    Jun 2001
    Location
    Virginia, USA
    Posts
    437
    That will work but I wish I could use _root.nextScene(). If using your way, then we have to create that function in every scene in order to make it work, just like labeling the scene. Too much work
    [Edited by rapidcarbon on 07-13-2001 at 01:31 PM]

  4. #4
    easily distracted mattGuest's Avatar
    Join Date
    Jun 2001
    Location
    USA -> NJ
    Posts
    353
    I don't know for sure, but did you try just putting

    on(release) {
    _root.gotoAndStop(nextScene());
    }

    in the button?

    It might work...

    -matt

  5. #5
    Senior Member
    Join Date
    Jun 2001
    Location
    Virginia, USA
    Posts
    437

    I wish

    Nope, not gonna work

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