Re: {Disarmed} Re: [flexcoders] Variable Typecasting

2008-07-19 Thread Sid Maskit
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

RE: {Disarmed} Re: [flexcoders] Variable Typecasting

2008-07-18 Thread Gordon Smith
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

Re: {Disarmed} Re: [flexcoders] Variable Typecasting

2008-07-18 Thread Sid Maskit
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

RE: {Disarmed} Re: [flexcoders] Variable Typecasting

2008-07-18 Thread Gordon Smith
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

RE: {Disarmed} Re: [flexcoders] Variable Typecasting

2008-07-18 Thread Tracy Spratt
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

RE: {Disarmed} Re: [flexcoders] Variable Typecasting

2008-07-18 Thread Alex Harui
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

RE: {Disarmed} Re: [flexcoders] Variable Typecasting

2008-07-18 Thread Scott
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

Re: [flexcoders] Variable Typecasting

2008-07-18 Thread Scott
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

Re: [flexcoders] Variable Typecasting

2008-07-17 Thread Peter Witham
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

[flexcoders] Variable Typecasting

2008-07-17 Thread Scott
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