"Flash Script Learning"  Flashプログラムの研究・ソース配布・Flashゲーム

描画イベント

Top - Flash Plus - Flash Script Learning - 描画イベント


コメント

自動スクロール

ソース

onClipEvent (load) {
this._rotation = Math.random ()*360;
this._xscale = Math.random ()*1000;
this._yscale = _xscale;
this._alpha = _xscale/20;
}

onClipEvent (enterFrame) {
this._xscale += this._xscale * 0.05;
if (this._xscale > 1000) {
this._xscale -= 1000;
this._rotation = Math.random ()*360;
}
this._alpha = _xscale/20;
this._yscale = _xscale;//XとYを同じ縮尺で表示するため
}

対象バージョン

Flash 5以降

メニューへ戻る



Studio Chuma Works 2003-2005