dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: movie clip button problem

  1. #1
    Senior Member
    Join Date
    Mar 2002
    Location
    richmond, va
    Posts
    139
    Ok so I have multiple scenes and in the first scene I have a movie clip with a button in it that is supposed to go to the first frame in another scene. What happens though is that the movie clip just replays itself when you click on the button...what am I doing wrong??

  2. #2
    Junior Member
    Join Date
    Sep 2002
    Posts
    18
    button script should be
    on (release) {
    gotoAndPlay("scene", 1);
    }




    scene = whatever you named the scene you want to play

  3. #3
    Senior Member
    Join Date
    Mar 2002
    Location
    richmond, va
    Posts
    139
    thats exactly what I have but i have the title of the scene put in....
    but it still doesn't work

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Oh! That question again!

    From movie clips (your case) or from loaded movies on other levels, scene names are totally useless! You must label the targeted frame of the targeted scene with an unique label such as start3, and add _root or _level0 to your path:

    on (release) {
    _level0.gotoAndPlay("start3");
    }

  5. #5
    Senior Member
    Join Date
    Mar 2002
    Location
    richmond, va
    Posts
    139
    and that will tell it to go to a different scene then where teh button is?

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Rather than loosing time here... Why don't you try it and see for yourself!
    Shhhhhhhhhhhhhhhhhhhhhhhhheeeeeeeeeesshhhhhhhhhhhh !

  7. #7
    Senior Member
    Join Date
    Mar 2002
    Location
    richmond, va
    Posts
    139
    yeah it doesnt work thanks

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