Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
dominggi

strange behaviour of textfield proxy

Recommended Posts

I have extended TM so i can use Textfields that are scalable and resizable. I use a textfield IN a mc that is called through the flash library (as linkage class).

 

dude.png

 

This worked fine, but i traced the displaylist and found an DisplayObject on the displaylist with name "__tmProxy3", but these are dislocated... I know these are textfield proxies that are used in TransformItem, but why aren't they removedProxy'ed? I also extended TransformItem (TextBoxTransformItems) and can override this createProxy, but I don't know when.

 

I need to get rid of these proxies, because displayobjects are dynamically loaded/saved, and I can not have any garbage on the displayList due to the zooming of the canvas.

 

When exactly are these proxies used and when can i remove them?

 

or, what is the cleanest way to use scalable AND resizable textfields in your opinion?

Link to comment
Share on other sites

The proxy is used to get around some bugs in Flash (long story). The only time TransformItem creates a proxy is if/when the scaleMode is set to something other than SCALE_NORMAL. I assume you must be using a scaleMode of SCALE_WIDTH_AND_HEIGHT. To get rid of the proxies, simply set the scaleMode to SCALE_NORMAL or you could removeProxy() yourself if you prefer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×