Stick Page Forums Archive

Flash Help Lol

Started by: It's Me | Replies: 2 | Views: 359

It's Me
2

Posts: 320
Joined: Mar 2006
Rep: 10

View Profile
Jan 24, 2010 12:15 AM #540046
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
2

Posts: 320
Joined: Mar 2006
Rep: 10

View Profile
Jan 24, 2010 4:55 PM #540246
??????????????????????????????????????????????
Aycaramba
2

Posts: 766
Joined: Apr 2007
Rep: 10

View Profile
Jan 24, 2010 6:53 PM #540271
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.
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.