Previous Page
Next Page

The Brave New World of Expressiveness

Flash has seen significant development over the years in both capability and design. Consistently with each new release, developers push the technology into new territory. In its current iteration, Flash 8 is perhaps the single largest upgrade to the Flash Player's visual effects engine. While past upgrades to Flash (notably Flash MX and Flash MX 2004) were largely received as "developer-focused" enhancements, Flash 8 raises the bar for what visual designers can expect to achieve with Flash productions. Flash 8, of course, continues to satisfy both designers and programmers — all of the new author-time visual effects in Flash 8 and Flash Player 8 are fully programmable with ActionScript, the programming language of Flash.

Just as Flash MX 2004 was available in two editions, you can produce Flash Player 8 content in either Flash Basic 8 or Flash Professional 8. Both editions share many core updates to Flash MX 2004, including our following favorites:

If you use Flash Professional 8, sometimes referred to as Flash Pro 8, you can take advantage of the following additional features as well:

Many enhancements are not directly seen in the authoring environment, though. While there are two editions of Flash 8, there's still only one Flash Player 8 that's used to view the movies published from either edition. Flash Player 8 adds the following enhancements, among others:

For a complete list of features in each edition of Flash 8, see the Help pages in the Help panel's booklet, Getting Started with Flash Getting Started What's new in Flash.

Web Resource 

Before you buy or upgrade Flash 8, we highly recommend that you take a look at the detailed feature comparison table on Macromedia's site at:

www.macromedia.com/software/flash/basic/

Tip 

Given that most of the expressiveness improvements, such as filter effects and blend modes, are only available in Flash Professional 8, we strongly suggest that you use Flash Professional 8 for any studio-level production work.

Macromedia also released new versions of Dreamweaver and Fireworks, as part of the Studio 8 software bundle. The user interfaces for Flash, Dreamweaver, and Fireworks are very similar, each touting a Property inspector, dockable panel sets, and specialized tools to integrate the products with one another.

Cross-Reference 

To learn more about enhancing your Flash production with Dreamweaver and Fireworks, refer to Part X, "Expanding Flash."

Although the broad array of Flash work created by Web designers and developers already speaks for itself, the sleek interface and the powerful additional features of Flash 8 surely inspire more challenging, functional, entertaining, informative, bizarre, humorous, beautiful, and fascinating experiments and innovations.

There are probably more ways to use Flash than there are adjectives to describe them, but here are just a few examples:

This list is obviously far from complete and is ever-expanding with each new release of the program. As you can probably tell from this list, if you can imagine a use for Flash, it can probably be accomplished.

The Topography of Flash 8

Before you attempt to construct interactive projects in Flash, you should be familiar with the structure of the authoring environment. Even if you already know a previous version of Flash, this is advisable. That's because with the release of Flash 8, Macromedia has again added many new features to the interface and has either moved or improved other features and functionalities. So, to get a firm footing in the new interface, we strongly suggest that you work your way through this book — from the beginning.

Cross-Reference 

Chapter 4, "Interface Fundamentals," introduces the updated Flash 8 interface and gives you tips for customizing your workspace and optimizing your workflow.

Moreover, you need to proactively plan your interactive projects before you attempt to author them in Flash. An ounce of preplanning goes a long way during the production process. Don't fool yourself — the better your plan looks on paper, the better it performs when it comes to the final execution.

Cross-Reference 

We detail the foundation for planning interactive Flash projects in Chapter 3, "Planning Flash Projects," and you will find these concepts reiterated and expanded in chapters that discuss specific project workflows. Chapter 20, "Making Your First Flash 8 Project," is a great place to start applying these planning strategies.

We've consolidated the overview of interactive planning in the early chapters of the book. In later chapters, we've included step-by-step descriptions of real-world projects that allow you to see how all the theory and planning suggestions apply to the development of specific projects.

Cross-Reference 

Chapter 31, "Creating a Game in Flash," walks you through the logic required to design and script a functional and engaging game. Chapter 35, "Building an Image Gallery Component," describes the process of creating an entire component from the ground up, utilizing many of the new filter effects in Flash Player 8.

There are two primary files that you create during Flash development: Flash document files (.fla) and Flash movie files (.swf). We discuss both of these formats next.

File Types in Flash 8

Flash document files (.fla) are architected to provide an efficient authoring environment for projects of all sizes. Within this environment, content can be organized into scenes, and the ordering of scenes can be rearranged throughout the production cycle. Layers provide easy separation of graphics within each scene, and, as Guide or Mask layers, they can also aid drawing or even provide special effects. The Timeline shows keyframes, motion and shape tweens, labels, and comments. The Library (which can be shared amongst movies at authortime or at run time) stores all the symbols in your project, such as graphics, fonts, animated elements, sounds or video, and components.

Flash Documents

Image from book
Throughout this book, you will see us refer to Flash documents, which are the .fla files created by Flash 8 when you choose File New and choose Flash Document from the General category tab. Unlike some graphic applications, such as Macromedia FreeHand or Adobe Illustrator, the file extension for Flash documents does not reflect the version of the authoring tool. For example, Flash 5, Flash MX, Flash MX 2004, and Flash 8 save Flash documents as .fla files. You cannot open later version documents in previous versions of the authoring tool. You do not use Flash documents with the Flash Player, nor do you need to upload these files to your Web server. Always keep a version (and a backup!) of your Flash document.

