-
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 ^^
-
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
-
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
-
oh.. you mean to say your next button is inside the the movie clip in your first frame?
-
Yes, which is why it just repeats the movie clip
-
Someone's been there before
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|