Flash function help

Out of context: Reply #3

  • Started
  • Last post
  • 10 Responses
  • thismanslife0

    This is the function:

    function mymotion(newxpos,newypos,newscal... {

    import mx.transitions.Tween;
    import mx.transitions.easing.*;

    var xscaledown:Tween = new Tween(this, "_xscale", Strong.easeInOut, this._xscale, newscale, 0.5, true);
    var yscaledown:Tween = new Tween(this, "_yscale", Strong.easeInOut, this,_yscale, newscale, 0.5, true);
    var xmoveto:Tween = new Tween(this, "_x", Strong.easeInOut, this._x, newxpos, 0.5, true);
    var ymoveto:Tween = new Tween(this, "_y", Strong.easeInOut, this._y, newypos, 0.5, true);
    }

View thread