Note that there are some explanatory texts on larger screens.

plurals
  1. POFlex3 - Passing flashvars to the swf in the html wrapper
    primarykey
    data
    text
    <p>I'm having issues passing flashvars to my app's swf. </p> <p>I'm using the default template provided by flex builder, where I added the flashvars as explained in adobe livedocs:</p> <pre><code>AC_FL_RunContent( "src", "playerProductInstall", "FlashVars", "MMredirectURL="+MMredirectURL+'&amp;MMplayerType='+MMPlayerType+'&amp;MMdoctitle='+MMdoctitle+'langStyle=Styles_jp.swf&amp;langId=jp_JP&amp;langSource=jp_JP.xml'+"", "width", "100%", ... AC_FL_RunContent( "src", "SOD", "FlashVars", "langStyle=Styles_jp.swf&amp;langId=jp_JP&amp;langSource=jp_JP.xml", "width", "100%", ... &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="SOD" width="100%" height="100%" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"&gt; &lt;param name="movie" value="SOD.swf" /&gt; &lt;param name="quality" value="high" /&gt; &lt;param name="bgcolor" value="#869ca7" /&gt; &lt;param name="allowScriptAccess" value="sameDomain" /&gt; &lt;embed src="SOD.swf" quality="high" bgcolor="#869ca7" FlashVars="langStyle=Styles_jp.swf&amp;langId=jp_JP&amp;langSource=jp_JP.xml" </code></pre> <p>I need to read the Application.application.parameters values at the preinitialize state of the application. It seems that at this stage, the flashvars are already known by the top level application. </p> <p>Using firebug, I've put breakpoints in AC_OETags.js to see if AC_Generateobj gets the proper params and it does get it properly. The output str equals: </p> <pre><code>&lt;embed src="SOD.swf" width="100%" height="100%" align="middle" id="SOD" quality="high" bgcolor="#869ca7" name="SOD" allowScriptAccess="sameDomain" pluginspage="http://www.adobe.com/go/getflashplayer" FlashVars="langStyle=Styles_jp.swf&amp;langId=jp_JP&amp;langSource=jp_JP.xml" type="application/x-shockwave-flash" &gt; &lt;/embed&gt; </code></pre> <p>Despite the fact that the app does have the flashvars; when I try to get them at the preinitialize phase I get an error saying Application.application.parameters is null. </p> <p>Would anyone have a clue of what I'm doing wrong... ?</p> <p>Thanks in advance :)</p> <hr> <p>@mgraph</p> <p>This is the wrapper I have now:</p> <pre><code>&lt;html lang="en"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;&lt;/title&gt; &lt;script src="AC_OETags.js" language="javascript"&gt;&lt;/script&gt; &lt;style&gt; body { margin: 0px; overflow:hidden } &lt;/style&gt; &lt;/head&gt; &lt;body scroll="no"&gt; &lt;noscript&gt; &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="SOD" width="100%" height="100%" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"&gt; &lt;param name="movie" value="SOD.swf" /&gt; &lt;param name="quality" value="high" /&gt; &lt;param name="bgcolor" value="#869ca7" /&gt; &lt;param name="allowScriptAccess" value="sameDomain" /&gt; &lt;embed src="SOD.swf" quality="high" bgcolor="#869ca7" width="100%" height="100%" name="SOD" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"&gt; &lt;/embed&gt; &lt;/object&gt; &lt;/noscript&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload