スクリプトをフレームに作る。
ムービークリップに対するスクリプトは,ムービークリップが存在するフレームか,それ以降のフレームにする。
スクリプトに間違いがあると,そこからプログラムは動かない。
子ムービーを再生する時間を親フレームに与える。
親ムービーから子ムービーの再生
○this.inseki.gotoAndPlay(“insekistart”);
子ムービーから親ムービーの再生
○this.parent.gotoAndStop(“bad”);
子ムービーのフレームアクション
○this.stop();
○alert(‘文字’);
○console.log(“bad”);
フラッグによる条件分岐
○if(inseki== true){
inseki=false
console.log(“inseki3 = ” + inseki)
this.gotoAndPlay(“bad”);
}
○alert(‘文字’);
○alert(x);
×trace(“文字”);
○console.log(“文字”)
○console.log(x)
○console.log(“X = ” + X)
○console.log(“randomArray”+i+”=”+randomArray[i]);
○ this.gotoAndPlay (“f0”);
× gotoAndPlay (“f0”);
× _root.hensu
○var hensu //フレーム内のローカル変数
○hensu //グローバル変数
this.title.toss.addEventListener(“click”, fl_ClickToGoToWebPage_1);
function fl_ClickToGoToWebPage_1() {
window.open(“http://www.tos-land.net”, “_blank”);
}
// 現在表示されているページをリロードする
location.reload();
// 例: 5秒に一回リロード
setTimeout(“location.reload()”,5000);
//WEBサーバのデータからリロード、
location.reload(true)とすると
//キャッシュからリロード、
location.reload(false)とすると
入力文字を大きくする。
<css>を配置する。
ここからーーーーーーー
function nameofInputtext_change(evt) {
var regex = /[^0-9]/g;
evt.target.value = evt.target.value.replace(regex, “”);
}
$(“#dom_overlay_container”).on(“keyup”, “#input1”, nameofInputtext_change.bind(this));
$(“#dom_overlay_container”).on(“keyup”, “#input2”, nameofInputtext_change.bind(this));
ここまでーーーーーーー