Drawing with Javascript and Flash

David Flanagan (you probably have his O’reilly Javascript book next to your desk right now) has been doing some experimentation with exposing the Flash drawing API -vector, not the bitmap stuff (yet)- to Javascript. In his example he uses the ExternalInterface class to expose a few of the drawing methods and then uses those to draw shapes in the Flash movie.

His example only had an embed tag, so here is another example embedded with FlashObject so you IE people can see it too.

Note: Opera does not support ExternalInterface (yet), so if you want to see it in action, use just about any other browser. Opera users: you may want to take a moment to send a new feature request to Opera and tell them to add in the NPRuntime stuff so this will work!

One thought on “Drawing with Javascript and Flash

Comments are closed.