Re: [Flashcoders] input text formatting

2008-01-30 Thread Andrew Sinning
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] input text formatting

2008-01-30 Thread Cory Petosky
Use the defaultTextFormat property instead of setTextFormat. On 1/29/08, Andrew Sinning <[EMAIL PROTECTED]> wrote: > Yes, that's exactly what I'm going ot have to do. This has got to be a > BUG. If I trace out the format.align property after a single character > change it goes from center to nul

Re: [Flashcoders] input text formatting

2008-01-29 Thread Andrew Sinning
Yes, that's exactly what I'm going ot have to do. This has got to be a BUG. If I trace out the format.align property after a single character change it goes from center to null! Then after the user replaces all of the text it changes to left. Glen Pike wrote: In AS3 I have to keep applying

Re: [Flashcoders] input text formatting

2008-01-29 Thread Glen Pike
In AS3 I have to keep applying the TextFormat object to the TextField when it's content changes: function createText():void { _nameText.setSelection(0, _nameText.text.length); //_nameText.caretIndex = 0; _nameText.setTextFormat(_nameFormat); addChild(_

[Flashcoders] input text formatting

2008-01-29 Thread Andrew Sinning
I'm creating an input-type TextField at runtime and setting the align prop of its TextFormat to 'center'. The default text displays centered. If the user edits just one character at a time the text remains centered. However, if they select all of the text and then type something in, the alig