Drawing in ActionScript3

Self Test

Think of the answer to each question, then hold the mouse over the answer button to see the answer.

1. To draw a line we must first _____ the point where the line starts, then use ____ to draw. moveTo, lineTo

2. To create a fill we must first use _____ , then draw the shape, then use ____ . beginFill, endFill

3. What does this.graphics.lineStyle(2,0xFF0000); do? Lines drawn after this will be red with a thickness of 2.

4. We have just done this.graphics.drawCircle(x,y,4); To draw another circle inside that one we would use ____ this.graphics.drawCircle(x,y,2);

5. The botton left corner of the stage would be __,___ 0,stage.stageHeight

6. What does this.graphics.drawCircle(x,y,15); do? Draw a circle with the center at x,y and a radius of 15.

7. All drawing is done on this.______ graphics

8. curveTo is used to draw ____ curves. Bezier

9. The point 0,0 is _______ the top left corner

10. We have just done this.graphics.moveTo(x,y); To draw a horizontal line with a length of 10, we would use____ this.graphics.moveTo(x+10,y);

LESSON

INDEX

All of the Flash activities with description in Arabic, 汉语, English, Français, Deutsch, Indonesian, Italiano, 日本語, Portuguêes, Русский, Español,


Copyright © Hello World Publications. All rights reserved worldwide.

hello-world.com
Privacy
Policy

Site map

Hello-World