Drawing API / how do you do that?

Hi Guys, I’m seraching a code that allows me to do something like that :
jesaispasdessiner
There’s a filed where you can draw and save your drawing.

to Draw, here is the code I want to use :


_root.createEmptyMovieClip("lestylo",1);

_root.onMouseDown = function(){
	lestylo.moveTo(_xmouse,_ymouse);

	lestylo.lineStyle(2,0x00CCFF,100);
	this.onEnterFrame = function(){
		lestylo.lineTo(_xmouse,_ymouse);
	}
}

_root.onMouseUp = function(){
	this.onEnterFrame = null;
}

Now I’d like to :

  • either save the mouse’ movement, redrawing the picture
  • or only save the final image

Could someone give me a source for that ?
Do you know how to do this ?

thanks !!! C:-)

http://www.senocular.com/news.php?subaction=showcomments&id=1091558049

thanks alot,
I already found this by searching in the forums…
I’ll have a look at this this evening, it looks great…

I just have to learn PHP, now !

thanks

Since you plan to learn PHP, be sure to check out the Ming module, it will allow you to save the image to a new SWF movie. Here’s an example (with source), and there is also a link to a drawing pad that stores mutliple images in the user’s SharedObject rather than on the server.

http://jerryscript.hostrocket.com/flash/draw/SWFDrawing2JPEG.html