ActionScript 誰かが物凄い勢いで解答するスレ 20at SWF
ActionScript 誰かが物凄い勢いで解答するスレ 20 - 暇つぶし2ch633:Now_loading...774KB
08/09/21 09:33:51 ExkPAyGw
・1フレームにA(タイムラインを持ちフレーム名"play"がある)、2フレームにB
・Bを押して1フレに戻ると、Aが"play"へ飛んでいる
ってことに置き換えていいなら、フラグを用意するといい

//1フレームアクション
this.stop();
this.A.stop();
if (flg == undefined) {//flgが定義されていなければ初再生
flg = 0;
}
this.A.onRelease = function() {
this._parent.gotoAndStop(2);
};
if (flg) {
this.A.gotoAndStop("play");
} else {
this.A.gotoAndStop(1);
}
//2フレームアクション
this.B.onRelease = function() {
flg = 1;
this._parent.gotoAndStop(1);
};


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch