Saving a Draw made by the user.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • liadmz
    New Member
    • Jul 2009
    • 32

    Saving a Draw made by the user.

    Hi All,

    I have made a small app that allows the user to draw.

    Code:
     
    
    createEmptyMovieClip("terrain", 1);
    terrain.lineStyle(3, 0x000000, 100);
    imdrawing = false;
    
    onMouseDown = function () {
    	if (imdrawing == false) {
    		terrain.moveTo(_xmouse, _ymouse);
    		imdrawing = true;
    	}
    	
    	if (imdrawing == true) {
    		onEnterFrame = function () {
    			terrain.lineTo(_xmouse, _ymouse);
    		};
    	}
    };
    
    
    onMouseUp = function () {
    	onEnterFrame = function () {
    		imdrawing = false;
    	};
    };
    Now I would like to save it to a file on the server for future use.

    Can anyone show the way of getting it done ?

    I know how to do it PHP but the current server runs ASP.
Working...