1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
package myEvent
{
import flash.display.InteractiveObject;
import flash.events.Event;
import flash.events.MouseEvent;
public class MouseEventEx extends MouseEvent
{
public static const CLICKED:String = "clicked";
public var chaine1:String;
public var chaine2:String;
public function MouseEventEx(type:String, param1:String, param2:String, bubbles:Boolean = true, cancelable:Boolean = false, localX:Number=0, localY:Number=0, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0)
{
super(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
this.chaine1 = param1;
this.chaine2 = param2;
}
public override function clone():Event
{
return new MouseEventEx(type, chaine1, chaine2, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
}
public override function toString():String
{
return formatToString("MouseEventEx", "type", "chaine1", "chaine2", "bubbles", "cancelable", "localX", "localY", "relatedObject", "ctrlKey", "altKey", "shiftKey", "buttonDown", "delta", "eventPhase");
}
}
} |
Partager