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

Reply via email to