checking for property of a class


hi,

 

when checking if class or movieclip (class) has property check with  "this[prop]!=null".  works great if varaible has definition. , works great on 'objects' / object arrays. noticed can check hasownproperty when variable may not definied. doesn't work (maybe because inherited variable). safe way use try , catch command? or, when know use?

if varaible not having definition.

you undefined.

 

so ..

 

if(this[prop] == undefined){

     trace("variable not defined.")

 

}

 

may this



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account