INFO 424 SCHEDULE

Exercise: Draw with ActionScript

To practice learning how to using the drawing tools in ActionScript: draw something (be creative, have fun, challenge yourself).

Here's what I drew (my code is below):

ActionScript smiley Face

code for smiley face:

import flash.display.Sprite;

var smileyFace:Sprite = new Sprite();

smileyFace.graphics.lineStyle(3,0x000000);
smileyFace.graphics.drawCircle(200,200,150);
smileyFace.graphics.beginFill(0x888888);
smileyFace.graphics.drawCircle(150,150,15);
smileyFace.graphics.drawCircle(250,150,15);
smileyFace.graphics.endFill();
smileyFace.graphics.moveTo(120,250);
smileyFace.graphics.curveTo(200,330,280,250);

stage.addChild(smileyFace);

For inspiration, here are some of the drawings from previous students:

FINAL PRODUCT: ActionScriptDrawing.fla