Damn, I always thought that seemed a silly way to do it. After all this time of re-calling that bloody thing every time I changed it.

Thanks for the correction, I'll go back and fix my old code :-)

Nathan
http://www.nathanderksen.com


On Feb 7, 2006, at 2:49 PM, Ian Thomas wrote:

Or call setNewTextFormat() instead.

setTextFormat() applies to the _existing_ text within the field.

setNewTextFormat() applies to any text that will be put into the field.

This is why (Nathan) you're having to call setTextFormat() multiple times -
calling setNewTextFormat() just once, before putting anything into the
field, should solve that issue.

HTH,
  Ian

On 2/7/06, Nathan Derksen <[EMAIL PROTECTED]> wrote:

You need to re-apply setTextFormat() every time you change the .text
or .htmlText properties of a text field:

<snip>
percent.text = percentNum;
percent.setTextFormat(ldrFormat);
<snip>

I tried this out with your code, and it worked fine afterwards.


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to