Paul Colton (here at Xamlon where I work) has started an open source project called aflax. The jist of it is you use 100% javascript in the browser to write flash. The aflax libraries deals with setting up and communicating with flash. It runs against a 3k generic target swf file. It is easier to see than explain:
http://www.aflax.org/#demos The demos there are various open source flash programs that have been ported to use aflax, or created directly in aflax. They are written entirely in javascript, and all run against the same swf file. A good example of its use is the chat program - it is all JS in the browser, doesn't use polling (uses xmlSocket), and is rendered all in html. Because this is all JS, the code can be generated, evaled, munged or mangled in ways that are hard to impossible in AS. We are continuing work on this, but of course would welcome any and all contributions and suggestions. Also wondering if I could add a link to the FlashOs wiki somewhere about it? Thanks, enjoying lurking here btw : ) Robin PS Kevin Lindsey (who also works here) pointed out today that "var a = new new new Fn()" is legal syntax. Constructors can return a function, and multiple news are legal. Sorry, just had to share this with someone : ). var n = 1; function TestFunction() { this.id = n++; if ( n <= 3 ) { return arguments.callee; } } function init(e) { if ( document == null ) { document = e.owningDocument; } var a = new new new TestFunction(); println(a.id); } _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
