Itemrenderer Dispatch Custom Event
问题 I'm trying to dispatch a custom event from a custom ItemRenderer This is my custom event package events { import customClass.Product; import flash.events.Event; public class CopyProductEvent extends Event { public static const COPY_PRODUCT:String = "COPY_PRODUCT"; public var picked:Prodotti; public function CopyProductEvent(type:String, picked:Product) { super(type); this.picked = picked; } } } In the itemRenderer I have a function that does that: private function sendEvent(o:Product):void {