ajAS: Web 4.0 ready

In my effort to push boundries(and to ridicule Nokky), I have started development on a new framework.

Welcome to ajAS: Asyncronous Javascript with ActionScript.

I have an example:

http://www.JoshuaJonah.com/ajas

Index page:


<html>
   <head>
      <script>
         function toggleFrameset(percent){
             parent.theFrameset.rows=percent+"%,*";
         }
      </script>
   </head>
   <frameset rows="100%,*" cols="*" name="theFrameset">
      <frame src="top.html" scrolling="no">
      <frame src="http://www.kirupa.com/forum/">
   </frameset>
</html>

“top.html”:


<html>
   <body>
      <center>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400">
      <param name="movie" value="flash.swf">
      <param name="quality" value="high">
      <embed src="flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400">
      </embed>
      </object>
      </center>
   </body>
</html>

ActionScript:

import mx.transitions.Tween;
import flash.external.*;
forums._y = (box._x+box._height)-25;
var expanded:Boolean = false;
forums.onPress = function() {
    if (expanded) {
        expanded = false;
        var percent:Number = 20;
        _root.onEnterFrame = function() {
            ExternalInterface.call("parent.toggleFrameset", percent);
            box._yscale = percent;
            forums._y = (box._x+box._height)-25;
            percent++;
            percent++;
            if (percent == 102) {
                delete this.onEnterFrame;
            }
        };
    } else if (!expanded) {
        expanded = true;
        var percent:Number = 100;
        _root.onEnterFrame = function() {
            ExternalInterface.call("parent.toggleFrameset", percent);
            box._yscale = percent;
            forums._y = (box._x+box._height)-25;
            percent--;
            percent--;
            if (percent == 20) {
                delete this.onEnterFrame;
            }
        };
    }
};

So you see, there really is life beyond Web 2.0.

:lol::lol::lol: