Angle
Inherits from:none (Angle is a root class)
- Version: 1.0
- Author: Brendan Dawes
- Classpath: com.dragslidefade.Angle
- File last modified: Saturday, 16 April 2005, 10:20:56
Rotates a movieclip to the angle of the mouse
Example:
var a:Angle = new Angle(instanceName,1);
Summary
Constructor
Angle
function Angle (
$target:MovieClip,
$depth:Number)
Parameters:
target:
the MovieClip you want to target
depth :
the depth of the MovieClip
Instance properties
onAngleUpdate
onAngleUpdate:Function
Callback function returns the current rotation value
Instance methods
attachAngleCalc
function attachAngleCalc (
)
Attaches the onMouseMove event to the targeted MovieClip, calculates the angle
remove
function remove (
)
Removes the onMouseMove event from the MovieClip