topical media & game development
actionscript-eventflow-stoppropagation-Tool.ax
actionscript-eventflow-stoppropagation-Tool.ax
[swf]
flex
package {
import flash.display.Sprite;
import flash.text.*;
import flash.events.*;
public class @ax-actionscript-eventflow-stoppropagation-Tool extends Sprite {
private var t:TextField;
public function @ax-actionscript-eventflow-stoppropagation-Tool () {
t = new TextField();
t.text = "Tool";
t.autoSize = TextFieldAutoSize.LEFT;
t.border = true;
t.background = true;
t.selectable = false;
addChild(t);
addEventListener(MouseEvent.CLICK, clickListener);
}
private function clickListener (e:MouseEvent):void {
trace("Tool clicked...");
}
}
}
(C) Æliens
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.