2 Replies Latest reply on May 13, 2007 11:40 PM by Sketchsta

    Change Browser window dynamically

    luciewong Level 1
      Hi,
      I want to change the Browser 's height with a Button click from my swf file.
      Can I do this?

      Thank you,

      Luciewong
        • 1. Re: Change Browser window dynamically
          luciewong Level 1
          Kglad??
          I've found your code >

          <script type="text/javascript">
          <!--
          function resizeSWF(nHeight) {
          nHeight += "px";
          document.getElementById("resizer").style.height = nHeight;
          }
          //-->
          </script>

          ..and I have downloaded the >swfobject.js< to the directory, but...

          still can't get my button to work, calling the js function.

          Could you please help?

          best regards,
          Lucie
          • 2. Re: Change Browser window dynamically
            Sketchsta Level 1
            I think you can do this only by including a function in the <head> tag of your HTML file, then calling to it via your swf button.

            Theres plenty of codes out there on google.com
            maybe even on these forums. Have a search and im sure you'll find what you're looking for.