| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Oct 2005
Location: Gateshead
Posts: 15
|
Timeline or actionscript for animation?
Thanks for checking this. I'm new to actionscript and I'm not sure of the best way going about what I want to achieve. I had a look on kirupa but the for..in looping article didn't make much sense. What I'd like to do is create a number of functions that are looping animations that will move a movie clip in a certain way repeatedly and can be called up at a specific frame or time. This is to create perfectly synce'd animations on a number of objects that form part of a simple animation sequence. For example, a movie clip that moves from left to right by say, 100 pixels and then back again in a second, then another that will do this in half the time and so on maybe going up and down or with easing as well. What I'd like to do is create a set of simple animations in actionscript that can then be applied to any object at any time and then script this in actionscript so I have complete control. I'm not sure if i'm bettter off doing this completely in AS or if I should make the functions in AS and then attach them to keyframes on the timeline. If anyone has any suggestions I'd be very grateful, also I'm trying to find out how to make a looping animation in AS which I imagine is simple but I can't find out how to do it. I've been making the movieclip move using this code: ball_mc.onEnterFrame = function () { if (ball_mc._x < 200) { ball_mc._x++; } }; but I'm not sure how to get it to move back when the _x is 200, I tried using another if statement but the animation just jumps a bit. Any help much appreciated, r0cker |
|
|
|
![]() |