fade out using actionScript. 2004-04-19 - By Todd Gleaton
Back Hello,
I have a bunch of pictures that I am fading in and out. This is the code I am using for the fade In of the pictures.
/////////////////////////////////////////////////////////
MovieClip.prototype.Increment = function(maxAlpha, speed) { this.onEnterFrame = function() { this._alpha += speed; if (this._alpha>=maxAlpha) { this._alpha = maxAlpha; delete this.onEnterFrame; } }; }; with (tree) { _alpha = 0; Increment(100, 2); }
/////////////////////////////////////////////////////////
What do you do if you want to have it fade Out like above?
Thanks...tg
[Non-text portions of this message have been removed]
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Server geeks, take heart! If you're sick of wading through animation & graphics instruction for relevant info., then Nate Weiss' Macromedia Flash MX Professional 2004 for Server Geeks is for you. Leave designing to designers and dig into core concepts to create rich user interfaces, online advertising, and more. See www.peachpit.com for more info. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/FLASHmacromedia/
<*> To unsubscribe from this group, send an email to: FLASHmacromedia-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
|