Drawing API

Category : Flash Views : 9605
Version : 8 Rating
3.0/5 (25 votes)
Type : Text Source File: drawing-api.zip
Result: See the result


Previous | 1 | 2 | Next

If you want to erase the square call clear().

To draw a square filled with black:
_root.createEmptyMovieClip("dBoard",1); dBoard.beginFill(0, 100); dBoard.moveTo(80, 80) dBoard.lineTo(110,80); dBoard.lineTo(110,110); dBoard.lineTo(80,110); dBoard.lineTo(80,80); dBoard.endFill();
Free Flash Tutorials, Actionscript, Drawing API

Draw a curve:
_root.createEmptyMovieClip("dBoard",1); dBoard.lineStyle(1,0,100); dBoard.moveTo(130,130) dBoard.curveTo(180,180,130,230);
Free Flash Tutorials, Actionscript, Drawing API

This is every thing you need to know about the drawing in actionscript, with these functions you can draw almost everything.

del.icio.us digg it Reddit Stumble Upon Technorati

Previous | 1 | 2 | Next




Supporters

Reseller Web Hosting