mobile-graphic-enchant-dev-src-Action.js / js
@scope enchant.Action.prototype @type {*}
@name enchant.Action @class [lang:ja] アニメーションタイムラインを構成する、実行したい処理を指定するためのクラス. タイムラインに追加されたアクションは順に実行される。 アクションが開始・終了された時に actionstart, actionend イベントが発行され、 また1フレーム経過した時には actiontick イベントが発行される。 これらのイベントのリスナとして実行したい処理を指定する。 time で指定されたフレーム数が経過すると自動的に次のアクションに移行するが、 null が指定されると、タイムラインの next メソッドが呼ばれるまで移行しない。 @constructs
parameter: param @config {integer} [time] アクションが持続するフレーム数。 null が指定されると無限長 @config {function} [onactionstart] アクションが開始される時のイベントリスナ @config {function} [onactiontick] アクションが1フレーム経過するときのイベントリスナ @config {function} [onactionend] アクションがが終了する時のイベントリスナ [/lang] [lang:en] Action class. * Actions are units that make up the time line, * It is a unit used to specify the action you want to perform. * Action has been added to the time line is performed in order. * * Actionstart, actiontick event is fired when the action is started and stopped, * When one frame has elapsed actiontick event is also issued. * Specify the action you want to perform as a listener for these events. * The transition to the next action automatically the number of frames that are specified in the time has elapsed. @constructs
parameter: param @config {integer} [time] The number of frames that will last action. infinite length is specified null @config {function} [onactionstart] Event listener for when the action is initiated @config {function} [onactiontick] Event listener for when the action has passed one frame @config {function} [onactionend] Event listener for when the action is finished [/lang] @constructs
(C) Æliens 04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.