给FLASH文件加链接的五种方法

web前端 15623 14年前 (2011-01-05)

(1)在按钮的事件处理函数里加,如:

on (release) {
getURL("此处替换为网址", "_blank");
}

(2)在影片剪辑的事件处理函数里加,如:

onClipEvent (mouseDown) {
getURL("此处替换为网址", "_blank");
}

(3)在帧上加,直接在帧上输入代码,如:

getURL("此处替换为网址", "_blank");

(4)在静态文本或动态文本上加。选中文本框,在属性面板的最下一行里有相关的输入链接网址的地方,直接输入代码即可,如:

getURL("此处替换为网址", "_blank");

(5)在html中,使用button标签

<button style="width:400px; height:400px; background:transparent; border:0; padding:0; cursor:hand" onclick="window.location.href='此处替换为网址'">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" height="100%">
<param name="movie" value="FLASH.swf">
<param name="quality" value="high">
<embed src="flash.swf" width="100%" height="60" quality="high" pluginspage=" type="application/x-shockwave-flash" align="middle">
</embed>
</object>
</button


分享给朋友: