Using BitMapData to save as jpeg locally

I posted this in the Flash 8 section, thought this should be related here too so here I am…

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?