The hasOwnProperty method available in all objects does exactly this. http://livedocs.adobe.com/flex/3/langref/Object.html#hasOwnProperty()
Why it is called hasOwnProperty rather than hasProperty I have no idea. 2009/1/19 dorkie dork from dorktown <dorkiedorkfromdorkt...@gmail.com>: > late night... thanks > > On Sun, Jan 18, 2009 at 10:05 AM, Ralf Bokelberg <ralf.bokelb...@gmail.com> > wrote: >> >> doesn't try catch help here? If no error is thrown, isset returns true >> >> ralf >> >> On Sun, Jan 18, 2009 at 1:46 PM, dorkie dork from dorktown >> <dorkiedorkfromdorkt...@gmail.com> wrote: >> > I have a PHP statement that I am trying to write in AS3. So far it >> > errors >> > out because the properties do not exist on it yet. How would/should I >> > rewrite this for AS3? Here is the statement: >> > >> > // at the time this is run "this.language_data" is an object with 2 >> > properties >> > // the "STYLES" property does not exist yet and it generates a >> > // TypeError: Error #1010: A term is undefined and has no properties. >> > if (isset(this.language_data['STYLES']['BRACKETS'][0])) { >> > >> > ddfd >> > >> > > >