You should look into the core classes to see what goes on behind the scenes:
mx.core.UIComponent mx.core.UIObject UIObject uses 2 private variables to keep track of width and height var __width:Number; var __height:Number; In your size() method use those instead of the default _width and _height (movieclip) properties. regards, Muzak ----- Original Message ----- From: "Alexander Farber" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Friday, March 23, 2007 9:52 AM Subject: [Flashcoders] How to find dimensions of my own component,resized in auth. env.? > Hello, > > I have a simple component, it is a multiline TextField with wordWrap > switched on and with a yellow rectangle drawn underneath: > > http://preferans.de/flash/ - the files Bubble.* > > I'd like the users of my component to be able to resize its width in the > authoring environment, so that they can control where the word wrapping > will happen. However I can't figure out how to find out that width. > > > Any suggestions are very welcome > Alex _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com