Hi,
It's a simple technique to create a pencil tool on the stage to draw live, on the swf file in the browser.
Create a blank .fla file
Select the first key frame of layer 1 on the timeline
Press F9 key, You will get the action layer
Paste this code on the Actions pane:
_root.onMouseMove = function()
{
_root.lineStyle(1, 0xFF0000, 100);
_root.lineTo(_root._xmouse, _root._ymouse);
updateAfterEvent();
};
Publish the file as swf and html.
View it on the browser.
Regards,
Muthaiah Thiagarajan
http://www.fmass.in/
No comments:
Post a Comment