Example of using Flash drawing functions from JavaScript.

View source: drawing2.js