wblair8689
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by wblair8689
-
-
I have a sprite that is masked. I have added the children of that sprite to the transformManger. All works well except I want the handle of the transformManager to appear outside of the mask. Is there a way of doing this? can I add the handles to another displayObject somehow?
In looking at the code for TransformManager it looks like there is a member variable - _parent - that targets where the handles are drawn. I guess I could tweak _parent and make it refer to the DisplayObject that I want the handles to appear in. ??
-
Please find attached example code...
I have a textfield that is inside a movieClip. I then add the movieClip to the transformManger via the addItem method
_manager.addItem(_main.ballon,TransformManager.SCALE_WIDTH_AND_HEIGHT, true);
When the movieClip is transformed the textfield distorts. I am hoping there is some way to make it not distort - like the textfield in your example.
If not - any Ideas on how to do this? I am trying to design a speech bubble for a build your own comic application.
Bill
Control where transform handles appear
in TransformManager (Flash)
Posted
I see why all the items have to be children of the same displayObject but why do the handles? In this project I'm not using multiple selection - so it wouldn't matter anyway. I was looking through the code and I couldn't find where the handles are added. Could you point to where that happens and maybe I could tweak it?
Pretty damn cool code by the way.
It took me a while to figure out that the TransformEvent.SELECT events are fired by the transformItem not the transformManager. Maybe you should add that to the comments at the top of transformManager?