having said all that, you are nonetheless quite right that I misspoke
about what can be done.
- Original Message
From: Gordon Smith <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, July 18, 2008 2:26:47 PM
Subject: RE: {Disarmed} Re: [flexcoders] Variable Typec
yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sid Maskit
Sent: Friday, July 18, 2008 1:35 PM
To: flexcoders@yahoogroups.com
Subject: Re: {Disarmed} Re: [flexcoders] Variable Typecasting
As someone else explained, it is better to use strongly typed objects
then generic ones. However, if you
t to use a constructor, a la String(whatIAmCasting), but to use
the as operator, a la whatIAmCasting as String.
- Original Message
From: Scott <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, July 18, 2008 6:48:58 AM
Subject: RE: {Disarmed} Re: [flexcoders] Variable T
x SDK Team
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Friday, July 18, 2008 6:49 AM
To: flexcoders@yahoogroups.com
Subject: RE: {Disarmed} Re: [flexcoders] Variable Typecasting
Wow. This was incredibly frustrating but after playing around (and
re
uly 18, 2008 12:02 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] Variable Typecasting
Have you tried
strEMail = String(GlobalVars.instance.acUser.getItemAt(0));
Do not have my machine in front of me to test but pretty sure you can
cast something that way. I know
ail:String =
PersonRecord(GlobalVars.instance.acUser.getItemAt(0)).strEmail
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Friday, July 18, 2008 6:49 AM
To: flexcoders@yahoogroups.com
Subject: RE: {Disarmed} Re: [flexcoders] Variable T
it again didn't know about strEMail. Perhaps that's
a bug...?
-sj
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Friday, July 18, 2008 8:12 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] Va
om
Subject: {Disarmed} Re: [flexcoders] Variable Typecasting
Have you tried
strEMail = String(GlobalVars.instance.acUser.getItemAt(0));
Do not have my machine in front of me to test but pretty sure you can
cast something that way. I know that's the way I do it to cast MovieClip
nam
Have you tried
strEMail = String(GlobalVars.instance.acUser.getItemAt(0));
Do not have my machine in front of me to test but pretty sure you can cast
something that way. I know that's the way I do it to cast MovieClip names.
Regards,
Peter
On 7/17/08, Scott <[EMAIL PROTECTED]> wrote:
>
>I
I'm trying to pull a variable from an arrayCollection which I know is
type String.
Here's the code:
public var strEMail:String;
...
Private function ...
{
strEMail = GlobalVars.instance.acUser.getItemAt(0);
}
That above line of course throws an error
10 matches
Mail list logo