I have this code on a button. Why wont it start on frame 2 of the movieclip I have on the frame labelled "movie2".
It starts playing at frame 1 no matter what digit I set it to.
To trigger a movie on a certain frame you should firsty go to that frame, because that movie doesnt exists on the first fram where the button is .
So the code of the button looks like this
PHP Code:
on(release){
_root.gotoAndStop("movie2"); // first go that frame where movie2 movieclip is
_root.movie2.gotoAndPlay(2); // trigger the movie movie2 .. better rename either the movie or the frame label to avoid confusion since both are movie2
}
Here is the fla too.
Err, made a little mistake, so I edited the post
Last edited by Smilev; 06-14-2006 at 04:21 AM.
while (2+2 == 4) {
drink ("bourbon");
}
gotoAndStop("bed");
Well your file worked perfectly, but I needed a Stop action in first frame of the movieClip. When I set the Stop action in first frame the result is that it plays only the first frame and quit the movieclip. Very strange.
Anyone to help solving that problem?
Look a the new attached file where I have a "stop" in first frame of movieclip.
The reason that I want to go to frame 2 is to avoid frame one with the stop action. This is because i use the movieclips another place in my movie where the Stop action is needed. But this has nothing to do with the problem asked here.
Thanks for wanting to help. blueklat is a movieclip.
You are right. First I am telling the timeline to go to frame labelled "movie2" - Then when playhead is at "movie2" - I am telling to play frame 2 of the movieclip blueklat.
Hi
Well as long as you have given the movieclip an instance name of bluklat then the code above should do it though it would be better to see your FLA....can you post or email it?
Now its working. Thank you very much. I am surprised at the amount of code Flash 8 acuires to make such a simple thing.
I have a few small games i want to have made - are you open for such jobs.
If you are then look after game description and my Signature in Freelanceres in this Forum.