I'll have to explain this one. I've attached a diagram with this post.
Scene 1 contains two movie clips which I have named BMC1 and CAMC1.
BMC1 plays when the movie loads, but CAMC1 is on hold.
WHen BMC1 finishes playing, there will be buttons there. All I'd like to do is to click on a button and make CAMC1 move to it's second frame.
In BMC1's button's action, I did this:
Code:
on (release) {
tellTarget ("_root.CAMC1") {
gotoAndPlay (2);
}
}
Here's what happens
The movie clip CAMC1 will play as normal and go to Frame 2
When I click the same button again,
CAMC1 goes back to it's frame 1
When I click again
CAMC1 goes to frame 2.
This occurs, even though I've placed Stop Actions on top of each frame in CAMC1.
I know this is a little long winded, but any hints or directions would be good.
*sigh*
Last edited by mendhak; Nov 11th, 2004 at 12:48 AM.
It's because the second movie clip has two frames. When you reach the end of a flash movie/movie clip, even if you have a stop() on the frame, if you try to move on then it'll go back to the beginning. I'm pretty sure this is your problem since you're trying to play a frame you're already on so it just continues the movie.
I would suggest checking which frame movie clip 2 is on and if it's on 2, then do nothing.
There isn't really an acceptable flash practice. I would have used some checking with variables but as long as you reach your desired result with minimal overhead, I see nothing wrong with it.