Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make the event name match jQuery event names

  • Loading branch information...
commit 756d6c78c80d46ff146d2b5d4b93a2f65d777856 1 parent f5d4ec9
@cehoffman authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 Clippy.hx
  2. BIN  build/clippy.swf
View
10 Clippy.hx
@@ -33,24 +33,24 @@ class Clippy {
flash.system.System.setClipboard(text);
ExternalInterface.call(callBack, text, id);
} else {
- flash.system.System.setClipboard(ExternalInterface.call(callBack, "mouseClick", id));
+ flash.system.System.setClipboard(ExternalInterface.call(callBack, "click", id));
}
});
button.addEventListener(MouseEvent.MOUSE_OVER, function(e:MouseEvent) {
- ExternalInterface.call(callBack, "mouseOver", id);
+ ExternalInterface.call(callBack, "mouseenter", id);
});
button.addEventListener(MouseEvent.MOUSE_OUT, function(e:MouseEvent) {
- ExternalInterface.call(callBack, "mouseOut", id);
+ ExternalInterface.call(callBack, "mouseleave", id);
});
button.addEventListener(MouseEvent.MOUSE_DOWN, function(e:MouseEvent) {
- ExternalInterface.call(callBack, "mouseDown", id);
+ ExternalInterface.call(callBack, "mousedown", id);
});
button.addEventListener(MouseEvent.MOUSE_UP, function(e:MouseEvent) {
- ExternalInterface.call(callBack, "mouseUp", id);
+ ExternalInterface.call(callBack, "mouseup", id);
});
flash.Lib.current.addChild(button);
View
BIN  build/clippy.swf
Binary file not shown

0 comments on commit 756d6c7

Please sign in to comment.
Something went wrong with that request. Please try again.