SetActualSizePlugin

[AS3 only] Some components require resizing with setActualSize() instead of standard tweens of width/height in order to scale properly. The SetActualSizePlugin accommodates this easily. You can define the width, height, or both.

Usage

import com.greensock.TweenLite; 
import com.greensock.plugins.TweenPlugin; 
import com.greensock.plugins.SetActualSizePlugin; 
TweenPlugin.activate([SetActualSizePlugin]); //activation is permanent in the SWF, so this line only needs to be run once.
TweenLite.to(myComponent, 1, {setActualSize:{width:200, height:30}});

Get GSAP

Version: 2.0.2 updated 2018-08-27

Core

    Extras

      Plugins

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

        Help support GreenSock by becoming a member

        Join Club GreenSock