dave123williams
04-06-2006, 10:47 PM
Hey all;
I have kind of a sticky wicket that I'm trying to figure out - it's really driving me nuts, so any help you can offer is greatly appreciated.
Ok - so I have this animation:
http://dave.hero.com/masked.html
It's masked and tweening/easing nicely. Here's the code I'm using to do it:
onClipEvent (load) {
_root.targX = 457;
}
onClipEvent (enterFrame) {
cX = this._x;
difX = cX-_root.targX;
setProperty(this, _x, cX-(difX/10));
}
However, I'd like it to behave more like this:
http://dave.hero.com/masked3.html
I cobbled this second animation together manually, just keyframing everything so that the blue dots step from keyframe to keyframe. For the life of me, I can't figure out how to get it to step from position to position with the same smoothness you'd get from using a function to describe the animation.
I'm not nearly enough of an AS expert to figure this one out, so any advise/assistance/suggestions are most appreciated!
:confused:
I have kind of a sticky wicket that I'm trying to figure out - it's really driving me nuts, so any help you can offer is greatly appreciated.
Ok - so I have this animation:
http://dave.hero.com/masked.html
It's masked and tweening/easing nicely. Here's the code I'm using to do it:
onClipEvent (load) {
_root.targX = 457;
}
onClipEvent (enterFrame) {
cX = this._x;
difX = cX-_root.targX;
setProperty(this, _x, cX-(difX/10));
}
However, I'd like it to behave more like this:
http://dave.hero.com/masked3.html
I cobbled this second animation together manually, just keyframing everything so that the blue dots step from keyframe to keyframe. For the life of me, I can't figure out how to get it to step from position to position with the same smoothness you'd get from using a function to describe the animation.
I'm not nearly enough of an AS expert to figure this one out, so any advise/assistance/suggestions are most appreciated!
:confused: