Hi Janis,
As far as I can see from the class declaration,
this is not a dynamic class.
So, why would you want to check if a property is "declared"?
You are the one who sets the declared variables inside the class.
Is there something I'm not getting?
Dimitrios
----- Original Message -----
From: "Janis Radins" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 30, 2005 3:24 PM
Subject: [Flashcoders] lil OOP question
hey ppl
I'm wondering is there a way to chech wether some class function
exists from constructor?
smthn like:
class foo {
function foo(){
if(this class has property named fooProperty) dothis()
else doThat()
}
public function set fooProperty (smthn):Void {
someFooProperty = smth;
}
}
As far as I've tried it this["fooProperty"] returns only undefined.
I know more than one possible workaround, just this way seems to me
more elegant.
Tnx in advance.
Janis
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders