0 Replies Latest reply on Jul 17, 2008 10:23 PM by LoGicMaNia

    Flash Javascript

    LoGicMaNia
      hi friends
      I am doing a flash fulllscreen web page.the total height of the page is 650 minimum.If the page height is less than 700 a javascript function is to be called.
      this is the code
      if (Stage.height<700) {
      ExternalInterface.call("fullResize");
      //bg_mc._height = 768;
      } else {
      //bg_mc._height = 768;
      ExternalInterface.call("full");

      }

      but it calls only one function
      function fullResize() {
      var groundElement = document.getElementById('flash');
      groundElement.style.height = '768px';

      }
      function full() {
      var groundElement = document.getElementById('flash');
      groundElement.style.height = '100%';

      }
      the fullResize is only called

      why is this....Pls help me...
      regards