Changeset 14992 for lang/actionscript
- Timestamp:
- 07/01/08 16:49:28 (5 months ago)
- Location:
- lang/actionscript/FPazzle/trunk/src
- Files:
-
- 3 added
- 3 modified
-
FPazzle.mxml (modified) (2 diffs)
-
img (added)
-
img/gu.png (added)
-
img/pa.png (added)
-
net/suztomo/FPazzle/FPiece.as (modified) (4 diffs)
-
net/suztomo/FPazzle/FPieceGroup.as (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/FPazzle/trunk/src/FPazzle.mxml
r14980 r14992 21 21 <mx:Label id="footer" selectable="true" paddingTop="0"/> 22 22 23 23 24 <mx:Script> 24 25 <![CDATA[ … … 47 48 48 49 public static var container:UIComponent; 50 49 51 50 52 private var board:FBoard; -
lang/actionscript/FPazzle/trunk/src/net/suztomo/FPazzle/FPiece.as
r14965 r14992 32 32 public var init_group:FPieceGroup; 33 33 34 [Embed(source="img/pa.png")] private var CursorPa :Class; 35 [Embed(source="img/gu.png")] private var CursorGu :Class; 36 34 37 35 38 public function FPiece(_pieceImage:BitmapData, _p_width:Number, _p_height:Number, _x_index:uint = 0, _y_index:uint = 0) … … 58 61 idNumber = new TextField(); 59 62 idNumber.text = id.toString(); 60 //showId(); 63 64 addEventListener(MouseEvent.MOUSE_OVER, onOver); 65 addEventListener(MouseEvent.MOUSE_OUT, onOut); 61 66 62 67 rotateController = new RotateController(this, p_width, p_height); … … 86 91 } 87 92 93 private function onOver(event:Event):void 94 { 95 CursorManager.setCursor(CursorPa); 96 } 97 98 private function onOut(e:Event):void 99 { 100 CursorManager.removeAllCursors(); 101 } 102 88 103 private function onClick(event:Event):void 89 104 { … … 109 124 removeEventListener(MouseEvent.MOUSE_DOWN, onClick); 110 125 removeEventListener(MouseEvent.MOUSE_UP, onRelese); 126 removeEventListener(MouseEvent.MOUSE_OVER, onOver); 127 removeEventListener(MouseEvent.MOUSE_OUT, onOut); 111 128 addEventListener(Event.ENTER_FRAME, becomeGradualTransparent); 112 129 } -
lang/actionscript/FPazzle/trunk/src/net/suztomo/FPazzle/FPieceGroup.as
r14949 r14992 6 6 import flash.system.*; 7 7 8 import mx.managers.CursorManager; 8 9 import mx.controls.*; 9 10 import mx.core.*; … … 24 25 public var id:uint; 25 26 public static var id_count:uint = 1; 26 27 28 [Embed(source="img/pa.png")] private var CursorPa :Class; 29 [Embed(source="img/gu.png")] private var CursorGu :Class; 30 27 31 public function FPieceGroup(p:FPiece) 28 32 { … … 172 176 if (hasEventListener(Event.ENTER_FRAME)) 173 177 removeEventListener(Event.ENTER_FRAME, noticeHandle); 178 CursorManager.setCursor(CursorPa); 174 179 e.stopPropagation(); 175 180 } … … 181 186 (pieces[i] as FPiece).onGroupUnselected(); 182 187 } 188 CursorManager.removeAllCursors(); 183 189 e.stopPropagation(); 184 190 } … … 188 194 startDrag(); 189 195 board.setChildIndex(this, board.numChildren-1); 196 CursorManager.removeCursor(CursorManager.currentCursorID); 197 CursorManager.setCursor(CursorGu); 190 198 e.stopPropagation(); 191 199 } … … 194 202 { 195 203 stopDrag(); 204 CursorManager.removeCursor(CursorManager.currentCursorID); 205 CursorManager.setCursor(CursorPa); 196 206 e.stopPropagation(); 197 207 … … 284 294 handle.removeEventListener(MouseEvent.MOUSE_UP, stopDragGroup); 285 295 handle.alpha = 0; 296 CursorManager.removeAllCursors(); 286 297 } 287 298
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)