トップへ戻るニュースフォーラムFLASH-ML 過去ログBak@Flaダウンロードよくある質問と答
ログイン
ユーザ名:

パスワード:


パスワード紛失

新規登録
メインメニュー
メイン
   コーダーズルーム【スクリプト系】
     onEnterFrameの動作
投稿するにはまず登録を

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
mayor
Åê¹ÆNo.25787
投稿日時: 2006-5-28 19:41
ちょんまげら
居住地: 東京砂漠
投稿: 4403
使用環境:
Re: onEnterFrameの動作
speed がタイムライン変数になっているので、
その値を引き継いでしまうようになっているのではないでしょうか?
#おそらく、youichさんが指摘されていることと同じようなことかと。

なので、speed を各ムービークリップに持たせて、
ball1_mc.speed = ball2_mc.speed = 0;
var accel = 1;
var boundPos = 200;
function bound () {
	this._y += this.speed;
	if (this._y >= boundPos) {
		this.speed *= -1;
	} else {
		this.speed += accel;
	}
}
ball1_mc.onEnterFrame = bound;
ball2_mc.onEnterFrame = bound;
とするとか。

他にも方法がありそうですが。


----------------
質問する際は、回答者に具体的な情報を与えてください。

フラット表示 前のトピック | 次のトピック

題名 投稿者 日時
   onEnterFrameの動作 rindo 2006-5-26 17:42
     Re: onEnterFrameの動作 mayor 2006-5-26 18:20
       Re: onEnterFrameの動作 rindo 2006-5-26 19:06
         Re: onEnterFrameの動作 mayor 2006-5-26 19:17
           Re: onEnterFrameの動作 rindo 2006-5-26 23:47
     Re: onEnterFrameの動作 youich 2006-5-27 1:04
       Re: onEnterFrameの動作 rindo 2006-5-27 10:00
         Re: onEnterFrameの動作 rindo 2006-5-28 18:56
         » Re: onEnterFrameの動作 mayor 2006-5-28 19:41
             Re: onEnterFrameの動作 rindo 2006-5-28 20:32
               Re: onEnterFrameの動作 Fumio 2006-5-28 20:46
                 Re: onEnterFrameの動作 rindo 2006-5-28 21:12
                 Re: onEnterFrameの動作 rindo 2006-5-28 21:16
                   Re: onEnterFrameの動作 rindo 2006-5-31 11:10
                     Re: onEnterFrameの動作 Fumio 2006-6-1 11:59
                       Re: onEnterFrameの動作 rindo 2006-6-1 18:38
           Re: onEnterFrameの動作 Fumio 2006-5-28 20:02

投稿するにはまず登録を
 
Copyright (C) 2003 FLASH-japan. All rights reserved.
Powered by Xoops