I have a bitmapData that I want to scale with TweenLite but when applying
the transformaroundcenter plugin I get this error message:
“Property getBounds not found on flash.display.BitmapData and there is no default value.”
Where do I have to place the “activate” line (e.g. into the constructor, other functions, etc.)?
Can anyone help, please? Thanks.
import com.greensock.*;
import com.greensock.TweenLite;
import com.greensock.plugins.TweenPlugin;
import com.greensock.plugins.TransformAroundCenterPlugin;
TweenPlugin.activate([TransformAroundCenterPlugin]);
TweenLite.to(tempScore.bitmapData, 2, {transformAroundCenter: {scale:2}});
BitmapData inherits from Object, Bitmap inherits from DisplayObject. Either create a new Bitmap instance from your BitmapData as Peter suggests, or try applying the TweenLite transform to your tempScore object, assuming tempScore is a DisplayObject.