I used the kirupa drawing tutorial to create a simple doodle application.
Heres the code:
_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
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.