BrainBlitz.org

Where good ideas fester. Sometimes.

 

Here be a simple app for experimenting with D.eval.

The document class can be accessed via "root." It is a derivative of the Sprite class, and all normal Sprite methods and variables are available. So yes, you can code the app to self-destruct (i.e. become unusable... say, by removing the source code textarea from the stage.

Example:

root.graphics.clear();

for(ii = 0; ii < 200; ii++) {
root.graphics.lineStyle(Math.random() * 10, Math.random() * 0xFFFFFF);
root.graphics.drawCircle(Math.random() * 400, Math.random() * 400, Math.random() * 30);
}