0 Replies Latest reply on Sep 30, 2010 5:54 AM by Alegretense

    Problems with ExternalInterface

    Alegretense

      Good day

      I am newbie in programming with Flex, I am facing the following problem, I need to open a window already maximized through the ExternalInterface method.

      I am using the following function:

      import

       

       

      private function abrirJanela() : void{

       

      ExternalInterface.call(

      openWindow", "main.html?debug=true");

      }

       

       

      flash.external.ExternalInterface;

       

       

      But it is not working, it mounts the file HTML file this function, if anyone can help I thank you.

      function openWindow(janela) {
                var w = screen.availWidth;
                var h = screen.availHeight;
                window.open(janela, '', 'height='+h+', width='+w+', top=0, left=0, scrollbars=no, resizable=no, menubar=no, statusbar=yes');
               }

       

      And in the JSP file is being entered into the following function:

      function abrirJanela() {
         window.open('<%= request.getContextPath() %>/main.html', '', 'height=738, width=1024, top=0, left=0, scrollbars=no, resizable=no, menubar=no, statusbar=yes');
        }

      Cordially

      Diego Silva