<%@page contentType="text/html;charset=gbk"%>
欢迎
function JspGetXMLURL() { XmlURL = "http://localhost:8080/VideoLabel/videoresources/xmls/VideoLabels.xml"; return XmlURL; VideoLabel.setValue(XmlURL); }height="600" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" allowScriptAccess='always'>
width="1000" height="600" play="true"
loop="false"
quality="high"
flashVars="movie=videoresources/videos/MyWay.flv"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
代码如上:
首先的JS文件是传值给SWF文件,让它获取XML文件,XML文件将在SWF中使用。如果不用这代码IE FF就都可以用了。
问题可能原因:
ie先执行swf后才执行javascript,firefox则按“顺序”执行;
但是我将JS搬到下面好像也在FF下也可以正常运行。不知道这个顺序是什么意思。
求解决方法。