ChangeWatcher relies on the host being an event dispatcher doesn't it?
Which Object isn't.

Actually, the only reason I think it will compile is that the
host.addEventListener(...) calls to Object abuse the fact its dynamic.

 

Can you create a dynamic custom object which implements the
IEventDispatcher interface, and try that? Still not sure if it'll work
though, without being able to inject the dispatching code to fire when
properties change.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
<blocked::http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [email protected]

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Tracy Spratt
Sent: 04 June 2009 06:12
To: [email protected]
Subject: [flexcoders] Use ChangeWatcher with dynamic Object?

 






I want to have a dynamic Object to which I can add properties at will,
making an associative array or hashtable, and Object works fine for
this.

 

However, I also want to be able to set up changeWatchers for certain
properties, but my watchers are never getting fired.  I know Object is
not bindable, but should an explicit ChangeWatcher fire when a dynamic
property is  added or changed?

 

 

Tracy Spratt,

Lariat Services, development services available

 



Reply via email to