0 Replies Latest reply on Oct 27, 2010 1:23 PM by Sunilchitty

    Can we integrate .swf file in java script ?


      Hello Friends,




      We implemented one concept in Flex and now would like to integrate with JavaScript. Earlier we integrated an Applet code but now, we developed the concept in Flex, however, I am unable to integrate the concept in java script.

      Can anyone help me out with the procedure to integrate flex swf file in java script ?


      Here is my earlier java script code :


      var file=gup('query');
      var prevFile=gup('prevFileName');
      document.write("<table align=\"center\"><tr><td><applet code=\"MyApplet.class\" archive=\"Visual.jar\" width=1000 height=500>");

      function gup( name )
        name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
        var regexS = "[\\?&]"+name+"=([^&#]*)";
        var regex = new RegExp( regexS );
        var results = regex.exec( window.location.href );
        if( results == null )
          return "";
          return results[1];



      Thanks in advance.