How to i make button who save flash animation to jpg?
I have to do with flash/actionscript where user draw signature and save it jpg-file to database. I had found actionscript code where i can draw the signature. But how i save it? In animation i have save_button. When user push button he can save his signature to jpg-file. I had searched many hours answer from Google and tested many examples and nothing worked..![]()
My actionscript looks now:
var penSprite:Sprite = new Sprite();
var mouseDownFlag:Boolean = false;
penSprite.graphics.lineStyle(1,0x000000);
stage.addChild(penSprite);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
function mouseDown(e:MouseEvent):void
{
penSprite.graphics.moveTo(e.localX, e.localY);
mouseDownFlag = true;
}
function mouseMove(e:MouseEvent):void
{
if (mouseDownFlag) penSprite.graphics.lineTo(e.localX, e.localY);
}
function mouseUp(e:MouseEvent):void
{
mouseDownFlag = false;
}
