How do I zoom in and out using Actionscript?
I have the following code to move an object around:
onClipEvent(load)
{
speed = 10;
speedx = speedy = speed;
targetx = this._x;
targety = this._y;
}
onClipEvent(enterFrame)
{
_x += (targetx - _x)/speedx;
_y += (targety - _y)/speedy;
}
What I do is change the values of targetx and targety.
What I want to do is move the object and then zoom in or out.
So, I need to know:
- How to zoom in and out usng Actionscript.
- AND I need to know how I can do this at the END of the above animation?
Any help would be appreciated.
Thanks.
OM