Something seems fishy about your custom event class. You don't declare whether it bubbles, is cancelable and so forth. I would look at this link to see how they create a custom event class. Notice how the super method is invoked ,
The second thing I would do , is go into debug mode , and make sure my event handler for the navigator is being called. You would be surprised how many times that happens.
P.S. The formatting makes it hard to read the code
If this question was helpful , please mark it as succh
hello again andthank you for your answer ,
i've tried modifying my constructor and making the bubbles and cancelable parameters obligatory , and tried calling my dispatcher with bubbles = true , but still have no result , i tried debugging my program but my custom event handler is not called all that sounds strange for me ,since i'm a new in flex development
Not sure why your custom event is not working, I tend not to worry about 'custom' events unless I need to transfer a lot of information.
Here is a way to 'simplify' event management.
I just declare a new event in the meta data and then send it to notify that a change has been made. Although the parent can find the index value easily enough I also use two-way bind the navigators index so that it is directly available for the application to manipulate/read .
http://gumbo.flashhub.net/events/ source included
thank you for your answers !! thanks to you i found the "mistake" , in fact while dispatching the event i had to put the same name in the custom event metadata and the custom event object
and while dispatching :
thanks a lot !