A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: MainFrame - Possibilities?

  1. #1
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870

    MainFrame - Possibilities?

    Could anyone tell me how to make a mainframe and to fit in a website within itself? these are some of the HTTP typed mainframes i picked up:

    Code:
    <script type="text/javascript">
      var http = (window.XMLHttpRequest) ? new XMLHttpRequest() :new ActiveXObject("Microsoft.XMLHTTP");
    
      function rate(game, rating) {
        var obj = document.getElementById('rating');
        obj.innerHTML = 'Loading...';
    
        var url = '/rate.php?g_id=' + game + '&rating=' + rating;
        http.open('get', url);
        http.onreadystatechange = responseHandler;
        http.send(null);
      }
    
      function responseHandler() {
        if(http.readyState == 4) {
          var obj = document.getElementById('rating');
          if(http.status == 200) {
            obj.innerHTML = http.responseText;
          } else {
           obj.innerHTML = 'Error!';
          }
        }
      }
    </script>
    mmm I don't know how to use that in Flash though....


    p.s. If such mainframe is possible - could anything stop the website - e.g. a school RM filter?
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  2. #2
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    come on guys.. any link would be possible.
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center