PDA

View Full Version : Flash Help Lol



It's Me
01-23-2010, 05:15 PM
Alright so let's say I have something motion tweening and then I have two buttons pop up and stop the animation. When you click one of the buttons I want the motion tween to pick up where it left off when I stopped the animation but I'll have two different scenarios happening depending on what you clicked.
The problem I'm having is that if you click the button and it takes you to a new scene I would have to try and replicate my motion tween from where it ended when I added the buttons.

Also is there any way I could copy like 20 frames on 5 different layers and then paste them in a different scene and still have 20 frames on 5 different layers?

I haven't used flash in like 3 years and there's so much new shit :C

It's Me
01-24-2010, 09:55 AM
??????????????????????????????????????????????

Aycaramba
01-24-2010, 11:53 AM
button1.onPress = function(){
onEnterFrame = function(){
instanceName._x += 5;
}
}
button2.onPress = function(){
onEnterFrame = function(){
instanceName._x -= 5;
}
}
This will make the object move left or right depending on which button you press. If you just want to stop a tweened mc, copy and paste this

button.onPress = function(){
_root.stop();
}
And to start it again, just copy and paste the same thing and replace the "stop" with "play", and you'll need to use a different button/MC.