Flash

[Flash] AS2 더블클릭 예

OJR 2008. 11. 11. 16:40

_root.mc.onPress = function():Void
{
   if ((Number(getTimer()-this.mytime)<300) && this.xx==this._xmouse && this.yy==this._ymouse)
   {
      trace('double click map');
   } else {
      this.mytime = getTimer(); 
      this.xx = this._xmouse; 
      this.yy = this._ymouse;  // 더블클릭 실패
   } 

더블클릭 꽁수~

없으면 만들어야지 어쩌겠냐~

'Flash' 카테고리의 다른 글

[Flash] AS2 초기설정  (0) 2008.11.19
[Flash] AS2 시계  (0) 2008.11.18
flash swf 가로세로가 동적으로 변할때  (0) 2008.11.11
flash player 9  (0) 2008.11.07
Flash sound  (0) 2008.11.07