Difference between revisions of "MovieClip"
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> The `MovieClip` class inherits from the following classes: `Sp...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' <br/> | + | '''Supported platforms:''' android, ios, mac, pc<br/> |
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
Line 66: | Line 66: | ||
Following examples demonstrates the possible uses of MovieClip class.<br /> | Following examples demonstrates the possible uses of MovieClip class.<br /> | ||
<br /> | <br /> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
{|- | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[MovieClip.new]] - creates a new MovieClip object<br/> | ||
+ | [[MovieClip:clearAction]] - clears the action at the specified frame<br/> | ||
+ | [[MovieClip:getFrame]] - <br/> | ||
+ | [[MovieClip:gotoAndPlay]] - goes to the specified frame and starts playing<br/> | ||
+ | [[MovieClip:gotoAndStop]] - goes to the specified frame and stops<br/> | ||
+ | [[MovieClip:play]] - starts playing the movie clip<br/> | ||
+ | [[MovieClip:setGotoAction]] - sets a "go to" action to the specified frame<br/> | ||
+ | [[MovieClip:setReverseAction]] - sets a "reverse" action to the specified frame<br/> | ||
+ | [[MovieClip:setStopAction]] - sets a "stop" action to the specified frame<br/> | ||
+ | [[MovieClip:stop]] - stops playing the movie clip<br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
+ | [[Event.COMPLETE]] | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
The `MovieClip` class inherits from the following classes: `Sprite` > `EventDispatcher`.
The `MovieClip` class is used create static timedlined animations. The timeline parameters are given as an array.
Each array element specifies one timeline element and consists of the starting frame, ending frame, sprite and
optional tweening parameters. Frame numbers start from 1.
When a `MovieClip` object finishes it playing (by reaching its final frame or a frame with stop action),
it dispatches an `Event.COMPLETE` event.
The following properties can be tweened:
- `x`
- `y`
- `rotation`
- `scale`
- `scaleX`
- `scaleY`
- `alpha`
Additionally `MovieClip` uses set function to tween properties, so if you override provided object's set function by adding new parameters it can accept, then you can tween those new parameters too.
The following easing functions can be used:
* `"inBack"`
* `"outBack"`
* `"inOutBack"`
* `"inBounce"`
* `"outBounce"`
* `"inOutBounce"`
* `"inCircular"`
* `"outCircular"`
* `"inOutCircular"`
* `"inCubic"`
* `"outCubic"`
* `"inOutCubic"`
* `"inElastic"`
* `"outElastic"`
* `"inOutElastic"`
* `"inExponential"`
* `"outExponential"`
* `"inOutExponential"`
* `"linear"`
* `"inQuadratic"`
* `"outQuadratic"`
* `"inOutQuadratic"`
* `"inQuartic"`
* `"outQuartic"`
* `"inOutQuartic"`
* `"inQuintic"`
* `"outQuintic"`
* `"inOutQuintic"`
* `"inSine"`
* `"outSine"`
* `"inOutSine"`
Following examples demonstrates the possible uses of MovieClip class.
MethodsMovieClip.new - creates a new MovieClip object |
EventsConstants |