You could use the alphaTo property of the tween class. It's much easier.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Watkins Sent: Thursday, June 01, 2006 9:58 AM To: [email protected] Subject: [Flashcoders] Alpha fade problem So, the following script will cause a MC to fade in. What would I change to make a MC fade out? onClipEvent (load) { loadTime = getTimer(); alphaTime = 1000; myAlpha = 0; this._alpha = myAlpha; } onClipEvent (enterFrame) { if (this._alpha<100) { myAlpha = ((getTimer()-loadTime)/alphaTime)*100; this._alpha = myAlpha; } } _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

