# Saving bitmaps

**URL:** <https://forum.kirupa.com/t/saving-bitmaps/225890>\
**Category:** flash\
**Created:** [May 16, 2007, 2:21pm UTC](https://forum.kirupa.com/t/saving-bitmaps/225890 "2007-05-16T14:21:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Post date:** [May 16, 2007, 2:21pm UTC](https://forum.kirupa.com/t/saving-bitmaps/225890/1 "2007-05-16T14:21:33Z")

</div>

I used the kirupa drawing tutorial to create a simple doodle application.

Heres the code:

```auto

_root.container.mcDraw.createEmptyMovieClip("line",1);

_root.onMouseDown = function(){
	line.moveTo(_xmouse,_ymouse);
	line.lineStyle(1,colour,100);
	
	this.onEnterFrame = function(){
		if (drawing == true){
		line.lineTo(_xmouse,_ymouse);
	}
	}
}
_root.onMouseUp = function(){
	this.onEnterFrame = null;
}

```

I really need a way to save the doodle created to a server and then reload it at a later date. It could either be as a file or as data that meant it could be redrawn.

I’ve looked into exporting as a bitmap but the methods seem very complex and also slow/relatively large file sizes (it is only a simple doodle application!!!).

I also found this site

[http://jerryscript.hostrocket.com/flash/draw/basic/SWFDrawing2JPEG.html](http://jerryscript.hostrocket.com/flash/draw/basic/SWFDrawing2JPEG.html)

but it doesn’t even seem to be working on the site. I had a look at the code but couldn’t really get to the bottom of how it worked

Is there no easy way to save a movieclip out as an swf file dynamically?

Any help on this would be much appreciated. Thanks.
