Browse files

Added Compatibility for newer versions of swfmill

  • Loading branch information...
1 parent 686fe1f commit a8735d02839a7b5d13d41e88cfb041a9308b8135 @tperegrina tperegrina committed Aug 17, 2012
Showing with 13 additions and 7 deletions.
  1. +10 −4 Clippy.hx
  2. BIN build/clippy.swf
  3. BIN library.swf
  4. +3 −3 library.xml
View
14 Clippy.hx
@@ -6,6 +6,12 @@ import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.external.ExternalInterface;
+class ButtonUp extends MovieClip { public function new() {super();} }
+
+class ButtonOver extends MovieClip { public function new(){super();} }
+
+class ButtonDown extends MovieClip { public function new(){super();} }
+
class Clippy {
// Main
static function main() {
@@ -36,10 +42,10 @@ class Clippy {
var button:SimpleButton = new SimpleButton();
button.useHandCursor = true;
- button.upState = flash.Lib.attach("button_up");
- button.overState = flash.Lib.attach("button_over");
- button.downState = flash.Lib.attach("button_down");
- button.hitTestState = flash.Lib.attach("button_down");
+ button.upState = flash.Lib.attach("ButtonUp");
+ button.overState = flash.Lib.attach("ButtonOver");
+ button.downState = flash.Lib.attach("ButtonDown");
+ button.hitTestState = flash.Lib.attach("ButtonDown");
button.addEventListener(MouseEvent.MOUSE_UP, function(e:MouseEvent) {
flash.system.System.setClipboard(ExternalInterface.call("(function(id){if(document.getElementById(id)){ return(document.getElementById(id).innerHTML) }else{alert('WARN: ' + id + ' Not found ');}})",id));
View
BIN build/clippy.swf
Binary file not shown.
View
BIN library.swf
Binary file not shown.
View
6 library.xml
@@ -2,9 +2,9 @@
<movie version="8" width="14" height="14" framerate="0">
<frame>
<library>
- <clip id="button_up" import="assets/button_up.png"/>
- <clip id="button_over" import="assets/button_over.png"/>
- <clip id="button_down" import="assets/button_down.png"/>
+ <clip id="ButtonUp" import="assets/btn-copyCurl-dn.png"/>
+ <clip id="ButtonOver" import="assets/btn-copyCurl-hover.png"/>
+ <clip id="ButtonDown" import="assets/btn-copyCurl-up.png"/>
</library>
</frame>
</movie>

0 comments on commit a8735d0

Please sign in to comment.