Hello all, and thank you in advance for any suggestions you may have.
I am using a function that stops all movie clips that are currently on the stage.
I have another function that plays all of the movie clips on the stage.
The stop and play buttons are on the root of my product (main SWF).
In the play function, I have included an “if” statement that checks every movie clip to see if its current frame is the same as its total frames and to see if its current frame is 1.
In that way, the movie clip will not play if it is on frame 1 and will not play if it has reached the end of its timeline.
This works very well in almost every situation except for one.
In movie clips that have nested clips that involve navigating frames individually, I have an issue.
For example;
If I have a movie clip instance named “bob” and bob has ten frames. Each frame of bob has a separate movie clip in it that has its own animation.
Each frame of bob has a stop() in its main timeline. The navigation for bob is handled individually… so when you press a button inside bob, bob goes to the next frame.
When I use the stop function, all movie clips are stopped. Of course, this has no effect on clips that are already stopped, only have one frame, etc.
However, when I use the play function, bob goes to the next frame because it is not on frame 1 and it is not at the end of its timeline.
Essentially, you push a button within bob and go to a frame with an animated movie clip in it. That clip starts playing while bob is stopped there by a stop();
If you press the stop button at the root, the animation within the nested clip stops (pauses). When you press the play button, bob goes to the next frame and starts the next animation.
I need my play function to know when there is a stop(); function call in the frame so that it will not play a movie clip that has been stopped by actionscript.
I wish I could copy my code here, but unfortunately I can’t.
A rough example of my play code includes:
if(typeof(mc) == movieclip && mc._currentframe != mc._totalframes && mc._currentframe != 1){
name_playAll(mc);
I need to add another delimiter to my if statement that essentially says if the current frame doesn’t have a stop(); then play.
Again, thanks in advance for any ideas that may help out.