(1)在按钮的事件处理函数里加,如: on (release) { getURL("http://", "_blank"); } (2)在影片剪辑的事件处理函数里加,如: onClipEvent (mouseDown) { getURL("http://", "_blank"); } (3)在帧上加,直接在帧上输入代码,如: getURL("http://", "_blank"); (4)在静态文本或动态文本上加。选中文本框,在属性面板的最下一行里有相关的输入链接网址的地方,直接输入代码即可,如: getURL("http://", "_blank");
(5)在html中,使用button标签
💡 关键要点
(1)在按钮的事件处理函数里加,如: on (release) { getURL("http://", "_blank"); } (2)在影片剪辑的事件处理函数里加,如: onClipEvent (mouseDown) { getURL