Tip 

Flash 8 allows you to resave your Flash 8 document file (.fla) as a Flash MX 2004 document file (.fla). Choose File Save As and select Flash MX 2004 Document in the Save as type menu. If you save the document in this manner, you can open the Flash document file (.fla) in the Flash MX 2004 authoring application.

Figure 1-1 shows how Flash documents are composed of individual scenes that contain keyframes to describe changes on the Stage. What you can't see in this figure is the efficiency of sharing Flash Libraries among several Flash documents, loading other Flash movies into a parent, or "master," Flash movie using the loadMovie() action, or creating interactive elements with scripting methods.

Image from book
Figure 1-1: Elements of a Flash document (.fla) in the authoring environment

Flash Movies

Image from book
When you publish or test a Flash document, Flash 8 creates a Flash movie file with the .swf file extension. This file format is an optimized version of the Flash document, retaining only the elements from the project file that are actually used. Flash movies are uploaded to your Web server where they are usually integrated into HTML documents for other Web users to view. You can protect your finished Flash movies from being easily imported or edited in the authoring environment by other users.

Caution 

The Protect from import option in the Publish Settings does not prevent third-party utilities from stripping artwork, symbols, sounds, and ActionScript code from your Flash movies. For more information, read Chapter 21, "Publishing Flash Movies."

Much of the information contained originally within a Flash document file (.fla) is discarded in the attempt to make the smallest file possible when exporting a Flash movie file (.swf). When your movie is exported, all original elements remain but layers are essentially flattened and run on one timeline, in the order that was established in the Flash document. Practically all information originally in the file will be optimized somehow, and any unused Library elements are not exported with the Flash movie. Library assets are loaded into and stored in the first frame they are used in. For optimization, reused assets are only saved to the file once and are referenced throughout the movie from this one area. Bitmap images and sounds can be compressed with a variety of quality settings as well.

Tip 

Flash Player 6 and higher movies can be optimized with a specialized Compress Movie option that is available in the Flash tab of the Publish Settings dialog box (File Publish Settings). When you apply this option, you will see drastic file-size savings with movies that use a significant amount of ActionScript code.

Refer to Figure 1-2 for a graphic explanation of the characteristics of the Flash movie file (.swf) format.

Image from book
Figure 1-2: Overview of the Flash movie (.swf) format
Cross-Reference 

We discuss Flash Player detection in detail in Chapter 22, "Integrating Flash Content with Web Pages."

Cross-Reference 

We introduce guidelines for creating accessible content for the Flash Player 8 in Chapter 20, "Making Your First Flash 8 Project."

There are several other ways in which Flash movies, or their parts, can be played back or displayed. Since Flash 4, the Publish feature has offered provisions for the export of movies or sections of movies to either the QuickTime digital video format, the QuickTime Flash layer vector format, or the Animated GIF format. Parts of movies can also be exported as a series of individual bitmaps or as vector files. Single frames can also be exported to these formats.

Flash ActionScript Files

Image from book
ActionScript is the programming language used within Flash 8 to create interactive functionality within the movie. You can store ActionScript code in external text files with the .as file extension. You can open .as files directly in Flash 8 or your preferred code editing application. ActionScript files can be brought into a Flash movie using the #include directive or the import keyword.

Flash Video Files

Image from book
The Flash Video file format (.flv file extension) is used by the Flash 8 Video Encoder or another video encoding application such as Sorenson Squeeze or On2 Flix to export video. You can not open .flv files in the Flash 8 authoring tool, but you can import them into a Flash document file (.fla) or you can load them at run time into Flash Player 7 or higher movies. .flv files can also be uploaded to a Flash Communication Server application and streamed in real time to Flash Player 6 or higher movies.

Flash Debug Files

Image from book
A Flash Debug file (.swd file extension) is created whenever you choose the Debug Movie command from the Control menu in the Flash 8 authoring environment. You can not play an .swd file on its own; rather, the .swd file augments the functionality of the .swf file during the debugging process. The .swd file contains information related to trace() actions and breakpoints within your Flash movie.

Cross-Reference 

You learn more about the debugging process in Chapter 32, "Managing and Troubleshooting Flash Movies."

Flash Component Files

Image from book
The Flash Component file format (.swc file extension) is used for compiled clips that you purchase from third-party vendors or download from Macromedia Exchange (www.macromedia.com/exchange). You can't directly open an .swc file in the Flash 8 authoring environment, but you can copy .swc files to your local settings for Flash 8 so that the components show up in the Components panel. On Windows, you can copy .swc files to the following location. Note that ; denotes a continuation of the directory path:

C:\Documents and Settings\[Your User Name]\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\Components

On the Macintosh, you can copy to this location:

[Startup disk]: Users: [Your User Name]: Library: Application Support: Æ
Macromedia: Flash 8: en: Configuration: Components

These locations are only used to store additional components; the default components for Flash 8 are stored in the program folder for Flash 8.

Flash Project Files

Image from book
If you use Flash Professional 8, you can create Flash Project files (.flp file extension) in the Project panel. A Flash Project file is essentially an XML file that stores the names of files associated with a project.


Previous Page
Next Page