在 Flash 中使用 javascript 导航到另一个场景
navigating to another scene using javascript in flash
我编写了以下代码来单击跳过按钮并转到 Flash cc 中的特定帧。现在我想使用跳过按钮导航到另一个 html 文件。我怎样才能做到这一点?
/*JavaScript*/
this.skipBtn.addEventListener("click", fl_ClickToGoToAndStopAtFrame.bind(this));
function fl_ClickToGoToAndStopAtFrame()
{
this.gotoAndPlay(5);//to go to a particular frame
}
this.skipBtn.addEventListener("click", fl_ClickToGoTonextPage);
function fl_ClickToGoTonextPage() {
window.location.href = "2.html";
}
它满足了我的要求。
我编写了以下代码来单击跳过按钮并转到 Flash cc 中的特定帧。现在我想使用跳过按钮导航到另一个 html 文件。我怎样才能做到这一点?
/*JavaScript*/
this.skipBtn.addEventListener("click", fl_ClickToGoToAndStopAtFrame.bind(this));
function fl_ClickToGoToAndStopAtFrame()
{
this.gotoAndPlay(5);//to go to a particular frame
}
this.skipBtn.addEventListener("click", fl_ClickToGoTonextPage);
function fl_ClickToGoTonextPage() {
window.location.href = "2.html";
}
它满足了我的要求。