Re: [flexcoders] what is PropertyChangeEventt.PROPERTY_CHANGE used for?

2008-06-29 Thread Aaron Miller
Ahh, so that's how it works. I didn't realize there was more to the constructor then a normal event. That will teach me not to check the API reference first. ;-) Thank you both for the info! ~Aaron On Sun, Jun 29, 2008 at 7:02 PM, Daniel Gold <[EMAIL PROTECTED]> wrote: > It is used as the de

Re: [flexcoders] what is PropertyChangeEventt.PROPERTY_CHANGE used for?

2008-06-29 Thread Daniel Gold
It is used as the default Binding event and you can create one using the static method createUpdateEvent on the PropertyChangeEvent class var changeEvent:PropertyChangeEvent = PropertyChangeEvent.createUpdateEvent(changedObject,changedProperty,oldVal,newVal); dispatchEvent(changeEvent); That shou

Re: [flexcoders] what is PropertyChangeEventt.PROPERTY_CHANGE used for?

2008-06-29 Thread Josh McDonald
Off the top of my head, when you instantiate a PropertyChangeEvent instead of an Event, the constructor is expecting more useful information about what field changed and when that information is missing / invalid the requisite bindings don't fire. But when the binding handlers get a generic event o

[flexcoders] what is PropertyChangeEventt.PROPERTY_CHANGE used for?

2008-06-29 Thread Aaron Miller
Hello, when I do this: dispatchEvent( new PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE) ); My bindings do not execute. When I do this: dispatchEvent( new Event('propertyChange') ); They do (using default binding with no meta data specified). What is what is the PropertyChangeEve