AS3中stage.loadsInfo.parameters用于接收从客户端获取数据。
在使用Flex,或是CS进行发布Flash时,会生成一个HTML文件,其中有这一段内容
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "MagicCube",
"quality", "high",
"bgcolor", "#869ca7",
"name", "MagicCube",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "MagicCube",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "MagicCube",
"quality", "high",
"bgcolor", "#869ca7",
"name", "MagicCube",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
哪么如果要传变量,需要使用FlashVars进行传值。
"FlashVars", "name="+name,加入到e if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
中即可。
[url]http://www.webdesign-cn.com[/url]
[url]http://www.levs.cn[/url]
在使用Flex,或是CS进行发布Flash时,会生成一个HTML文件,其中有这一段内容
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "MagicCube",
"quality", "high",
"bgcolor", "#869ca7",
"name", "MagicCube",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "MagicCube",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "MagicCube",
"quality", "high",
"bgcolor", "#869ca7",
"name", "MagicCube",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
哪么如果要传变量,需要使用FlashVars进行传值。
"FlashVars", "name="+name,加入到e if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
中即可。
[url]http://www.webdesign-cn.com[/url]
[url]http://www.levs.cn[/url]