I\'m trying to dispatch a custom event from a custom ItemRenderer
This is my custom event
package events
{
import customClass.Produc
Sounds like your event isn't bubbling.
Add the bubbles
argument (which by default, is false
) in your Custom event constructor:
public function CopyProductEvent(type:String, picked:Product, bubbles:Boolean = true)
{
super(type,bubbles);
this.picked = picked;
}
A nice explanation on Event bubbling in AS3 can be found here: Event Bubbling in AS3