rotateActivePiece Method

Flash Puzzles » Methods » Puzzle Methods » rotateActivePiece ::

rotateActivePiece Method

public function rotateActivePiece(dir:int=1):void

Rotates the active puzzle piece (last clicked), 90 degrees, clockwise if dir>0, and counterclockwise if dir<=0.

Parameters
dir:int (default = 1) - Parameter defining the direction of the rotation. CW if pozitive, CCW if zero or negative.

Jigsaw Puzzle AS3 Class
Jigsaw Puzzle AS3 Class

Properties, Methods and Events supported by Jigsaw Puzzle AS3 Component Class for Flash.