Tweener.addTween(this.____,{alpha:1,time:1,transition:"easeInOutQuad"});
Tag Archive for tween
Tweener add Tween Caurina AS3
Tween Alpha MovieClips
MovieClip.prototype.incAlpha = function(time){
var myClip = this;
var myTween:Tween = new Tween(myClip, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, time, false);
myTween.onMotionFinished = function(){myClip._visible=true;}
};
MovieClip.prototype.decAlpha = function(time){
var myClip2 = this;
var myTween:Tween = new Tween(myClip2, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, time, false);
myTween.onMotionFinished = function(){myClip2._visible=false;}
};
AS2 Basic Steam Particles; requires MC Tween
// This script requires a movieclip in the library exported for actionscript as "particle_mc"
#include "mc_tween2.as" // from <a href="http://hosted.zeh.com.br/mctween/" >http://hosted.zeh.com.br/mctween/</a>
var speed:Number = 1.2; // speed at which each particle rises per cycle
var lifespan:Number = 4000; // in milliseconds
var particleCount:Number = 30; // the system starts slowing down at/above 50. This is just a quick & easy particle system, and AS2 isn't the best for particles, either.
var alphaInitial:Number = 80; // what alpha level each particle is set to upon spawning
var fadeRate:Number = .2; // how much per cycle each particle's alpha drops
var spawnMovieClip:MovieClip; // set this to a movieclip if you want to attach the steam to something
if(spawnMovieClip != undefined) {
var spawnX:Number = spawnMovieClip._x;
var spawnY:Number = spawnMovieClip._y;
} else {
var spawnX:Number = Stage.width/2;
var spawnY:Number = Stage.height/2;
}
var wandering:Array = Array(particleCount); // this is a per-particle left-right direction, so that the horizontal movement of each particle is less jumpy
var merging:Number = 0; // Don't change this. An incrementing value.
var mergingLoop:Number = 1000; // length of merge cycle
var mergingThreshold:Number = 500; // change this to set the frequency of the tendency for particles to group together. Higher is more frequent, Lower is less.
this.onEnterFrame = function() {
for(intI = 0; intI < particleCount; intI++) {
if(this["steam" + intI + "_mc"] == undefined) { // this happens once for each particle
this.attachMovie("particle_mc", "steam" + intI + "_mc", this.getNextHighestDepth(), {_x:-500, _y:-500, _alpha:0});
if(spawnMovieClip != undefined) this["steam" + intI + "_mc"].swapDepths(spawnMovieClip); // slips each particle underneath the attach object, if defined.
var timeout:Number = setTimeout(spawnSteam, randRange(.25*lifespan,.75*lifespan), this["steam" + intI + "_mc"]); // "spawning" each particle really only resets its default properties, so that we can just recyle the movieclips
wandering[intI] = 0;
}
merging++;
if (merging == mergingLoop) merging = 0;
wandering[intI] += randRange(-100,100)/100;
if (merging < mergingThreshold) {
var thisX:Number = this["steam" + intI + "_mc"]._x;
var prevX:Number = this["steam" + (intI-1) + "_mc"]._x;
var Dif:Number = thisX - prevX;
if (Dif > 0) { // if we're currently to the right of the previous particle
if (thisX - prevX > 10) { // if the difference is more than 10 pixels
wandering[intI] = -1; // set the current particle's direction to move left
}
} else {
if (prevX - thisX > 10) {
wandering[intI] = 1;
}
}
}
// limit each particles horizontal movement to no more than one pixel per cycle
if(wandering[intI] < -1) {wandering[intI] = -1};
if(wandering[intI] > 1) {wandering[intI] = 1};
// apply the changes to each particle
this["steam" + intI + "_mc"]._x += wandering[intI];//randRange(-2*speed,2*speed);
this["steam" + intI + "_mc"]._y -= speed;
this["steam" + intI + "_mc"]._alpha -= fadeRate + randRange(2*fadeRate,4*fadeRate);
this["steam" + intI + "_mc"]._rotation += (randRange(-150,150)/300);
}
}
function spawnSteam (which_mc:MovieClip) {
which_mc.scaleTo(randRange(20,50));
which_mc.blurTo(10);
which_mc._x = spawnX;// + 80 + randRange(20,40); // remove tweaking or change it if you want to adjust where in relation to the attach object you want each particle to spawn
which_mc._y = spawnY;// + 140 + randRange(-5,5); // remove tweaking or change it if you want to adjust where in relation to the attach object you want each particle to spawn
which_mc.alphaTo(alphaInitial, .25);
var timeout:Number = setTimeout(spawnSteam, lifespan+randRange(-.5*lifespan,.5*lifespan), which_mc);
}
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}
stop();
AS2 Tween Fuse _widthãªã©ã‚’個別ã«tweenã•ã›ã‚‹
/*_root ã«ãƒ ービークリップ(インスタンスå: frog) ã‚’é…置。
frog ã«ã¯ã€ãƒ ービークリップ(インスタンスå: base, shade) ã‚’é…置。*/
/*brightOffsetTo(), slideTo() ã‚’åŒæ™‚ã«å®Ÿè¡Œã™ã‚‹ã‚¹ã‚¯ãƒªãƒ—トを
tween(), ZigoEngine.doTween() を用ã„ã¦ã€æ›¸ãæ›ãˆã¦ã¿ãŸã€‚*/
// brightOffsetTo
frog.base._brightOffset = -100;
frog.base.brightOffsetTo(0, 1, "linear", 0.5);
// slideTo
frog.slideTo("-200", "-20", 1, "easeOutQuad", 0.5);
// tween (1)
frog.base._brightOffset = -100;
frog.base.tween("_brightOffset", 0, 1, "linear", 0.5);
frog.tween("_x", "-200", 1, "easeOutQuad", 0.5);
frog.tween("_y", "-20", 1, "easeOutQuad", 0.5);
// tween (2)
frog.base._brightOffset = -100;
frog.base.tween("_brightOffset", 0, 1, "linear", 0.5);
frog.tween("_x, _y", ["-200", "-20"], 1, "easeOutQuad", 0.5);
// doTween (1)
frog.base._brightOffset = -100;
ZigoEngine.doTween(frog.base, "_brightOffset", 0, 1, "linear", 0.5);
ZigoEngine.doTween(frog, "_x,", "-200", 1, "easeOutQuad", 0.5);
ZigoEngine.doTween(frog, "_y", "-20", 1, "easeOutQuad", 0.5);
// doTween (2)
frog.base._brightOffset = -100;
ZigoEngine.doTween(frog.base, "_brightOffset", 0, 1, "linear", 0.5);
ZigoEngine.doTween(frog, "_x, _y", ["-200", "-20"], 1, "easeOutQuad", 0.5);
// ----------------------------------------------------------
/*Blur_blurTo(), scaleTo(),bezierTo() ã‚’åŒæ™‚ã«å®Ÿè¡Œã™ã‚‹ã‚¹ã‚¯ãƒªãƒ—トを
tween(), ZigoEngine.doTween() を用ã„ã¦ã€æ›¸ãæ›ãˆã¦ã¿ãŸã€‚*/
// Blur_blurTo
frog.Blur_quality = 3;
frog.Blur_blurTo(4, 1, "easeInOutQuad", 0.5);
// scale/bezierTo
frog.scaleTo(90, 1, "easeInOutQuad", 0.5);
frog.bezierTo("-200", "-20", "-150", "20", 1, "easeInOutQuad", 0.5);
// tween (1)
frog.Blur_quality = 3;
frog.tween("Blur_blur", 4, 1, "easeInOutQuad", 0.5);
frog.tween("_scale", 90, 1, "easeInOutQuad", 0.5);
frog.tween("_bezier_", {x: "-200", y: "-20", controlX: "-150", controlY: "20"}, 1, "easeInOutQuad", 0.5);
// tween (2)
frog.Blur_quality = 3;
frog.tween("Blur_blur, _scale, _bezier_", [4, 90, {x: "-200", y: "-20", controlX: "-150", controlY: "20"}], 1, "easeInOutQuad", 0.5);
// doTween (1)
frog.Blur_quality = 3;
ZigoEngine.doTween(frog, "Blur_blur", 4, 1, "easeInOutQuad", 0.5);
ZigoEngine.doTween(frog, "_scale", 90, 1, "easeInOutQuad", 0.5);
ZigoEngine.doTween(frog, "_bezier_", {x: "-200", y: "-20", controlX: "-150", controlY: "20"}, 1, "easeInOutQuad", 0.5);
// doTween (2)
frog.Blur_quality = 3;
ZigoEngine.doTween(frog, "Blur_blur, _scale, _bezier_", [4, 90, {x: "-200", y: "-20", controlX: "-150", controlY: "20"}], 1, "easeInOutQuad", 0.5);
// ----------------------------------------------------------
/*Blur_blurTo(), scaleTo(),bezierTo() ã‚’åŒæ™‚ã«å®Ÿè¡Œã™ã‚‹ã‚¹ã‚¯ãƒªãƒ—トを
tween(), ZigoEngine.doTween() を用ã„ã¦ã€æ›¸ãæ›ãˆã¦ã¿ãŸã€‚*/
// Blur_blurTo
frog1.Blur_quality = 3;
frog1.Blur_blurTo(4, 1, "easeInOutQuad", 0.5);
frog2.Blur_quality = 3;
frog2.Blur_blurTo(4, 1, "easeInOutQuad", 0.5);
// scale/bezierTo
frog1.scaleTo(90, 1, "easeInOutQuad", 0.5);
frog1.bezierTo("-150", "-20", "-100", "20", 1, "easeInOutQuad", 0.5);
frog2.scaleTo(90, 1, "easeInOutQuad", 0.5);
frog2.bezierTo("-150", "-20", "-100", "20", 1, "easeInOutQuad", 0.5);
// tween (1)
frog1.Blur_quality = 3;
frog1.tween("Blur_blur", 4, 1, "easeInOutQuad", 0.5);
frog1.tween("_scale", 90, 1, "easeInOutQuad", 0.5);
frog1.tween("_bezier_", {x: "-150", y: "-20", controlX: "-100", controlY: "20"}, 1, "easeInOutQuad", 0.5);
frog2.Blur_quality = 3;
frog2.tween("Blur_blur", 4, 1, "easeInOutQuad", 0.5);
frog2.tween("_scale", 90, 1, "easeInOutQuad", 0.5);
frog2.tween("_bezier_", {x: "-150", y: "-20", controlX: "-100", controlY: "20"}, 1, "easeInOutQuad", 0.5);
// tween (2)
frog1.Blur_quality = 3;
frog1.tween("Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
frog2.Blur_quality = 3;
frog2.tween("Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
// doTween (1)
frog1.Blur_quality = 3;
ZigoEngine.doTween(frog1, "Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
frog2.Blur_quality = 3;
ZigoEngine.doTween(frog2, "Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
// doTween (2)
frog1.Blur_quality = 3;
frog2.Blur_quality = 3;
ZigoEngine.doTween([frog1, frog2], "Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
Tweener remove tweens
Tweener.removeTweens(child);
Tweener
Tweener.addTween(thumb, {alpha:1, time:1, transition:"easeOutQuad"});
tweener
Tweener.addTween(mc, {alpha:0, x:20, y:20, time:0.3, delay:0.3, transition:"easeinBack"});
Caurina Tween Syntax
import caurina.transitions.*;
Tweener.addTween(b1, {scaleX:1.7, scaleY:1.7, time:1, transition:"easeoutelastic"});
AS2 Fuse ZigoEngine.doShortcuts リファレンス 複数ã®ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã«tween doTweenã®ç°¡ç•¥ç‰ˆ
stop(); import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts, PennerEasing); // 3ã¤ã®ãƒ—ãƒãƒ‘ティをトゥイーンã—ã¾ã™ã€‚yãŒç›¸å¯¾ç§»å‹•指定(string)ã«ãªã£ã¦ã„る事ã«ã‚‚ã”æ³¨æ„ãã ã•ã„。 ZigoEngine.doShortcut(box1_mc, 'slideTo', 100, "150", 1, "easeInOutQuint"); // 相対ä½ç½®ã‚’使ã£ã¦ã€ãƒ™ã‚¸ã‚§æ›²ç·šã«æ²¿ã£ã¦ç§»å‹• ZigoEngine.doShortcut(box2_mc, 'bezierTo', '400','-100','300','150', 1, "easeOutBounce", .5); /* ã“ã®ã‚µãƒ³ãƒ—ルã«ã¤ã„㦠ZigoEngineã®static(クラス)メソッドã§ã‚ã‚‹doTweenを使ãˆã°ã€ 複数ã®ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã®è¤‡æ•°ã®ãƒ—ãƒãƒ‘ティをトゥイーンã•ã›ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ doShortcutã¯doTweenã®ä»£æ›¿ã¨ã—ã¦ä½¿ç”¨ã§ãã€ä½¿ã„ã‚„ã™ã„ショートカット用ã®è¨˜è¿°ãŒã§ãã¾ã™ã€‚ * ã“ã®ãƒ¡ã‚½ãƒƒãƒ‰ã‚’使ã†ã«ã¯ï¼ˆï¼“行目ã®ã‚ˆã†ã«ï¼‰Shotcutsクラスを登録ã—ã¦ãŠã„ã¦ãã ã•ã„ * 1ã¤ç›®ã®ãƒ‘ラメーターã§ã€ï¼‘ã¤æˆ–ã¯è¤‡æ•°å€‹ã®ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã‚’指定ã§ãã¾ã™ï¼š my_mc my_txt my_btn my_obj [my_mc1, my_mc2, my_mc3] ï¼’ã¤ç›®ã®ãƒ‘ラメーターã§ã¯"alphaTo"ã¨ã„ã£ãŸã‚·ãƒ§ãƒ¼ãƒˆã‚«ãƒƒãƒˆåを指定ã—ã¾ã™ 以é™ã®ãƒ‘ラメーターã¯ã‚·ãƒ§ãƒ¼ãƒˆã‚«ãƒƒãƒˆåã«ã‚ˆã£ã¦ã€ã¨ã‚‹å€¤ãŒå¤‰ã‚ã£ã¦ãã¾ã™ å„トゥイーンãŒã¨ã‚‹æ¨™æº–パラメーターã®è©³ç´°ã¯doTweenã«é–¢ã™ã‚‹ãƒ•ァイルをã”覧下ã•ã„。 */ /*MEMO by tera(2006.11.19)---------------------------------------- <a href="http://www.trick7.com" >http://www.trick7.com</a> コールãƒãƒƒã‚¯ã§ã„ã‚ã„ã‚ãªæŒ‡å®šãŒã§ãã¾ã™ã€‚リスナーã®ã‚ˆã†ã«ã€ä»–ã®ã‚ªãƒ–ジェクトã«çŸ¥ã‚‰ã›ã‚‹å¿…è¦ãŒãªã„ã€ã‚¯ãƒªãƒƒãƒ—内ã§å®Œçµã™ã‚‹ã‚ˆã†ãªã‚³ãƒ¼ãƒ«ãƒãƒƒã‚¯ã¯ã€ ã“ã®ã‚µãƒ³ãƒ—ルã®ã‚ˆã†ã«ãƒ‘ラメーターã¨ã—ã¦æ¸¡ã—ã¦ã‚„ã‚‹æ–¹ãŒæ‰‹è»½ã«ä½¿ãˆã¾ã™ã€‚ */
AS2 ZigoEngine.doTween リファレンス プãƒãƒ‘ティã¨ä½¿ã„æ–¹
stop();
import com.mosesSupposes.fuse.*;
import mx.transitions.easing.*;
// 3ã¤ã®ãƒ—ãƒãƒ‘ティをトゥイーンã—ã€çµ‚了時ã«ã‚³ãƒ¼ãƒ«ãƒãƒƒã‚¯ã‚’実行ã—ã¾ã™ã€‚yãŒç›¸å¯¾ç§»å‹•指定(string)ã«ãªã£ã¦ã„る事ã«ã‚‚ã”æ³¨æ„ãã ã•ã„。
ZigoEngine.doTween(box1_mc, '_x,_y,_brightOffset', [100,"150",100], 1, Strong.easeInOut, 2,
{scope:this,func:'trace',args:'移動完了ï¼'});
// ã“ã®ã‚¿ã‚¤ãƒ ラインã®ãƒ•レームをトゥイーンã•ã›ã¾ã™
ZigoEngine.doTween(this, '_frame', 40, 2, Bounce.easeOut);
// 相対ä½ç½®ã‚’使ã£ã¦ã€ãƒ™ã‚¸ã‚§æ›²ç·šã«æ²¿ã£ã¦ç§»å‹•
ZigoEngine.doTween(box2_mc, '_bezier_', { x:'400', controlY:'150' }, 1, Regular.easeInOut, 1);
/*
パラメーターã®èª¬æ˜Ž
ZigoEngineã®static(クラス)メソッドã§ã‚ã‚‹doTweenを使ãˆã°ã€
複数ã®ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã®è¤‡æ•°ã®ãƒ—ãƒãƒ‘ティをトゥイーンã•ã›ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
public static function doTween(targets:Object,
props:Object,
endvals:Object,
seconds:Number,
ease:Object,
delay:Number,
callback:Object):String
è¿½åŠ ã‚µãƒ³ãƒ—ãƒ«ã¨æƒ…å ±
* @param targets オブジェクトやã€è¤‡æ•°ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆã‚’æ ¼ç´ã—ãŸé…列ã«å¯¾ã—ã¦ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³è¨å®šã§ãã¾ã™
my_mc
my_txt
my_btn
my_obj
[my_mc1, my_mc2, my_mc3]
* @param props プãƒãƒ‘ティやã€è¤‡æ•°ãƒ—ãƒãƒ‘ãƒ†ã‚£ã‚’æ ¼ç´ã—ãŸé…列ã«å¯¾ã—ã¦ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³è¨å®šã§ãã¾ã™
"_x"
"_x,_y,_brightness"
["_x","_y","_brightness"]
ZigoEngineã¯è¿½åŠ ãƒ—ãƒãƒ‘ティã«å¯¾ã—ã¦ã‚‚トゥイーンã§ãã¾ã™ï¼š
_brightness 明度(-100 ã‹ã‚‰ 100, 0ã®æ™‚ãŒãƒŽãƒ¼ãƒžãƒ«ã§ã™)
_brightOffset 明るã•ã®ã‚ªãƒ•セット(-100 ã‹ã‚‰ 100, 0ã®æ™‚ãŒãƒŽãƒ¼ãƒžãƒ«ã§ã™)
_contrast コントラスト(0 ã‹ã‚‰ 200+, 100ã®æ™‚ãŒãƒŽãƒ¼ãƒžãƒ«ã§ã™)
_tint 色åˆã„(0xFF33FF, "0xFF33FF", "#FF33FF", "FF33FF"ã®ã‚ˆã†ãªhex値をã¨ã‚Šã¾ã™ã€‚ショートカットプãƒãƒ‘ティã§ã€äººãŒèªã¿ã‚„ã™ã„"0xFF33FF"ã¨ã„ã£ãŸhexストリング値を返ã—ã¾ã™ã€‚Number(my_mc._tint)ã§ã€ç°¡å˜ã«æ•°å€¤ã«å¤‰æ›ã§ãã¾ã™ã€‚)
_tintPercent 色ã¥ãå…·åˆ(0-100 0ã®æ™‚ãŒãƒŽãƒ¼ãƒžãƒ«ã§ã™ 100ã§ãƒ•ルç€è‰²ã§ã™ã€‚ターゲットã®è‰²ãŒå¤‰æ›´ã•れã¦ä»¥é™ã«ã€ã‚¢ã‚¯ãƒ†ã‚£ãƒ–ãªãƒ—ãƒãƒ‘ティã¨ãªã‚Šã¾ã™ã€‚ãれã¾ã§ã¯undefinedã§ã™ã€‚)
_colorReset カラーリセット(ç¾çжã®è‰²åˆã„ãŒ-100ã§ã€100ã«ã™ã‚‹ã¨å…ƒã®è‰²ï¼ˆç„¡ç€è‰²ï¼‰ã«æˆ»ã‚Šã¾ã™ã€‚ - tintPercentを逆行ã•ã›ã‚‹ã‚‚ã®ã¨ãŠè€ƒãˆä¸‹ã•ã„。initializeã•れãŸã‚¿ãƒ¼ã‚²ãƒƒãƒˆã®å…¨ã¦ã®è‰²å¤‰æ›ã‚’削除ã™ã‚‹æ™‚ã¯ã€my_mc._colorReset=100;ã¨ã—ã¾ã™ã€‚)
_invertColor 色å転(写真ã®ãƒã‚¬ã®ã‚ˆã†ãªåŠ¹æžœã§ã™ã€‚0-100ã®å€¤ã‚’ã¨ã‚Šã€0ãŒãƒŽãƒ¼ãƒžãƒ«ã§ã™)
_size サイズ(_width 㨠_height ã‚’åŒã˜å€¤ã«è¨å®šã—ã¾ã™ã€‚(変æ›å‰ãªã©ï¼‰ç¸¦æ¨ªã‚µã‚¤ã‚ºãŒç•°ãªã‚‹å ´åˆã¯nullã‚’è¿”ã—ã¾ã™ã€‚)
_scale スケール(_xscale 㨠_yscale ã‚’åŒã˜å€¤ã«è¨å®šã—ã¾ã™ã€‚(変æ›å‰ãªã©ï¼‰ç¸¦æ¨ªæ¯”率ãŒç•°ãªã‚‹å ´åˆã¯nullã‚’è¿”ã—ã¾ã™ã€‚)
_frame タイムラインã®ãƒ•レーム(MovieClipã ã‘ã«æœ‰åй - ç¾åœ¨ã®ãƒ•レームを返ã—ã¾ã™ã€‚è¨å®šã—ãŸã‚¿ã‚¤ãƒŸãƒ³ã‚°ã§gotoAndStopãŒå®Ÿè¡Œã•れã¾ã™ã€‚)
_bezier_ ベジェ({x:,y:,controlX:,controlY:})
_colorTransform カラートランスフォーム(Flash7ã®colorTransformã¨åŒæ§˜ã®è¨å®šãŒã§ãã¾ã™ã€‚{ra:,rb:,etc.})
多ãã®è¿½åŠ ãƒ—ãƒãƒ‘ティを利用ã—ã¦ãƒ•ィルタをトゥイーンã•ã›ã‚‹äº‹ã‚‚ã§ãã¾ã™ã€‚
FuseFMPãŒç™»éŒ²ã•れã¦ã„ã‚‹ã¨ãã€æ¬¡ã®ã‚ˆã†ãªæ„Ÿã˜ã§åˆ©ç”¨ã§ãã¾ã™ã€‚:
Blur_blurX (shortened_filter_name + "_" + filterprop)
* @param endvals 目的値やã€è¤‡æ•°ç›®çš„å€¤ã‚’æ ¼ç´ã—ãŸé…列ã«å¯¾ã—ã¦ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³è¨å®šã§ãã¾ã™
125
"125" (引用符ã§å›²ã¾ã‚Œã¦ã„る値ã¯ã€ç¾åœ¨ä½ç½®ã‹ã‚‰ã®ç›¸å¯¾å€¤ã¨ã—ã¦ç®—出ã•れã¾ã™ã€‚)
[125, "100", 85] (例:"_x,_y,_brightness"ã«å¯¾ã—ã¦ã“ã®ã‚ˆã†ã«å€¤ã‚’渡ã›ã¾ã™)
90 ("_x,_y,_brightness"ã«å¯¾ã—ã¦ã“ã®ã‚ˆã†ãªå€¤ã‚’渡ã—ãŸæ™‚ã¯ã€å…¨ãƒ—ãƒãƒ‘ティãŒ90ã«ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³ã—ã¾ã™ã€‚)
* @param seconds トゥイーンã®ç¶™ç¶šæ™‚é–“
1.5
null (ZigoEngine.DURATIONã§è¨å®šã•れãŸãƒ‡ãƒ•ォルト値ãŒè¨å®šã•れã¾ã™ã€‚)
0 (0ç§’ã§ã®ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³ã¯
0-second tweens are recommended for setting properties that are
handled by the engine at any time in your program, because they
interrupt any running tween. skipLevelプãƒãƒ‘ティを使ã£ã¦ã€
「0秒トゥイーンã€ã‚„「変化ãªã—トゥイーンã€ã®ã‚³ãƒ¼ãƒ«ãƒãƒƒã‚¯ã‚’無効ã«ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚下ã®è¨˜è¿°ã‚’ã”覧下ã•ã„。)
* @param ease function, shortcut-string, custom-easing-panel object
空欄ã ã¨ãƒ‡ãƒ•ォルト値ã§å®Ÿè¡Œã•れã¾ã™ï¼ˆZigoEngine.EASINGã®éƒ¨åˆ†ã§ãƒ‡ãƒ•ォルト値をè¨å®šã—ã¦ãŠã‘ã¾ã™ã€‚)
1. Pennerイージングã®ãƒ•ォーマットやmx.transitions.easing.Strong.easeOutã¨ã„ã£ãŸã€
ã‚らゆるイージング関数ãŒåˆ©ç”¨ã§ãã¾ã™ã€‚
2. 以下ã®ã‚ˆã†ãªã‚·ãƒ§ãƒ¼ãƒˆã‚«ãƒƒãƒˆæŒ‡å®šã‚’使ã†ã«ã¯ã€PennerEasingクラスã®ç™»éŒ²ãŒå¿…è¦ã§ã™
"linear",
"easeInQuad","easeOutQuad","easeInOutQuad","easeOutInQuad"
"easeInCubic","easeOutCubic","easeInOutCubic","easeOutInCubic"
"easeInQuart","easeOutQuart","easeInOutQuart","easeOutInQuart"
"easeInQuint","easeOutQuint","easeInOutQuint","easeOutInQuint"
"easeInSine","easeOutSine","easeInOutSine","easeOutInSine"
"easeInExpo","easeOutExpo","easeInOutExpo","easeOutInExpo"
"easeInCirc","easeOutCirc","easeInOutCirc","easeOutInCirc"
"easeInElastic","easeOutElastic","easeInOutElastic","easeOutInElastic"
"easeInBack","easeOutBack","easeInOutBack","easeOutInBack"
"easeInBounce","easeOutBounce","easeInOutBounce""easeOutInBounce"
3. カスタムイージングパãƒãƒ«ã§ç”Ÿæˆã•れãŸã‚ªãƒ–ジェクト
* @param delay トゥイーンを実行ã™ã‚‹ã¾ã§ã®å¾…機時間(秒)。以下ã®ã‚ˆã†ãªæŒ‡å®šãŒä½¿ãˆã¾ã™ã€‚
1.5
null
0
* @param callback function, string, objectを指定ã§ãã¾ã™ã€‚
1. function
myFunc (スコープを通ã™å¿…è¦ã®ãªã„関数)
mx.utils.Delegate.create(myScope, myFunc)
2. String
"myFunc" (スコープを通ã™å¿…è¦ã®ãªã„関数)
"trace('done');" (easyfuncストリング指定 - ShortcutsクラスãŒç™»éŒ²ã•れã¦ã„ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚)
3. Callback Object - ã„ã‚ã‚“ãªãƒ‘ラメーターを利用ã§ãã¾ã™ã€‚:
{ scope:this, func:"trace", args:"トゥイーン完了ï¼" }
{ scope:this, func:"myFunc", args:[1,2,3,true] }
トゥイーン終了時ã«å®Ÿè¡Œã•れる: func / scope / args
トゥイーン開始時ã«å®Ÿè¡Œã•れる: startfunc / startscope / startargs
トゥイーン更新時ã«å®Ÿè¡Œã•れる: updfunc / updscope / updargs
ãã®ä»–ã®è¿½åŠ ãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿ãƒ¼ï¼š
-cycles (0=ç„¡é™ãƒ«ãƒ¼ãƒ—, 1=デフォルト, 2+ = 数値ã«å¿œã˜ã¦å¾€å¾©ï¼ˆãƒ¨ãƒ¼ãƒ¨ãƒ¼ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³ï¼‰)
-skipLevel: 0 (デフォルト:トゥイーン時間ã¨å¾…機時間ã®å…¨ã¦ã‚’スケジュール通り実行)
1 (見ã‹ã‘上変化ã®ãªã„トゥイーン時間ã¨å¾…機時間ã¯ã‚¹ã‚ップ)
2 (見ã‹ã‘上変化ã®ãªã„トゥイーン時間ã¨å¾…機時間ã¯ã‚¹ã‚ップã—ã€ã‚¤ãƒ™ãƒ³ãƒˆã‚„コールãƒãƒƒã‚¯ã‚‚実行ã—ãªã„)
skipLevelã«é–¢ã™ã‚‹è©³ç´°ã¯"2d general.fla"ã‚’ã”覧下ã•ã„。
-extra1,extra2 (elastic 㨠back easing用ã®è¿½åŠ ãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿ãƒ¼)
* @return comma-delimited string of props successfully added
"_x,_y,_brightness"
or pipe-delimited series of such, if multiple targets tweened,
so you can verify each target. 例ãˆã°ã€mc1ã®alphaãŒ100ã§ã€
mc2ã®alphaãŒ0ã®çŠ¶æ…‹ã§ã€skipLevelãŒ0以上ã«è¨å®šã•れã¦ã„る時ã¯ã€æœ€åˆã®ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³ã¯ã‚¹ã‚ップã•れã¾ã™ï¼š
ZigoEngine.doTween([mc1,mc2],"_alpha,_x",100,1,'',0,{ skipLevel:1 });
returns "_x|_alpha,_x", 第1ターゲット(mc1)ã§ã¯_xã®ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³ã®ã¿ãŒå®Ÿè¡Œã•れãŸã¨ã„ã†ã“ã¨ã«ãªã‚Šã¾ã™ã€‚
*/
/*MEMO by tera(2006.11.19)---------------------------------------- <a href="http://www.trick7.com" >http://www.trick7.com</a>
doTweenã«ã¯ç¬¬7パラメーターã¾ã§ã‚りã€ãれãžã‚Œä¸Šã®ãƒªã‚¹ãƒˆã®é †ã«è¨å®šã—ã¦ã„ãã€
è¨å®šã—ãªã„箇所もカンマã§åŒºåˆ‡ã£ã¦ãŠãã€ç©ºæ¬„ã«ã—ã¦ãŠãã“ã¨ã€‚
トゥイーン時間ã¨ãƒªã‚¿ãƒ¼ãƒ³ã®é …ãŒè¨³ã›ã¾ã›ã‚“ã§ã—ãŸã€‚ãƒˆã‚¥ã‚¤ãƒ¼ãƒ³æ™‚é–“ã®æ–¹ã¯ã€ä»–ã®ã‚µãƒ³ãƒ—ルを見ã¦ã‚‚らã£ãŸã‚‰ã€è¨€ã‚ã‚“ã¨ã—ã¦ã„ã‚‹ã“ã¨ã¯ç†è§£ã§ãã‚‹ã‹ã¨æ€ã„ã¾ã™ã€‚
リターンã«é–¢ã—ã¦ã¯ã€ã©ã†ã‚„ã£ã¦æ¤œè¨¼ã—ãŸã‚‰è‰¯ã„ã®ã‹åˆ†ã‹ã‚‰ãšã€çµæžœç¿»è¨³ã§ããšã§ã™ã€‚ã™ã¿ã¾ã›ã‚“。
イージングパラメーターã®é …ã®ã€Œã‚«ã‚¹ã‚¿ãƒ イージングパãƒãƒ«ã§ç”Ÿæˆã•れãŸã‚ªãƒ–ジェクトã€ãŒãªã‚“ãªã®ã‹åˆ†ã‹ã‚Šã¾ã›ã‚“。
*/