OnCompleteRenderPlugin

[AS3 only] Calls a function as soon as the tween completes AND the final frame actually renders to the screen. It accomplishes this by waiting until the next ENTER_FRAME event gets dispatched before calling the function. (a regular onComplete gets called as soon as the tween sets its final values but before things are rendered graphically to the screen).

Usage

import com.greensock.TweenLite; 
import com.greensock.plugins.TweenPlugin;
import com.greensock.plugins.OnCompleteRenderPlugin;
TweenPlugin.activate([OnCompleteRenderPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.
TweenLite.to(mc, 1, {x:100, onCompleteRender:myFunc});  //tweens horizontal and vertical scale simultaneously

Get GSAP

Version: 1.20.3 updated 2017-10-02

Core

    Extras

      Plugins

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

        Help support GreenSock by becoming a member

        Join Club GreenSock