Re-dispatching event in FLEX?

The problem you are experiencing is caused by not overriding the clone() event in your custom event.

The problem you are experiencing is caused by not overriding the clone() event in your custom event. When events are redispatched, they are cloned and modified. If you don't override clone() you get the base implementation of clone(), which returns an Event.

Because Event cannot be cast to your custom event type, a runtime error is thrown. From the documentation: When creating your own custom Event class, you must override the inherited Event.clone() method in order for it to duplicate the properties of your custom class. If you do not set all the properties that you add in your event subclass, those properties will not have the correct values when listeners handle the redispatched event.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions