flash AS question

Out of context: Reply #7

  • Started
  • Last post
  • 40 Responses
  • fyoucher10

    You can even turn all of that into a function or prototype for reusing across movieclips

    MovieClip.prototype.scaleAndfade = function():Void {
    this._xscale = this._yscale = 150;
    this.scaleTo(0, 5, "linear");
    this._alpha = 0;
    this.alphaTo(100, 1, "linear");
    this.alphaTo(0, 1, "linear", 4);
    }

    myClip1.scaleAndFade();
    myClip2.scaleAndFade();
    myClip3.scaleAndFade();
    etc, etc, etc.

    • but capitalize that F in the function
      scaleAndFade not scaleAndfade
      fyoucher1
    • Did he say whether he was using AS2 or AS3?CyBrainX

View thread