DrawField Class scripted in AS3.
DrawField Class allows to create a drawboard application easily.
Features:
- Draw or erase with mouse.
- Clear all.
- Line color.
- Line size.
- Background color.
- Easy implementation.
- Commented functions.
How to use:
- Import DrawField.
e.g.import com.Utils.DrawField; - Create the DrawField using new operator:
var drawField:DrawField = new DrawField(W, H, backgroundColor, X, Y); - Add to stage or any other parent
stage.addChild(drawField); - Add Mouse Events
drawField.addEvents();
DrawField.as has only 7kb!
