It's probably more efficient to use character codes. The charCodeAt() method of 
String returns a Number which will actually be an integer between 0 and 65535.

BTW, Unicode experts will recognize that this means that sometime it takes two 
"chars" (a "surrogate pair") in an AS String to represent a single Unicode code 
point, since there are more than 65536 Unicode characters.

Gordon Smith
Adobe Flex SDK Team

From: [email protected] [mailto:[email protected]] On Behalf 
Of Maciek Sakrejda
Sent: Friday, March 13, 2009 8:19 AM
To: [email protected]
Subject: Re: [flexcoders] char Type


It does not--you would typically use Strings instead. E.g.,
String.charAt(index) returns a String.
--
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: christophe_jacquelin 
<[email protected]<mailto:christophe_jacquelin%40yahoo.fr>>
Reply-to: [email protected]<mailto:flexcoders%40yahoogroups.com>
To: [email protected]<mailto:flexcoders%40yahoogroups.com>
Subject: [flexcoders] char Type
Date: Fri, 13 Mar 2009 11:46:38 -0000

Hello,

Did the char type exist in Flex ? And how to make it if not ?

Thank you,
Christophe,

Reply via email to