6/14のまとめ
Flash
スロット
this.onLoad = function() { number1_mc.stop(); number2_mc.stop(); number3_mc.stop(); } start_btn.onPress = function() { number1_mc.play(); number2_mc.play(); number3_mc.play(); } left_btn.onPress = function() { number1_mc.stop(); } center_btn.onPress = function() { number2_mc.stop(); } right_btn.onPress = function() { number3_mc.stop(); } reset_btn.onPress = function() { number1_mc.gotoAndStop(1); number2_mc.gotoAndStop(1); number3_mc.gotoAndStop(1); }
写真ギャラリー
this.stop(); this.right_btn.onRelease = function() { if (_currentframe != 6) { nextFrame(); } else { gotoAndStop(1); } } this.left_btn.onRelease = function() { if (_currentframe != 1) { nextFrame(); } else { gotoAndStop(6); } }
- Photoshopでリサイズした写真をflashにコピー&ペースト
- タイムラインに空白キーフレームを挿入してコピペを繰り返す
- 写真の位置がずれてる場合、オニオンスキンマーカーを表示させる (範囲全て)
- 複数フレームの編集→全てのフレームを選択。一度に位置揃えできる
- =(代入)の前は半角スペースを開けない
- 複数のオブジェクトを止めるのでなければ、this.stop();