A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: MC goToandPlay wont work

  1. #1
    Member
    Join Date
    Mar 2001
    Posts
    82
    i created a navigation system as a MC. i placed my MC in my main timeline for that scene. i have a button in that MC with a action:

    On release
    goto and play scene ___ frame ___
    (not actual code)

    but, the MC just loops to frame 1 of itself. should this work? if not, is there another way to do this? i would like to have my navigation as a MC throughout multiple scenes.

    Thanks!!!!!!
    -Mitee

  2. #2
    FlashKit Joker
    Join Date
    Jan 2001
    Posts
    659
    If you place the tellTarget action before the goto and play and target the _root (main timeline) it should work.

    on (release) {
    tellTarget ("_root") {
    gotoAndPlay ("Scene 1", 1);
    }
    }

    Good luck

  3. #3
    Former Employee of Satan Napalm's Avatar
    Join Date
    May 2000
    Location
    Stellenbosch, South Africa
    Posts
    561
    Give your MC an Instance name and use your tell target command.

    Tell Target(instance name)
    Go To and Play (frame number)

  4. #4
    Member
    Join Date
    Mar 2001
    Posts
    82
    adding _root works, but it goes back to frame 1 and plays the current scene before it moves to the selected scene. and the button takes a little long for it to start. please remeber that i am not targeting any specific movie clip, but a scene. i want to use my MC navigation to move between scenes.

    Thanks for the help!!!!!

    -Mitee

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