I have dynamic textfields placed on the stage that scales like so:
TweenMax.to(myText,1,{scaleX:3,scaleY:3});
Unfortunately, it's scaling from the default registration point, which is UPPER LEFT, and not from the CENTER how I want it.
I tried using transformAroundCenter on the text itslef, but I get an error saying that it doesn't recognize textfields and there is no default value.
I've tried wrapping it inside a MovieClip or Sprite along with the TransformAroundCenterPlugin, but I am still getting the same error.
This is my full code by the way:
import com.greensock.TweenMax;
import com.greensock.easing.*;
//import com.greensock.plugins.*;
//TweenPlugin.activate ([AutoAlphaPlugin,BlurFilterPlugin,MotionBlurPlugin,TransformAroundCenterPlugin ]);
var Clips:Array = [Line_1,Line_2,Line_3,Line_4,Line_5,Line_6];
var Stagger:Number = 0.5;
for (var i = 0; i < Clips.length; i++) {
TweenMax.from (Clips[i],0.5,{autoAlpha:0,x:null,y:500,scaleX:3,scaleY:3,rotation:0,blurFilter:{blurX:25,blurY:25},ease:Expo.easeInOut,delay:i * Stagger,onComplete:FadeOut});
}
function FadeOut ():void {
for (var i = 0; i < Clips.length; i++) {
TweenMax.to (Clips[i],0.5,{autoAlpha:0,x:null,y:-500,scaleX:0,scaleY:0,rotation:20,blurFilter:{blurX:25,blurY:25},ease:Expo.easeInOut,delay:i * Stagger});
}
}