A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Unusual Button Help!

  1. #1
    Has Returned
    Join Date
    Mar 2001
    Posts
    269
    I have got a movieclip which is a menu, the MC is in scene one and the MC obviously has buttons in it. what i want is: when i click a button it goes to a frame in scene one, Not in the the MC. The only thing that i can think of is to put the actual MC inside scene one but then it isn't a MC and i have troubles dragging it and also it takes up alot of frames.

    can anyone help?

    Thanx in advance.

  2. #2
    Old dog learning new tricks

    Join Date
    Dec 2000
    Posts
    1,498
    As I undeerstand it, u want the maintimeline to move to another frame in scene 1. Use:

    _root.gotoAndPlay ("Scene 1", x);

    x of course is the number of the frame.

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    145
    you just need to use _root on you button actions. So if you want a button after clicked to goto and stop at frame 5 in the first scene ( not the MC) just use this.

    on (release){
    _root.gotoAndStop.(5)
    }

    Hope that helps
    ____
    Mike

  4. #4
    Has Returned
    Join Date
    Mar 2001
    Posts
    269
    thanx alot i found that this did the job:

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

    couldn't have doine it without you!

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