In AS3 you can now cast directly to int too. eg:

var s: String = "123";
var i: int = int(s);

And, you know, it's interesting that the following works:

var s: String = "123";
var i: int = s * 10;   //You get 1230

But this doesn't:

var s: String = "123";
var i: int = s;

You get a compiler error: Implicit coercion of a value of type String to an unrelated type int

I'm doing this with Alpha 1.


On 2/3/06, Johannes Nel <[EMAIL PROTECTED]> wrote:
parseInt parseFloat


On 2/3/06, wci.geo < [EMAIL PROTECTED]> wrote:
hi

is there a function in flex that conver string to integer?
like toInteger() in java.

thanks
Willy






--
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/






--
j:pn


--
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






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to