
212
CHAPTER 11
In this section, we’ll first show you how to use ActionScript 3 in Flash to author custom panels, and
then introduce you to Flex panel authoring.
Creating ActionScript 3 panels in Flash
The concepts we’ve covered so far are all still valid when creating ActionScript 3–based panels. There
are just a few things that we have to do differently to ensure communication between the SWF and
Fireworks. When authoring ActionScript 3 panels, start by specifying a document class for the FLA.
Figure 11-13 shows the class DrawRect specified as our document class in Flash.
Figure 11‑13. Specifying a document class using the Flash
Property inspector
Now create a Draw Rect.as file and save it in the same folder as Draw Rect.fla. We’ve re- created
the original Draw Rect layout in a new ActionScript 3 file and added the
actions layer as we did earlier.
Komentáře k této Příručce