2 Replies Latest reply on Nov 7, 2009 12:39 AM by The Bruder

    How do i insert flashvars in flash builder html wrapper?

    The Bruder Level 1

      Hi All,

       

      It looks like a simple question (to those how know JS), but how do i insert parameters to my flash builder project so i will be able to read them in 'this.parameters' from the Flex application?

       

      this is the wrapper section:

       

      <script type="text/javascript">
                  <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
                  var swfVersionStr = "${version_major}.${version_minor}.${version_revision}";
                  <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
                  var xiSwfUrlStr = "${expressInstallSwf}";
                  var flashvars = {???};
                  var params = {};
                  params.quality = "high";
                  params.bgcolor = "${bgcolor}";
                  params.allowscriptaccess = "sameDomain";
                  params.allowfullscreen = "true";
                  var attributes = {};
                  attributes.id = "${application}";
                  attributes.name = "${application}";
                  attributes.align = "middle";
                  swfobject.embedSWF(
                      "${swf}.swf", "flashContent",
                      "${width}", "${height}",
                      swfVersionStr, xiSwfUrlStr,
                      flashvars, params, attributes);
                  <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
                  swfobject.createCSS("#flashContent", "display:block;text-align:left;");
              </script>

       

      Thanks in advance,

      Lior