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

描画イベント

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


コメント

自動スクロール

ソース

マウスの位置でスピードが可変

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

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

対象バージョン

Flash 5以降

メニューへ戻る



Studio Chuma Works 2003-2005