Re: [Flashcoders] changing the width of a dynamic text field

2006-06-08 Thread jcarlos
, 2006 6:55 PM Subject: [Flashcoders] changing the width of a dynamic text field I have a single dynamic text field (pText) I'd like to dynamically change the width of. It is multiline with a border, and other options are off. When I execute the following actionscript: trace('w1:'+pText

Re: [Flashcoders] changing the width of a dynamic text field

2006-06-08 Thread Phil Glatz
At 04:14 AM 6/8/2006, João wrote: I think is something related to the name of your textField, if it was created in the designing or programming mode I got this sample from the ActionScript manual, tested it and it works fine this.createTextField (my_txt, this.getNextHighestDepth (), 10, 40,

Re: [Flashcoders] changing the width of a dynamic text field

2006-06-08 Thread Lanny McNie
You don't necessarily need to create it with Actionscript, just remove the transform on it in the IDE. Text fields that are scaled in the IDE (stretched) will measure their width adjusted with their scale. So if you have a 100px wide text field (not stretched), and stretch it to 200px in the

Re: [Flashcoders] changing the width of a dynamic text field

2006-06-08 Thread Lanny McNie
Additionally, you can replicate this by setting the _xscale in Actionscript. So setting to 100% before applying the _width would resolve it as well. On 6/8/06, Lanny McNie [EMAIL PROTECTED] wrote: You don't necessarily need to create it with Actionscript, just remove the transform on it in

Re: [Flashcoders] changing the width of a dynamic text field

2006-06-08 Thread janosch
Oh, thanks a log for [strg] + [shift] + [z], this helps a lot!!! Janosch Lanny McNie schrieb: You don't necessarily need to create it with Actionscript, just remove the transform on it in the IDE. Text fields that are scaled in the IDE (stretched) will measure their width adjusted with

Re: [Flashcoders] changing the width of a dynamic text field

2006-06-08 Thread Phil Glatz
At 08:38 AM 6/8/2006, Lanny wrote: You don't necessarily need to create it with Actionscript, just remove the transform on it in the IDE. Text fields that are scaled in the IDE (stretched) will measure their width adjusted with their scale. It seems to me that this is an odd way for flash to