|
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 -----
From: John
Crosby
Sent: Wednesday, November 02, 2005 10:41 PM
Subject: [flexcoders] dispatchEvent troubles (Flex 2.0) 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
YAHOO! GROUPS LINKS
|
- Re: [flexcoders] dispatchEvent troubles (Flex 2.0) JesterXL

