メイン コーダーズルーム【スクリプト系】 onEnterFrameとstartDrag | 投稿するにはまず登録を |
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
hoheipanda | Åê¹ÆNo.7777 投稿日時: 2004-5-31 15:47 |
新米 居住地: 投稿: 5
使用環境:
|
onEnterFrameとstartDrag こちらで質問してよいのか、初心者の部屋でしょうか。
とりあえず、御迷惑おかけいたしますが、よろしくお願いします。 Aボタンを押すと、Bのムービークリップが徐々に動く設定をし、 さらにBには、Aボタンを押していないときに、startDragで、好きにドラッグできるようにようにしたいのですが、 Bをドラッグしても、すぐにAの設定で勝手に動いてしまいます。 以下の記述以外にどのように設定すればよいのでしょうか。 悩んでいます。よろしくお願いします。 Aボタン記述 on(press){ this.onEnterFrame = function(){ ma._x += (200-ma._x)/4; ma._y += (200-ma._y)/4; } } B(MCクリップの記述) on(press){ this.startDrag(); } on(release, releaseOutside){ this.stopDrag(); } |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» onEnterFrameとstartDrag | hoheipanda | 2004-5-31 15:47 |
Re: onEnterFrameとstartDrag | rakeem | 2004-5-31 16:48 |
Re: onEnterFrameとstartDrag | kool_it | 2004-5-31 17:05 |
Re: onEnterFrameとstartDrag | Fumio | 2004-5-31 23:42 |
Re: onEnterFrameとstartDrag | hoheipanda | 2004-6-2 9:44 |
投稿するにはまず登録を | |