- Timestamp:
- 07/03/08 15:33:30 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/FPazzle/trunk/src/net/suztomo/FPazzle/FPiece.as
r14992 r15097 24 24 private var idNumber:TextField; 25 25 private var rotateController:RotateController; 26 private var rotateControllers:Array; 26 27 private var toX:Number, toY:Number; 27 28 … … 65 66 addEventListener(MouseEvent.MOUSE_OUT, onOut); 66 67 67 rotateController = new RotateController(this, p_width, p_height); 68 rotateControllers = new Array(); 69 rotateControllers.push(new RotateController(this, p_width, p_height, 0)); 70 rotateControllers.push(new RotateController(this, p_width, p_height, 1)); 71 rotateControllers.push(new RotateController(this, p_width, p_height, 2)); 72 rotateControllers.push(new RotateController(this, p_width, p_height, 3)); 68 73 } 69 74 … … 183 188 public function attachRotateController():void 184 189 { 185 if (!contains(rotateController)) 186 addChild(rotateController); 190 for (var i:int; i<rotateControllers.length; i++) { 191 addChild(rotateControllers[i]); 192 } 187 193 } 188 194 189 195 public function detachRotateController():void 190 196 { 191 if (contains(rotateController)) 192 removeChild(rotateController); 197 for (var i:int; i<rotateControllers.length; i++) { 198 if (contains(rotateControllers[i])) removeChild(rotateControllers[i]); 199 } 193 200 } 194 201
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)