dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Buttons in a Movie Clip

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    8

    Question Buttons in a Movie Clip

    Here's the problem:
    My main timeline contains 2 frames, both with a stop(); code, so only a button can navigate through them.
    Frame 1 has a movieclip.
    The movieclip runs an animation, then stop(); in a screen with a button.
    That button is supposed to go to frame 2 of my main timeline.
    That button didn't do what it's supposed to do.

    How do I fix this?
    Thanks in advance ^^

  2. #2
    Junior Member
    Join Date
    Jul 2007
    Posts
    12
    button on the first frame should have a code like

    //to play the next frame
    on(release) {
    this._parent.NextFrame();

    }


    just do the opposite code if you want to go back to the Previous Frame

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    8
    Hm, still doesn't work, and I've searched other sites, they say the same thing

    For now, I have an alternative, making the movie clip another scene, so I can still have the main animation (a game, really) organized.

    Sorry for the trouble and waste of server space, but it's resolved for now, and though it's less efficient (I don't really like scenes), it'll do

  4. #4
    Junior Member
    Join Date
    Jul 2007
    Posts
    12
    oh.. you mean to say your next button is inside the the movie clip in your first frame?

  5. #5
    Junior Member
    Join Date
    May 2009
    Posts
    8
    Yes, which is why it just repeats the movie clip

  6. #6
    Someone's been there before digitalknoll's Avatar
    Join Date
    Dec 2003
    Location
    Tampa, Fl.
    Posts
    134

    did you try..

    this is code for the button on the MC in fram one.

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

    DK

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