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 use two completely separate mxml interfaces
> that both use one as script file. One program is just missing some
> information that the other one has. I’d like to keep using the same
> script file, but it references a variable that exists in one file that
> doesn’t exist in the other file, and I need to make sure it exists
> before I use it.
>
> Clinton Judy
>
> Web Developer
>
> Glenn O. Hawbaker, Inc.
>
>
--
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/