番号:995 ) 09/11/30/Mon 11:33 発言者:shinji [自動文字アニメーション] import caurina.transitions.Tweener; //buttonMode = true;
var i:Number=0; var i2:Number=0; var no_of_char=0; var my_mc:MovieClip;
no_of_char = this.numChildren; trace("文字の数="+no_of_char);
var moji_list:Array = new Array(no_of_char);
for (i = 0; i < no_of_char; i++) { //trace("getChildAt "+this.getChildAt(i) +" "+ i); trace("getChildAt "+this.getChildAt(no_of_char - i-1) +" "+ (no_of_char - i -1)); moji_list[i] = this.getChildAt(no_of_char - i -1); moji_list[i].x += 100; moji_list[i].alpha = 0; }
//stop();
var timerset:Timer = new Timer(30,no_of_char); timerset.addEventListener("timer", tween); timerset.start();
function tween(e:TimerEvent) { //Tweener.addTween(moji_list[i2++],{alpha:1,x:120,y:150,rotation:45,scaleX:1,scaleY:1,time:2.0,transition:"linner"}); Tweener.addTween(moji_list[i2],{alpha:1,x:(moji_list[i2].x-100),time:1.0,transition:"linner"}); i2++; } |