4. Creating ActionScript in External Files

Lesson overview

In this lesson, you will learn to do the following:

• Create an ActionScript file using the tools in Flash CS5.

• Create an ActionScript class that extends the MovieClip class.

• Create a constructor function.

• Define parameters for class methods.

• Use ActionScript code to create vector graphics.

• Use code to create instances of a custom class file in the Flash Timeline.

• Use the MOUSE_MOVE event.

• Turn off an event listener.

• Generate random color.

This lesson will take approximately 2 hours.

image

External ActionScript files can be convenient for reusing code, or they can be the ...

Get ActionScript 3.0 for Adobe Flash Professional CS5 Classroom in a Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.