In Flex 3, there will be a ResourceManager and its getString() method will automatically perform token substitution. - Gordon
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of gary_mangum Sent: Thursday, June 07, 2007 10:52 AM To: [email protected] Subject: [flexcoders] Re: String.Format??? Thanks...this is perfect...I knew there had to be one of these methods somewhere in the language! --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Samuel R. Neff" <[EMAIL PROTECTED]> wrote: > > > 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:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of gary_mangum > Sent: Thursday, June 07, 2007 1:03 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > 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? >

