Rotatablescalable
From NUI Group Community Wiki
(Redirected from RotatableScalable)
This Class enables an application to scale, rotate, and drag the stage around like the typical photo application. Each of these parts can be turned off as needed.
Contents |
Public Variables
- blobs:array
- state:string - the state the object is in (none, dragging, and rotatescale )
- other
- blob1:Object
- blob2:Object
- bringToFront:Boolean=true
- noScale=false
- noRotate=false
- noMove=false
- mouseSelection=false
- dX:Number
- dY:Number
- dAng:Number
- dcoef:Number=0.5
- DoubleTap variables
- xdist:Number
- ydist:Number
- distance:Number
- oldX:Number=0
- oldY:Number=0
- doubleclickDuration:Number=500
- clickRadius:Number=50
- lastClick:Number=0
Overridable Functions
- Double Tap
- released
- mouseMoveHandler
- mouseRollOverHandler
- mouseRollOutHandler
public override function doubleTap(){ //enter code here }
Using Class
This class simply requires that your app's class extend the RotatableScalable class.
Example Code
package app.demo.MyTouchApp{ import app.core.action.RotatableScalable; public class MyTouchApp extends RotatableScalable { public function MyTouchApp(){ noScale = true; //make it not scale noRotate = true; //make it not rotate noMove = true; //make it not move } } }
