Using BitMapData to save as jpeg

I was following http://www.sephiroth.it/ tutorial on saving a movieclip as a jpeg. This is making use of PHP from a webserver, is it possible to do all this offline?