Ticket #26 (new task)

Opened 2 years ago

Last modified 1 year ago

Clean up Event-derived classes in AS3

Reported by: allens Assigned to: allens
Priority: minor Milestone:
Keywords: Cc:

Description

The Event classes in source:/branches/AS3/as3/lib/com/modestmaps/events are kind of a mess right now.

Change History

05/22/07 08:10:59 changed by anonymous

You should just override method Event.clone() in The Event classes. Like this one:

public class MapEvent? extends Event { ... override public function clone():Event {

var result:MapEvent = new MapEvent?(type, bubbles, cancelable);

result.panDelta = panDelta; result.newSize = newSize; result.newCopyright = newCopyright; result.newExtent = newExtent;

return result;

}

This will fix the issue with "Type Coercion failed"..

05/25/07 17:18:17 changed by allens

  • milestone deleted.

07/06/07 11:57:31 changed by anonymous

07/08/07 01:22:57 changed by anonymous

08/16/07 05:52:25 changed by anonymous