高分求教!在flash中使用javascript。
我用flash做了一个导航条。按钮是这样定义的。
caption1 = "Home";
caption2 = "Intruduction";
caption3 = "Class Albums";
caption4 = "HomePage";
url1 = "http://101011.yeah.net";
url2 = "javascript:window.open(\"index.htm\",\" \",\"fullScreem=1\")";
url3 = "http:///Albums/Album1.htm";
url4 = "http://101011.yeah.net";
我在flash文件所在的目录下有index.htm,Albums目录下有albums1.htm.
我的url应该怎么写才能正确打开呢?请指教。
问题点数:100、回复次数:4Top
1 楼saucer(思归)回复于 2002-10-26 12:25:46 得分 50
use FSCommand, see
An example of communication between JavaScript and Macromedia Flash
http://www.macromedia.com/support/flash/ts/documents/java_script_comm.htm
Top
2 楼supergospel(Gospel)回复于 2002-10-26 12:49:13 得分 0
能用中文讲一讲吗?小弟e文不好,而这个问题又很急。望各位大虾指教。Top
3 楼supergospel(Gospel)回复于 2002-10-26 12:53:42 得分 0
最好就上面的问题,给个例子吧。小弟忙了好长时间,就是这个路径搞不定。Top
4 楼goldenlove(潇洒.net)回复于 2002-10-26 14:49:08 得分 50
呵呵~~ 直接 getUrl 就可以了
getUrl('javascript:alert()') 试下. ^^
如果是要调用 function ........可以先把你的function 写在
html 里.... 然后再在 flash 里调用.
getUrl('javascript:functionname()')Top




