我正在制作一个页面,其中我使用了一些flash组件作为按钮,我想要链接到另一个HTML页面但不知道如何操作.有人能帮我吗?
您必须在按钮上放置一个事件侦听器来侦听单击事件.
yourButton_mc.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
function onClick(e:MouseEvent):void{
navigateToURL(new URLRequest("page.html"), "_self"); // change "_self" to "_blank" if want to it open in other tab or window. More info in the links I wrote below.
}
Run Code Online (Sandbox Code Playgroud)