Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make the event name match jQuery event names

  • Loading branch information...
commit 756d6c78c80d46ff146d2b5d4b93a2f65d777856 1 parent f5d4ec9
Chris Hoffman authored

Showing 2 changed files with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 Clippy.hx
  2. BIN  build/clippy.swf
10 Clippy.hx
@@ -33,24 +33,24 @@ class Clippy {
33 33 flash.system.System.setClipboard(text);
34 34 ExternalInterface.call(callBack, text, id);
35 35 } else {
36   - flash.system.System.setClipboard(ExternalInterface.call(callBack, "mouseClick", id));
  36 + flash.system.System.setClipboard(ExternalInterface.call(callBack, "click", id));
37 37 }
38 38 });
39 39
40 40 button.addEventListener(MouseEvent.MOUSE_OVER, function(e:MouseEvent) {
41   - ExternalInterface.call(callBack, "mouseOver", id);
  41 + ExternalInterface.call(callBack, "mouseenter", id);
42 42 });
43 43
44 44 button.addEventListener(MouseEvent.MOUSE_OUT, function(e:MouseEvent) {
45   - ExternalInterface.call(callBack, "mouseOut", id);
  45 + ExternalInterface.call(callBack, "mouseleave", id);
46 46 });
47 47
48 48 button.addEventListener(MouseEvent.MOUSE_DOWN, function(e:MouseEvent) {
49   - ExternalInterface.call(callBack, "mouseDown", id);
  49 + ExternalInterface.call(callBack, "mousedown", id);
50 50 });
51 51
52 52 button.addEventListener(MouseEvent.MOUSE_UP, function(e:MouseEvent) {
53   - ExternalInterface.call(callBack, "mouseUp", id);
  53 + ExternalInterface.call(callBack, "mouseup", id);
54 54 });
55 55
56 56 flash.Lib.current.addChild(button);
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.