Hello EKA,

thanks for your reply.

to your 1: yes, i really don't wanted to use watch. the watch method
is less performant, I have read on this list sometime before. That's,
why I asked my question. It admit, it has been more than only one
question. :-)

to your 2: I usually give my constructor the same name as the class.
This is a typical mistake, when I use the copy&paste&change method to
write emails.

to your 3: "is AS2 used get and set keywords to create virtual
properties and don't use addProperty method!", I was not aware of the
set and get keywords. Is this syntax supported by both Flash IDE and
MTASC? Be sure, I'll try that!

to your second 3: "you can use in your example the Asbroadcaster class"
But I don't have to. The way you use "set x(x:Number)", "get
x():Number", "setX(x:Number)" and getX():Number", I could just change
your

public function setX( value:Number ):Void
{
   _x = value ;
   broadcastMessage("onX" , this, _x) ;
}

into:

public function onX():Void {} // can be dynamically overwritten
public function setX( value:Number ):Void
{
   _x = value ;
   onX();
}

,can't I?

But again: thanks a lot for introducing the set and get keywords to
me. I'll try that now!
Thanks,

Matthias
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to