RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Clinton D. Judy
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy Sent: Thursday, January 31, 2008 10:53 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I test if a variable is defined? In one interface, there's a checkbox that doesn't exist in the other interface. They both

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Merrill, Jason
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, January 31, 2008 10:50 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I test if a variable is defined? Why is it undefined

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Clinton D. Judy
Of yigit Sent: Thursday, January 31, 2008 10:45 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How do I test if a variable is defined? to test whether a variable exists or not if(varName) trace('exists'); else trace('does not exist'); Clinton D. Judy wrote On 01/31/2008 05:34 PM

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Merrill, Jason
] On Behalf Of Clinton D. Judy Sent: Thursday, January 31, 2008 10:43 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I test if a variable is defined? I get this: 1012: Variables of type CheckBox cannot be undefined

Re: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread yigit
to test whether a variable exists or not if(varName) trace('exists'); else trace('does not exist'); Clinton D. Judy wrote On 01/31/2008 05:34 PM: No other explanation needed, really. How do I see if an object/variable exists before I test other conditions of it? Unnecessary explanation: I

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Clinton D. Judy
@yahoogroups.com Subject: RE: [flexcoders] How do I test if a variable is defined? Have you tried checking for myVar != undefined? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Merrill, Jason
Have you tried checking for myVar != undefined? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Clinton D. Judy
in the interface. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, January 31, 2008 10:50 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I test if a variable is defined? Why is it undefined in the first place? Jason

Re: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread yigit
10:45 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] How do I test if a variable is defined? to test whether a variable exists or not if(varName) trace('exists'); else trace('does not exist'); Clinton D. Judy wrote On 01/31/2008 05:34 PM

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Clinton D. Judy
: Thursday, January 31, 2008 10:55 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I test if a variable is defined? What I mean is, why are you doing it this way? Two script files - you mean each MXML app uses the same class definition? Why can't you define the variable in both

Re: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Tom Chiverton
On Thursday 31 Jan 2008, Clinton D. Judy wrote: I just realized that I ran the test with the interface that DID have the checkbox, Why not have a flag to indicate weather the check box is to be created or not, and reference that ? Failing that, you can loop over rawChildren or something, at a

Re: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Guido
*To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] How do I test if a variable is defined? Why is it undefined in the first place? Jason Merrill *Bank of America * GTO LLD Solutions Design Development eTools Multimedia *Bank of America Flash Platform Developer Community

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Merrill, Jason
These all seem like workarounds to me, if the UI is written in such a way that it is that tightly coupled to the class, then you shouldn't be trying to make the same class work with different interfaces/apps. I know that isn't what you want to hear though. Jason Merrill Bank of America GTO

Re: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Tom Chiverton
On Thursday 31 Jan 2008, Merrill, Jason wrote: These all seem like workarounds to me, if the UI is written in such a way that it is that tightly coupled to the class, then you shouldn't be trying to make the same class work with different interfaces/apps. I know that isn't what you want to

RE: [flexcoders] How do I test if a variable is defined?

2008-01-31 Thread Clinton D. Judy
for this. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, January 31, 2008 11:21 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How do I test if a variable is defined? On Thursday 31 Jan 2008, Merrill, Jason wrote