?? freetrandot.as
字號:
?/***
FreeTranDot 版本:v1.0
簡要說明:這家伙很懶什么都沒寫
創(chuàng)建時間:2009年2月4日 09:22:54
創(chuàng)建人:ZЁЯ¤ 身高:168cm+;體重:57kg+;未婚;最愛的運動:睡覺;格言:路見不平,拔腿就跑;QQ:358315553
歷次修改:未有修改
用法舉例:這家伙很懶什么都沒寫
*/
package ui{
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class FreeTranDot extends Sprite{
public var xId:int;
public var yId:int;
public function FreeTranDot(){
this.addEventListener(Event.ADDED_TO_STAGE,added);
xId=int(this.name.charAt(4));
yId=int(this.name.charAt(5));
if(xId>0){
xId=(xId-1.5)*2;
}
if(yId>0){
yId=(yId-1.5)*2;
}
this.mouseChildren=false;
}
private function added(event:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE,added);
this.addEventListener(Event.REMOVED_FROM_STAGE,removed);
this.addEventListener(MouseEvent.MOUSE_OVER,(this.parent as FreeTran).rollOverDot);
this.addEventListener(MouseEvent.MOUSE_OUT,(this.parent as FreeTran).rollOutArea);
this.addEventListener(MouseEvent.MOUSE_DOWN,(this.parent as FreeTran).pressDot);
}
private function removed(event:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE,removed);
this.removeEventListener(MouseEvent.MOUSE_OVER,(this.parent as FreeTran).rollOverDot);
this.removeEventListener(MouseEvent.MOUSE_OUT,(this.parent as FreeTran).rollOutArea);
this.removeEventListener(MouseEvent.MOUSE_DOWN,(this.parent as FreeTran).pressDot);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -