mx.utils.StringUtil.substitute() 

HTH,

Sam

-------------------------------------------
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of gary_mangum
Sent: Thursday, June 07, 2007 1:03 PM
To: [email protected]
Subject: [flexcoders] Re: String.Format???

Thanks for the quick response, but this solution only works if I have
the String when I compile and not in a ResourceBundle.

What I want to do is pull the String from from a ResourceBundle so
that I can translate it into many languages.  Other languages will
likely place the string tokens in different places than english does.

In the ResourceBundle I will have the string:
Are you sure you want to delete page {0}?

Then when I need the string I will pull it and replace the token(s)
with the variable data.

Is there a way to do "printf" type string formatting in ActionScript?

Reply via email to