2 Replies Latest reply on Dec 2, 2009 12:04 PM by badgerduke2

    Cannot pass property to Flex app

    badgerduke2 Level 1

      Hello:

       

      I have the following line in some ActionScript which displays "undefined" when run.  The code is run when the creationComplete function is called.

       

      Alert.show(Application.application.parameters.level);

       

      I have the following in my launch page.  The Javascript alert correctly displays the value of level.  What am I doing wrong?  Thanks.

       

       

      <%  String level = System.getProperty("level");  %>

      <script>alert("<%= level %>");</script>

       

      <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                  id="FH6" width="100%" height="100%"
                  codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
                  <param name="movie" value="FH6.swf" />
                  <param name="quality" value="high" />
                  <param name="bgcolor" value="#869ca7" />
                  <param name="allowScriptAccess" value="sameDomain" />
                  <param name="level" value="<%= level %>"/>
                  <embed src="FH6.swf" quality="high" bgcolor="#869ca7"
                      width="100%" height="100%" name="FH6" align="middle"
                      play="true"
                      loop="false"
                      quality="high"
                      allowScriptAccess="sameDomain"
                      type="application/x-shockwave-flash"
                      pluginspage="http://www.adobe.com/go/getflashplayer">
                  </embed>
          </object>
      </noscript>

       

       

      eric