RE: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Merrill, Jason
To: Flash Coders List Subject: Re: [Flashcoders] AS3 Object.watch equivalent Use classes and getters and setters. Getting into details with this would take a while, but look it up. It's far more efficient than a watch. 2008/10/27 Samuel Adu <[EMAIL PROTECTED]>: > Hey guys, > I nee

Re: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Ashim D'Silva
Use classes and getters and setters. Getting into details with this would take a while, but look it up. It's far more efficient than a watch. 2008/10/27 Samuel Adu <[EMAIL PROTECTED]>: > Hey guys, > I need a little help here... I'm working on porting some existing AS2 code > to AS3. A porting of t

Re: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Zeh Fernando
The ethos of AS3 is that instead of watching something, you indeed setup events that are fired when they change. So instead you just do an .addEventListener() to the object created. Each object type has particular events it can fire. A LoaderInfo class dispatches complete, httpStatus, init, ioErro

[Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Samuel Adu
Hey guys, I need a little help here... I'm working on porting some existing AS2 code to AS3. A porting of the AS2 class watched _root variables which were updated by javascript (using setVariable) - When a change occurred the callback method would change instance properties, fire events etc etc...