Changeset 13828
- Timestamp:
- 06/13/08 22:41:44 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/FPazzle/trunk/src/net/suztomo/FPazzle/FPiece.as
r13826 r13828 2 2 { 3 3 import flash.display.Sprite; 4 import flash.events.*; 4 5 5 6 public class FPiece extends Sprite … … 8 9 { 9 10 super(); 11 this.addEventListener(MouseEvent.MOUSE_DOWN, onClick); 12 this.addEventListener(MouseEvent.MOUSE_UP, onRelese); 13 } 14 15 private function onClick(event:Event):void 16 { 17 this.startDrag(); 10 18 } 11 19 20 private function onRelese(event:Event):void 21 { 22 this.stopDrag(); 23 } 12 24 } 13 25 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)