0 Replies Latest reply on Oct 1, 2009 11:40 AM by Alex-SM

    load flash into html popup

    Alex-SM

      Hi,

       

      I want to create a flash object and load it into a popup window. The flash object contains an application that I need to use in my main program.

      I was wondering if I can load the flash into a popup windows and call the flash functions in the main page.

       

       

      <!-- popup window -->

      <div id="popup"></div>

       

      <script type="text/javascript">
      function createSWFObject()
      {
          var SWFObject = document.createElement("object");
          SWFObject.setAttribute("type","application/x-shockwave-flash");
          ...
          var movieParam = document.createElement("param");
          movieParam.setAttribute("name","movie");
          ... 
          return SWFObject;
      }
      var displayContainer = document.getElementById("popup");
      displayContainer.appendChild(createSWFObject());
      </script>

       

       

      <!-- main page -->

      <!--calling flash finctions-->