My favorites | Sign in
Project Home Downloads Wiki Issues
Project Information
Members
Featured
Downloads
Links

Notice

The CSS engine from Cannonball is now a separate project. The latest version can be downloaded here:

http://code.google.com/p/as3csslib

The CSS package in Cannonball is old and probably shouldn't be used.


Cannonball is an implementation of the DOM Level 3, HTML and CSS3 core specifications written in ActionScript 3.0.

Cannonball as a whole is not functional, but some of its components are usable as separate libraries:

  • CSS: The CSS engine in com.newgonzo.cannonball.css.*
  • Scripting: JavaScript/ActionScript/ECMAScript scripting support with as3scriptinglib
  • DOM: The DOM implementation in com.newgonzo.cannonball.dom.* (needs work)

The CSS package is the most complete and provides:

  • support for many of the CSS3 selectors, based on The Simple API for CSS
  • an API for exposing any object as a CSS-selectable node
  • style cascading with respect to document origin, selector specificity, and declaration priority (!imporant)

You can explore the CSS selector engine here.

The JavaScript engine is provided by an API for using the ECMAScript compiler from the Tamarin project in Flash. It's hosted at as3scriptinglib.

A proof-of-concept for using !HTMLTidy in Flash (via Alchemy) has been posted at the as3htmltidylib project page. It's fat and slow.

This project is under active (slow) development. Interested in contributing? Contact me at john at newgonzo dot com.

This project is incomplete and has very little documentation. Proceed at your own risk.

Powered by Google Project Hosting