0 Replies Latest reply on Mar 12, 2008 7:27 AM by USI.Crushing

    Maximize browser using button or click box within SWF

    USI.Crushing
      Is there a way to maximize the browser the SWF is being shown in using a button that executes javascript? What javascript can be used?

      Our training links directly to the SWF so that it scales based on the browser size. I would like to make the browser start out maximized or give the user a button to click that would maximize the browser for them.

      I've tried adding a button that ran javascript to maximize the screen, but nothing happened. I don't know if it is bad javascript, if I need to add more to the javascript, or it simply doesn't work.

      This is exactly what I put in the javascript section of the button. The button is set to execute javascript on click.

      window.moveTo(0,0);
      window.resizeTo(screen.width,screen.height);