if ("test" in bla)
 
Gordon Smith
Adobe Flex SDK Team

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Thursday, December 20, 2007 9:50 PM
To: [email protected]
Subject: [flexcoders] Re: Checking if a property exists



I sent the question and realize that it was my fault...

it works when i do var bla:Object = new Object();

but the reason of my question is that i have something like that, and
it's been declared as an object because come from a XML decoder, but i
need to test if the property exists or not... and if i do
"if(object.property)" returns error 1009.

There is any other way to test if it exists?

thnks

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Rafael Faria"
<[EMAIL PROTECTED]> wrote:
>
> in the following code i'm "trying" to test if the property of an
> object exists but it doesnt work, how can i do that? i'm getting an
> error and i'm trying to handle that because sometimes it will have the
> property sometimes not...
> 
> 
> var bla:Object;
> 
> if (bla.test) { // RETURNS an ERROR
> 
> }
>



 

Reply via email to