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 = new 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