实现的方法有很多,这里采用的是FlashVars 方案。
在插入flash代码的地方加入:
复制代码 <param name=FlashVars value='fileExt=*.jpg;*.rar&fileSize=1000&fileCssName=<%=getuserinfo() %>'/>
在flash.fla中,我们可以通过以下的方法来获取参数:
if(fileCssName!=undefined)
{
tmpurl="http://www.cn-web.com/css/"+fileCssName+".css";
}
通过以上方法,我们就向swf中传递了三个参数,其中fileCssName参数是动态获取的(这里使用的是asp.net,c#)。


