好久好久了。。。。,好久沒上csdn了,都在忙....
再忙也要偷下懶,關心關心學習學習flex的一些咚咚。
學習筆記(flex使用外部參數-學習來自aixia的文章)
html-template/index.template.html javascript:
if
( hasProductInstall
&&
!
hasRequestedVersion )
... {
}
else if (hasRequestedVersion)
... {
AC_FL_RunContent(
"src", "${swf}",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", http://www.adobe.com/go/getflashplayer,
name="flashvars" value="FileName=kao.txt"
);
}
... {
}
else if (hasRequestedVersion)
... {
AC_FL_RunContent(
"src", "${swf}",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", http://www.adobe.com/go/getflashplayer,
name="flashvars" value="FileName=kao.txt"
);
}
or 調用頁面:<param name="flashvars" value="FileName=kao.txt"/>
flex :var str:string = Application.application.parameters.FileName;