Extends
- PIXI.Container
Members
-
alpha :number
-
Transparency.
Type:
- number
-
mask :createjs.Shape
-
Get shape instance that has graphics of current mask.
Type:
-
parent :createjs.MovieClip
-
Current parent instance.
Type:
-
regY :number
-
Y coordinate of the rotation reference point.
Type:
- number
-
regY :number
-
X coordinate of the rotation reference point.
Type:
- number
-
rotation :number
-
Rotation amount (degree).
Type:
- number
-
scaleX :number
-
Scale in X direction
Type:
- number
-
scaleY :number
-
Scale in Y direction
Type:
- number
-
skewX :number
-
X skew factor (degree).
Type:
- number
-
skewY :number
-
Y skew factor (degree).
Type:
- number
-
x :number
-
X coordinate of the current position.
Type:
- number
-
y :number
-
Y coordinate of the current position.
Type:
- number
Methods
-
addEventListener(type, func [, isCapture])
-
Registers event.
Parameters:
Name Type Argument Default Description type
string Event type.
func
function Callback when the event fires.
Context 'this' in callback is window.isCapture
bool <optional>
false Defined for compatibility. Creap.js always ignores it.
Returns:
Referece of argument 'func'.
- Type
- function
-
dispatchEvent(e)
-
Fires event.
Parameters:
Name Type Description e
string | createjs.Event Event type or Event object.
-
removeAllEventListeners( [type])
-
Unregisters all applicable events.
Parameters:
Name Type Argument Default Description type
string <optional>
'' Registered event type. If it regarded as false, unregister all events.
-
removeEventListener(type, func [, isCapture])
-
Unregisters event.
Parameters:
Name Type Argument Default Description type
string Registered event type.
func
function Regitered callback.
isCapture
bool <optional>
false Defined for compatibility. Creap.js always ignores it.
-
setTransform( [x] [, y] [, scaleX] [, scaleY] [, rotation] [, skewX] [, skewY] [, regX] [, regY])
-
Set values of instance properties.
Parameters:
Name Type Argument Default Description x
number <optional>
0 X coordinate of the current position.
y
number <optional>
0 Y coordinate of the current position.
scaleX
number <optional>
1 Scale in X direction
scaleY
number <optional>
1 Scale in Y direction
rotation
number <optional>
0 Rotation amount (degree).
skewX
number <optional>
0 X skew factor (degree).
skewY
number <optional>
0 Y skew factor (degree).
regX
number <optional>
0 X coordinate of the rotation reference point.
regY
number <optional>
0 Y coordinate of the rotation reference point.
Events
-
click
-
Fires when click on the instance.
-
mousedown
-
Fires when mousedown or touchstart, on the instance.
-
pressmove
-
Fires when mousemove or touchmove, after createjs~DisplayObject.mousedown fires.
-
pressup
-
Fires when mouseup or touchend, after createjs~DisplayObject.mousedown fires.