Flash Q

Out of context: Reply #2

  • Started
  • Last post
  • 12 Responses
  • harlequino0

    Thx for checking. The code for button movement is below, the code for linking is your basic "gotoAndPlay" type.

    onClipEvent (load) {
    // Set the variables up to be equal to where the clip is now.
    xDest = this._x;
    yDest = this._y;
    aDest = this._alpha;
    fDest = this._yscale;
    }
    onClipEvent (enterFrame) {
    // See if the xDest has been changed
    if (this._x != xDest) {
    this._x += (xDest-this._x)*.2;
    }
    // See if the yDest has been changed
    if (this._y != yDest) {
    this._y += (yDest-this._y)*.3;
    }
    // See if the aDest has been changed
    if (this._alpha != aDest) {
    this._alpha += (aDest-this._alpha)*.2;
    }
    // See if the fDest has been changed
    if (this._xscale != fDest) {
    this._xscale += (fDest-this._xscale)*.2;
    }
    }

View thread