I searched it for while but didn't find anything like printf in Action Script.
That makes it a little difficult to generate formated strings.
I searched it for while but didn't find anything like printf in Action Script.
That makes it a little difficult to generate formated strings.
The only function I know that prints to a standard output is trace() (debug purposes only) , which can take virtually any type of variable.
I might not have understood your question, though.
take a look at this --> http://www.stimuli.com.br/trane/2009/feb/21/printf-as3/
There is the Formatter classes that you could use or create custom formatters.
http://livedocs.adobe.com/flex/3/html/help.html?content=createformatters_2.html
think you might be looking for StringUtil.substitute()
take a look here: https://www.adobe.com/livedocs/flex/2/langref/mx/utils/StringUtil.html#substitute()