View Full Version : Stopping a playing MC at a specific frame without stop(); on Keyframe
jturuc
March 7th, 2004, 09:33 PM
What I want to have happen is when you mouse down on the button/MC the block_mc will first jump to frame 40 and then it needs to check and stop when the block_mc reaches frame 12. I have attached a simplified version of what I was trying to do
Adam
March 7th, 2004, 10:31 PM
I didn't see your command for making it jump to frame 40, but you had a couple syntax errors i.e _currentFrame should have been _currentframe...I fixed them up, and added a few _roots for ya, and it'e recognizing the frames now.
http://www.geocities.com/yellowraincoatman/blocktest1.fla
Adam
jturuc
March 8th, 2004, 12:39 PM
Thanks that is kind of what I wanted, but what is happening now is that it stops at frame 12 automatically. I only want it to stop at frame 12 when you click the button/movie clip (the rectangle at bottom). The command to jump to frame 40 is on the button that is inside of the rectangle movie clip.
The block_mc will be playing in a loop at all times. When you click on the rectangle button it will jump to frame 40 which will eventually go back to play frame 1 and then it needs to know to stop at frame 12.
See new file attached for some reason the 1st file did not have the button inside the MC
Thanks again for you help
Adam
March 8th, 2004, 03:47 PM
Here ya go, I added a variable that changes when the MC is clicked, and then the if statement checks to see if that variable has been changed.
http://www.geocities.com/yellowraincoatman/blocktestnew.fla
Adam
jturuc
March 8th, 2004, 05:52 PM
Ah I see! Nice work around Adam I couldn’t figure out how to get it to do both on mouse release and to do the check on enter frame.
Thank you SO much!!!
Jason
Adam
March 8th, 2004, 06:39 PM
no problem :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.