-
sliding MC in to three different position?
Hi and thanks for trying to help me!
I'm not so good whith this so i would be very glad if someone could help me.
I would like to slide (like a motion tween) a movieclip i three diffrent positions
with thee buttons (only _x positions).
button 1, 2, 3 should slide the movieclip to x positions 0, 100, 200
and if u are att x 100 (button 2) and press button 1 it should work sliding backwards to x 0 aswell.
and if its noot really hard i would like that the slidspeed slowsdown when its near the stop postition.
Many thanks!!
-
on the MC _root.box:
onClipEvent (enterFrame) {
if (move == true) {
_x += (goal-_x)/5;
}
}
on the buttons:
on (press) {
_root.box.move = true;
_root.box.goal=100; // update that value on the 2 others buttons
}
-
is this magic! or what!!
I'm so happy! its perfect
oh why oh why did i study energytec. instead of computer... should have needed that now. many thanks to you!
i must say it again ! i'm impressed and ...i cant spell english
have a nice sunday!
-
you're welcome
gparis
-
Really very nice!
is it possible to have a little bounce that movement
In that case how that is explained in actionsscipting?
thnx
chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|