上一頁(yè):
on (release){prevframe();}
下一頁(yè):
on (release) {
nextFrame();
}
停止:
stop ();
跳轉(zhuǎn)到多少幀后繼續(xù)播放:
on(release){
gotoAndPlay(20);
}
跳轉(zhuǎn)到多少幀后停止播放
on(release){
gotoAndStop(2);
}
跳轉(zhuǎn)到某場(chǎng)景或某元素某幀:
on(release){
gotoAndStop("場(chǎng)景或元素名", 1);
}
從影片剪輯中跳到主場(chǎng)景某幀的按鈕代碼:
on (release) { tellTarget ("/") { gotoAndPlay ("場(chǎng)景 1", 2); } }
鼠標(biāo)移動(dòng)到一個(gè)位置跳轉(zhuǎn)幀,移開鼠標(biāo)返回初始幀:
on (rollOver) { //當(dāng)鼠標(biāo)移動(dòng)按鈕上時(shí) _root.gotoAndPlay(3); //跳到第3幀并播放 } on (rollOut) { //當(dāng)鼠標(biāo)移開時(shí) _root.gotoAndPlay(1); //跳到第1幀并播放 }
退出:
on (release) {
fscommand("quit", true);
}
最小化:
on (release) {
getURL("javascript:small.Click();");
}
最大化:
on(release){
fscommand("fullscreen","true");
}
全屏:
//下面放在全屏窗口按鈕里:
on(release){
fscommand("fullscreen","true");
}
//下面放在恢復(fù)窗口按鈕里:
on(release){
fscommand("fullscreen","false");
}
全屏一個(gè)按鈕:
on (release) {
var a:Boolean;
if (a) {
fscommand("fullscreen","false");
} else {
fscommand("fullscreen","true");
}
a = !a;
}
!評(píng)論內(nèi)容需包含中文