Reusing a ScaleButton class


show more Reusing a ScaleButton class provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash CS3 Professional Beyond the Basics show less
please wait ...

Reusing a ScaleButton class

In this movie, we'll take a look at how to reuse the Scale class we created in the last movie and apply it to something else. If you're following along, just create a new ActionScript 3.0 document. Let's go to File > Save As and save this file in Chapter_04, reusing_scale, start and call it Reusing.fla, and just click Save. The first thing we'll have to do is define our class path.

If you are following along, and you don't have access to the Exercise Files, we'll be using the same class path that we've been using throughout this chapter. So let's go to Publish Settings, click the Settings tab by ActionScript version, click the Target button to choose a class path, and make sure you choose the right path. Chapter_04, reusing_scale, start, classes. Click Choose and then click OK. Now we have our class path setup. All we have to do is draw something, link it to the ScaleButton class and then make that a button set.

Maybe that sounds a little bit complicat...

Reusing a ScaleButton class
Video duration: 5m 26s 4h 7m Intermediate

Viewers:

Reusing a ScaleButton class provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash CS3 Professional Beyond the Basics

please wait ...