It's performing an octal to decimal conversion. You can use the Number class to convert between various different number bases.
Jamie. --- In [email protected], Christoph Diefenthal <[EMAIL PROTECTED]> wrote: > Does anyone know why this happens??? > > Try it on your own server : > > > > <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> > <mx:Button label="Value Of String" click="valueOfString ()" /> > <mx:Script> > <![CDATA[ > import mx.controls.Button; > > public function valueOfString():Void > { > > // the result is 9 ????? > mx.controls.Alert.show("" + Number("011")); > > } > ]]> > </mx:Script> > </mx:Application> ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

