A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 2 of 2

Thread: alpha fadeup

  1. #1
    Senior Member
    Join Date
    Sep 2005
    Posts
    116

    alpha fadeup

    Hi I have a for loop which inserts 12 different movieclips in 12 different positions. Now I call them with this["art"+value] (place them with ["art"+value]._y and ._x) But i want them to fade up as they are placed (I have them placed outside of the movie's area, but once placed I want them to fadeup? They are all set to alpha = 0. Please help!

    Mads

  2. #2
    Can't Re-Member madzigian's Avatar
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    2,662
    couldn't you use something like :
    Code:
    onClipEvent (load) {
    	this._alpha = 0;
    	this.onEnterFrame = function() {
    		if (this._y == whatever && this._alpha<100) {
    			this._alpha += 5;
    		} else if (this._alpha>=100) {
    			delete this.onEnterFrame;
    				}
    			};
    		}
    untested.... but just a thought...
    Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
    OS X 10.3.9 || Flash MX04 Pro
    | del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts




Click Here to Expand Forum to Full Width


HTML5 Development Center