...
} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "FlashVarsTest",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "FlashVarsTest",
"quality", "high",
"bgcolor", "#ffffff",
"name", "FlashVarsTest",
"allowScriptAccess","always",
"type", "application/x-shockwave-flash",
"flashVars", "hello=world&another=one",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
}...
This adds two parameters which can be accessed from inside Flex using the Application.application.parameters variable. E.g.
Application.application.parameters.hello
gives you the value "world".But if you don't want to use JavaScript (which I wouldn't recommend, but is necessary in a few cases) then you can use the old loading method (also included in the index.template.html file) like this. The important thing to note is that Internet Explorer loads the parameters in differently than all other browsers (that I've tested).
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="FlashVarsTest" width="100%" height="100%"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="FlashVarsTest.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="flashVars" value="FlashParameters=Internet Explorer only"/>
<param name="allowScriptAccess" value="always" />
<embed src="FlashVarsTest.swf" quality="high" bgcolor="#ffffff"
width="100%" height="100%" name="FlashVarsTest" align="middle"
play="true"
loop="false"
allowScriptAccess="always"
type="application/x-shockwave-flash"
flashVars="FlashParameters=FireFox,Safari,Chrome"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
And the same thing applies to the other tags: bgcolor, width, height. Internet Explorer reads in the values that are in the <object> tag, while all other browsers (FireFox, Chrome, Safari, ...) read in the values from inside the <embed> tag. So you have to make sure to duplicate all the values.