--- In [email protected], "superbokbok" <[EMAIL PROTECTED]> wrote: > > Yes I thought that would fix the problem so I tried implementing this > within the > function notifyPropertyChange method > private function > notifyPropertyChange(name:String,oldValue:Object,value:Object):void > { > if (value !== oldValue) > { > var event:PropertyChangeEvent = new > PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE, > true,false,"update",name,oldValue,value,this); > dispatchEvent(event); > } > } > > Now in the main.mxml file, I've set the listener like this: > this.addEventListener (PropertyChangeEvent.PROPERTY_CHANGE,testTrace,true\ > ); > > I can never seem to get this event to be recognized by the application. > > For reference, this notifyPropertyChange method is contained within an > AS class that fires the event when a Timer event fires after 1 minute. > At this point, a new Date object is created, compared with the old date > value and fires the notifyPropertyChange method, to update the onscreen > time display. > If I register a listener with the target, then I can receive the event. > But I cannot seem to get any event, particularly the PROPERTY_CHANGE > event, which is what I want. > > I'd love to be able to use the propertychangeevent cuz it seems like a > nice, subtle way to be alerted of changes to an instance's variable. Any > suggestions on how to use the PropertyChangeEvent properly?? :) > regards
What class is your class extending? -Amy

