That looks ok, does it work with a base Event? (a side note, in the
handler, you can access any public property of the panel via the
event.target reference, os you do not have to use a custom event. )
Tracy Spratt
Lariat Services
Flex development bandwidth available
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thelordsince1984
Sent: Tuesday, February 03, 2009 11:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Event and bubbling phase
Hi,
i have a main application and there i create a popup panel...
from the popup panel i dispacth a custom event like this
var e1:CustomLoadEvent = new CustomLoadEvent(loadModule, true);
dispatchEvent(e1);
where loadModule is the type and the value true stands for bubbles..
then at the creationcomplete event within the main application i
create an eventlisteners for the event
addEventListener(loadModule, loadThisModule);
the loadThisModule function simple trace a string..
but it doesn't work!!Why?
Thanks in advance
Regards Lorenzo