Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
Diagonal position tween with Alpha  

Download this .fla

How to create this alpha/position tween.

Actionscript
onClipEvent(enterFrame){
this._alpha -= 3;
this._x += 10;
this._y += 20;
}


Note:
Press the "refresh" button in the browser to play the animation again.

As the Actionscript is put inside the mc, "this" refers the the mc on the timeline the code is in So by association references the the mc "mc1" as it is inside it.

 

onClipEvent(enterFrame){
this._alpha -= 3;
this._x += 10;
this._y += 20;
}



© 2008 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us