Flashで文字を動かす









- アルファーを設定
- 1フレーム目は10%
- 次の動作フレームでは0%
- 最後のフレームは100%
- 文字の拡大
- 各フレームを順次表示するように移動させる
- 空1フレーム目に「stop」script

- もう一つレイヤーを作って全体に四角の枠を作る
- ボタンシンボルに設定後リリース時に「play」script
- 画面をクリックすると・・・
|
|
|
Gadgets powered by Google |



onClipEvent (enterFrame) {
this._x = _x + 1;
}
- イベントハンドラの場合(タイムラインで全体からScriptを指定する)
|
|
|
Gadgets powered by Google |
ball_mc.onEnterFrame = function() {
ball_mc._x += 10;
}
|
|
|
Gadgets powered by Google |
onClipEvent (load) {
speed = 0;
accel = 1;
}
onClipEvent (enterFrame) {
speed += accel;
this._x += speed;
}
|
|
|
Gadgets powered by Google |
this.onLoad = function() {
speed = 0;
accel =1;
}
ball_mc.onEnterFrame = function() {
speed += accel;
ball_mc._x += speed;
trace(speed);
}