Hello,
I have difficulty using the TransformManager.SCALE_WIDTH_AND_HEIGHT feature.
Perhaps I have not understood the documentation or this is not the mission of this feature. What I want is to scale an object containing text that the text does not scale, eg
import com.greensock.transform.TransformManager;
import com.greensock.transform.TransformItem;
import com.greensock.events.TransformEvent;
var _manager:TransformManager = new TransformManager({hasSelectableTex:true});
var item:TransformItem = _manager.addItem(textBox,TransformManager.SCALE_WIDTH_AND_HEIGHT,true);//textBox is a movieClip that contains a text field
item.addEventListener (TransformEvent.SCALE, onUpdateItem);
function onUpdateItem (event:TransformEvent):void {
trace (textBox.width,textBox.height,textBox.scaleX,textBox.scaleY);
}
I appreciate your help
I attach a basic example of what I try to do.
[Deleted example because it contained TransformManager files, thus granting free access to anyone in the forums]