EndVectorPlugin

[AS3 only] Tweens numbers in a Vector.<Number>. Remember, Vectors require that you publish to Flash Player 10 or later.

<h3>Usage</h3>

</p><pre>import com.greensock.TweenLite; 
import com.greensock.plugins.TweenPlugin; 
import com.greensock.plugins.EndVectorPlugin; 
TweenPlugin.activate([EndVectorPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.
var v:Vector.&lt;Number&gt; = new Vector.&lt;Number&gt;();
    v[0] = 0;
    v[1] = 1;
    v[2] = 2;
var end:Vector.&lt;Number&gt; = new Vector.&lt;Number&gt;();
    end[0] = 100;
    end[1] = 250;
    end[2] = 500;
TweenLite.to(v, 3, {endVector:end, onUpdate:report}); 
function report():void {
    trace(v);
}
</pre><p class="p1">

Get GSAP

Version: 1.20.4 updated 2018-02-15

Core

    Extras

      Plugins

        By using GreenSock code, you agree to the terms of use.

        For an all-access pass to premium content

        Join Club GreenSock