//移動,カラー,α値,位置指定,スケール,回転
onClipEvent (load) { //この部分はムービークリップオブジェクトが一番最初に読み
//込まれるときに,以下の初期設定をおこなうことを意味する
speedy = -2;
r=50; g=20; b=200;
_y=400; //オブジェクトの初期位置の設定(y座標)
}
onClipEvent (enterFrame) {
if (this._y>400-this._width/2)
{ //y軸の下方向の移動の範囲制限
this._y = 400-this._width/2;
speedy = speedy*-1*0.8;
}
if (this._y<0+this._width/2)
{ //y軸の上方向の移動の範囲制限
this._y = 0+this._width/2;
speedy = speedy*-1*0.8;
}
speedy = speedy*0.99+0.98;
//スピードの変化をさせる
this._y = this._y-speedy; //スピードによって位置を変化させる
r += 1;
//色の初期値です
g += 6;
b += 2;
fuusen3Color = new Color(_root.fuusen3); //fuusen3をColorオブジェクトにする
fuusen3Color.setRGB(r<<16 | g<<8
|b); //Colorオブジェクトに色をつける
_rotation += 3; //回転の制御
nIncrements = 1; //拡大・縮小率の増加値を設定する
nAlphaInc
= 1; //アルファ値の減少させてゆくための値を設定する
nMax
= 300;
nScale += nIncrements; //オブジェクトの拡大・縮小率の制御
nAlpha += nAlphaInc; //オブジェクトのアルファ値の制御
if(nScale>100){nScale=100}; //拡大率の上限を設定
_xscale = nScale; //拡大率(x軸方向)を設定
_yscale = nScale; //拡大率(y軸方向)を設定
_alpha = (1-nAlpha/nMax)*100; //αの制御
}