Hey Everyone,
I’m trying to get into the scripting side of flash and less animation (I’m a Computer Animation Major so I get enough of that lol) and I’m wondiner how or if you can chain move an object via scirpting. Example…
Say I have ‘MyObject’ and it is located at (0, 0) and with scripting I want to first move that to (-10, 0) then move it to (100, 0). The scipt I normal work with for movement is as follows.
onClipEvent (load) {
xMove = 10;
zMove = 100;
yMove = 100;
easeSpeed = 7;
alphaSetter = 100;
}
onClipEvent (enterFrame) {
this._alpha += (alphaSetter - _alpha)/easeSpeed;
this._xscale += (zMove - _xscale)/easeSpeed;
this._yscale += (zMove - _yscale)/easeSpeed;
_x += (xMove -_x)/easeSpeed;
_y += (yMove -_y)/easeSpeed;
}
So far every attempt at chain moving an object has been a failure, any ideas?