Just guessing, but your DataVO doesn't extend EventDispatcher, only Object; try extending him so you'll get all the addEventListener/removeEventListener/dispatchEvent functions.
 
----- Original Message -----
Sent: Wednesday, November 02, 2005 10:41 PM
Subject: [flexcoders] dispatchEvent troubles (Flex 2.0)

I'm having trouble with dispatchEvent in an AS 3.0 Class:

package com {
   
    public class DataVO {
        import flash.events.*;
       
        ...


        [Bindable("sampleChanged")]
    public function get sample_ac():ArrayCollection
    {
        return _sample_ac;
    }
    public function set sample_ac(value:ArrayCollection):Void
    {
        _sample_ac = value;
        var evt:Event = n! ew Event("sampleChanged", true, true);
        dispatchEvent(evt);
    }
   }
}

I get the compile error: Access of undefined property dispatchEvent

Any help would be appreciated. TIA.

- John Crosby


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex


YAHOO! GROUPS LINKS




Reply via email to