joa / wiiflash

Automatically exported from code.google.com/p/wiiflash
0 stars 0 forks source link

It miss the overriden clone() method in the custom events #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As said in the as3 documentation
("http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/Event.h
tml#clone()"),
a custom event class needs to override the Event.clone() method of the
event class.

An exception occurs when we try to "redispatch" one of these events.

In example in ButtonEvent Class, it miss :

public override function clone():Event 
{
    return new ButtonEvent(this.type, this.state);
}

Original issue reported on code.google.com by sebcha...@gmail.com on 3 Dec 2009 at 11:24