Motion
import mx.transitions.Tween;
import mx.transitions.easing.*;
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Back.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Bounce.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Elastic.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Strong.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.None.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.None.easeIn, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.None.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.None.easeInOut, 0, 300, 2, true);
mx.transitions.TransitionManager.start(mc, {type:mx.transitions.Zoom, direction:0, duration:1, easing:mx.transitions.easing.Bounce.easeOut, param1:empty, param2:empty});
mx.transitions.TransitionManager.start(mc, {type:mx.transitions.Zoom, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.Bounce.easeOut});
this.createEmptyMovieClip("box_mc", this.getNextHighestDepth());
with (box_mc) {
beginFill(0xFF0000, 60);
moveTo(0, 0); lineTo(20, 0);
lineTo(20, Stage.height);
lineTo(0, Stage.height);
lineTo(0, 0); endFill();
}
var box_tween:Tween = new Tween(box_mc, "_x", Regular.easeInOut, 0, 100, 1, true);
box_tween.onMotionFinished = function() {
trace("onMotionFinished triggered");
};
import mx.transitions.easing.*;
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Back.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Bounce.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Elastic.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Strong.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.None.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.None.easeIn, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.None.easeOut, 0, 300, 2, true);
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.None.easeInOut, 0, 300, 2, true);
mx.transitions.TransitionManager.start(mc, {type:mx.transitions.Zoom, direction:0, duration:1, easing:mx.transitions.easing.Bounce.easeOut, param1:empty, param2:empty});
mx.transitions.TransitionManager.start(mc, {type:mx.transitions.Zoom, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.Bounce.easeOut});
this.createEmptyMovieClip("box_mc", this.getNextHighestDepth());
with (box_mc) {
beginFill(0xFF0000, 60);
moveTo(0, 0); lineTo(20, 0);
lineTo(20, Stage.height);
lineTo(0, Stage.height);
lineTo(0, 0); endFill();
}
var box_tween:Tween = new Tween(box_mc, "_x", Regular.easeInOut, 0, 100, 1, true);
box_tween.onMotionFinished = function() {
trace("onMotionFinished triggered");
};
댓글