Skip to content

Commit

Permalink
removed obsolete Event import and fixed declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
localhost committed Feb 18, 2009
1 parent 95cf279 commit 656f137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Binary file modified build/clippy.swf
Binary file not shown.
7 changes: 3 additions & 4 deletions clippy.hx
@@ -1,5 +1,4 @@
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.external.ExternalInterface;
import flash.display.SimpleButton;
Expand Down Expand Up @@ -31,15 +30,15 @@ class Clippy {
button.downState = flash.Lib.attach("button_down");
button.hitTestState = flash.Lib.attach("button_down");

button.addEventListener(MouseEvent.MOUSE_OVER, function(e:Event) {
button.addEventListener(MouseEvent.MOUSE_OVER, function(e:MouseEvent) {
call_js(fnc, { action: e.type, id: id });
});

button.addEventListener(MouseEvent.MOUSE_OUT, function(e:Event) {
button.addEventListener(MouseEvent.MOUSE_OUT, function(e:MouseEvent) {
call_js(fnc, { action: e.type, id: id });
});

button.addEventListener(MouseEvent.CLICK, function(e:Event) {
button.addEventListener(MouseEvent.CLICK, function(e:MouseEvent) {
flash.system.System.setClipboard(text);
call_js(fnc, { action: e.type, text: text, id: id });
});
Expand Down

0 comments on commit 656f137

Please sign in to comment.