tonilopez
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by tonilopez
-
-
Thanks for the reply, indeed had not understood the documentation.
[Deleted example because it contained TransformManager files, thus granting free access to anyone in the forums]
Sorry about this, I had not thought of.
Regards
-
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]
issue about TransFormManager.SCALE_WIDTH_AND_HEIGHT
in TransformManager (Flash)
Posted
Following your advice I have written two solutions, I posted the code, I hope it can be useful to someone.
Solution 1 (the very ease way):
Solution 2 (The most sophisticated )![:-P](https://gsap.com/community/uploads/emoticons/default_icon_razz.gif)
Main.as
CustomSprite.as
CustomEvent.as