Lesson 21. Printing and Context Menus
Flash gives you a great amount of control over the process of printing content within the Flash movie window. You can print content that is not displayed onscreen as well as print the content within specific movie clips, frames, or levels. Unlike printing Web pages from your browser, where all graphical content is printed as bitmaps, Flash gives you the option to print certain graphical content as a bitmap or vector image (which produces results that are crisp and colorful). In addition, Flash allows you to gather information about a user's printer such as the dimensions of the paper and the default paper orientation so that printing can be customized even further. All this printing control is made possible by Flash's built-in PrintJob class.
Flash's new printing capabilities give you greater control over many aspects of printing Flash content, including the area to print.
In this lesson, you will learn how to use the PrintJob class to print content in various ways. You will also be introduced to the ContextMenu class so that you can add your own custom print options to the context menu (the menu that appears when the right mouse button is clicked and released).WHAT YOU WILL LEARNIn this lesson, you will:Distinguish between printing from Flash and printing from the browserLearn how to use the PrintJob classPrint content as a bitmap or vectorCreate a custom context menuAdd custom items to a context menuAPPROXIMATE TIMEThis lesson takes approximately 45 minutes to complete.LESSON filesStarting Files:Lesson21/Assets/PrintArea1.flaLesson21/Assets/ContextMenu1.flaCompleted Projects:PrintArea2.flaContextMenu2.fla
• Table of ContentsMacromedia® Flash MX 2004 ActionScript: Training from the SourceBy
Derek Franklin, Jobe Makar Publisher: Peachpit PressPub Date: November 19, 2003ISBN: 0-321-21343-2Pages: 636
Sure, you can use Flash MX 2004 without being a master programmer, but as any Flash developer worth his or her salt will tell you, you''''re not tapping all of its power unless you''''re taking advantage of its scripting language "ActionScript 2.0" which offers a more robust programming model and better object-oriented programming support than ever before. Here to take the fear factor out of learning it are Flash veterans and best-selling authors Derek Franklin and Jobe Makar, who demonstrate that scripting is an instinctual process you already know by translating real-life activities into ActionScript scripts. In these pages, you''''ll find methodologies and techniques for building over 40 real-life Flash ActionScript projects, including sample games, applications, Web sites, and more. New in this edition are coverage of ActionScript 2.0, Web services, Components, Printing, Video, and more. On the companion CD, you''''ll find all the project files and images you need to complete each project.