Macromedia Flash 8 Bible


Robert Reinhardt and

Snow Dowd

image from book

Published by Wiley Publishing, Inc.

111 River Street Hoboken, NJ 07030-5774 .
www.wiley.com

Copyright © 2006 by Wiley Publishing, Inc., Indianapolis, Indiana

ISBN-10:

0-471-74676-2

ISBN-13: 978-0-471-74676-8

Manufactured in the United States of America

10 9 8 7 6 5 4 3 2 1

1B/RZ/QR/QW/IN

Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada

No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, or online at http://www.wiley.com/go/permissions.

image from book

LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHOR HAVE USED THEIR BEST EFFORTS IN PREPARING THIS BOOK, THEY MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTATIVES OR WRITTEN SALES MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION. YOU SHOULD CONSULT WITH A PROFESSIONAL WHERE APPROPRIATE. NEITHER THE PUBLISHER NOR AUTHOR SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER DAMAGES.

image from book

For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993 or fax 317-572-4002.

Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.

Library of Congress: 2005936651

Trademarks: Wiley and related trade dress are registered trademarks of Wiley Publishing, Inc., in the United States and other countries, and may not be used without written permission. Wiley and the Wiley Publishing logo are trademarks or registered trademarks of Wiley. Macromedia, FreeHand, Flash, ColdFusion, Director, and SiteSpring are trademarks or registered trademarks of Macromedia, Inc . Copyright © 2002–2003. Macromedia, Inc. 600 Townsend Street, San Francisco, CA 94103 USA. All Rights Reserved. All other trademarks are property of their respective owners.

About the Authors

After discovering Macromedia Flash while working on an art project, Robert soon realized that there was a need for more comprehensive documentation of its capabilities. In 1998, not many people had even heard of Flash and publishers were wary of the limited market, but IDG Books Worldwide, Inc. (now Wiley Publishing, Inc.) committed to doing the Flash 4 Bible . The rest, as they say, is history. After studying and working together in Toronto for five years, Robert Reinhardt and Snow Dowd established a multimedia consulting and design company in Los Angeles in 1999, called [the MAKERS]. Five years in the Hollywood Hills saw them through the dotcom boom and bust and gave them the chance to work on a wide range of projects — without ever having to wear wool socks. Now based in Portland, Oregon, [the MAKERS] continue to do work for entertainment companies, educational institutions, entrepreneurs, independent artists, and nonprofit organizations — and enjoy wearing stylish rain boots.

Robert Reinhardt — With a degree in photographic arts, Robert takes a holistic approach to the creation of compelling multimedia. In addition to development and content creation through [the MAKERS], Robert works with Schematic (www.schematic.com) as Vice President of the Multimedia Platforms Group. Robert has led various assignments including multimedia data analysis applications for Nielsen's Media and Entertainment division and creating interactive applications for The Weather Channel's WeatherClassroom.com, DC Comics, and Microsoft Windows XP Media Center Edition spotlights for major cable networks.

When he isn't building or consulting on Flash projects, Robert loves to teach and write about Flash. In addition to this book, he is the coauthor of the Flash MX 2004 ActionScript Bible (Wiley, 2004), as well as Macromedia MX: Building Rich Internet Applications (Macromedia Press, 2003). He has developed and taught Flash workshops for Lynda.com, Art Center College of Design, Portland State University, and Ed2Go, as well as conducted on-site training and seminars for clients in the United States and Canada such as LodgeNet and Scripps Networks. Robert has been a regular featured speaker at the FlashForward, FlashCan, FlashBelt, and SIGGRAPH conferences. Robert and Snow were members of the Web Graphics committee for the SIGGRAPH 2004 conference. Robert is also a writing partner for CommunityMX.com.

Snow Dowd — Snow initially collaborated with Robert Reinhardt on multimedia, film, and photography-based installation projects while earning a BFA in Image Arts and New Media at Ryerson University. During this time, she was also the production manager for Design Archive, one of Canada's preeminent architectural photography studios. Working with renowned photographers and an exacting international client base of architects and designers helped her gain a deeper appreciation for images, architecture, and industrial design.

Fully immersed in digital production since 1998, Snow is able to synthesize her background in visual arts and communication theory with an ever-evolving software toolkit. Focusing on content architecture and interface design, Snow strives to create print and Web projects that are beautiful, functional, and memorable. Snow was honored to be featured in the June 2005 spotlight on FlashGoddess.com — a great place to go if you've been wondering where all the women are in the Flash world.

About the Technical Editors

Ezra Freedman — Ezra is a Senior Manager of the Multimedia Platforms Group at Schematic, a Los Angeles-based services company that develops interface and technology solutions for the Web, television, and mobile devices. He has served as lead architect and developer on many successful Web and mobile applications and is currently working on projects for the Macromedia Mobile and Devices team.

Zach Zsukula — Zach is a designer and technologist working for Schematic in New York City. He has worked on projects ranging from coding the recently re-launched ABCNews.com to designing and animating the Web site for Warner Bros.' Ocean's Twelve . After escaping Los Angeles, Zachary now resides in Williamsburg, Brooklyn, and also works with bands, photographers, and arts organizations through his studio, No Printcode (www.noprintcode.com).

Credits

Senior Acquisitions Editor
Michael Roney

Project Editor
Katharine Dvorak

Technical Editors
Ezra Freedman
Zach Zsukula

Copy Editor
Lauren Kennedy

Editorial Manager
Robyn Siesky

Vice President and Executive Group Publisher
Richard Swadley

Vice President and Publisher
Barry Pruett

Senior Permissions Editor
Laura Moss

Project Coordinator
Michael Kruzil

Graphics and Production Specialists
Beth Brooks
Lauren Goddard
Denny Hager
Joyce Haughey
Barbara Moore
Lynsey Osborn
Melanee Prendergast
Alicia B. Smith
Julie Trippetti

Quality Control Technicians
John Greenough
Jessica Kramer

Media Development Specialist
Shannon Walters

Proofreading and Indexing
TECHBOOKS Production Services

To the summer I lost writing this book. I hope to see you next year. And to Jon Stewart, for making me laugh out loud after dark.

RJR

To Oregon for being almost "Canadian" and to Rob for being almost perfect.

SD

Wiley Publishing, Inc. End-User License Agreement

Read this. You should carefully read these terms and conditions before opening the software packet(s) included with this book "Book". This is a license agreement "Agreement" between you and Wiley Publishing, Inc. "WPI". By opening the accompanying software packet(s), you acknowledge that you have read and accept the following terms and conditions. If you do not agree and do not want to be bound by such terms and conditions, promptly return the Book and the unopened software packet(s) to the place you obtained them for a full refund.

  1. License Grant. WPI grants to you (either an individual or entity) a nonexclusive license to use one copy of the enclosed software program(s) (collectively, the "Software," solely for your own personal or business purposes on a single computer (whether a standard computer or a workstation component of a multi-user network). The Software is in use on a computer when it is loaded into temporary memory (RAM) or installed into permanent memory (hard disk, CD-ROM, or other storage device). WPI reserves all rights not expressly granted herein.

  2. Ownership. WPI is the owner of all right, title, and interest, including copyright, in and to the compilation of the Software recorded on the disk(s) or CD-ROM "Software Media". Copyright to the individual programs recorded on the Software Media is owned by the author or other authorized copyright owner of each program. Ownership of the Software and all proprietary rights relating thereto remain with WPI and its licensers.

  3. Restrictions On Use and Transfer.

    1. You may only (i) make one copy of the Software for backup or archival purposes, or (ii) transfer the Software to a single hard disk, provided that you keep the original for backup or archival purposes. You may not (i) rent or lease the Software, (ii) copy or reproduce the Software through a LAN or other network system or through any computer subscriber system or bulletin-board system, or (iii) modify, adapt, or create derivative works based on the Software.

    2. You may not reverse engineer, decompile, or disassemble the Software. You may transfer the Software and user documentation on a permanent basis, provided that the transferee agrees to accept the terms and conditions of this Agreement and you retain no copies. If the Software is an update or has been updated, any transfer must include the most recent update and all prior versions.

  4. Restrictions on Use of Individual Programs. You must follow the individual requirements and restrictions detailed for each individual program in the About the CD-ROM appendix of this Book. These limitations are also contained in the individual license agreements recorded on the Software Media. These limitations may include a requirement that after using the program for a specified period of time, the user must pay a registration fee or discontinue use. By opening the Software packet(s), you will be agreeing to abide by the licenses and restrictions for these individual programs that are detailed in the About the CD-ROM appendix and on the Software Media. None of the material on this Software Media or listed in this Book may ever be redistributed, in original or modified form, for commercial purposes.

  5. Limited Warranty.

    1. WPI warrants that the Software and Software Media are free from defects in materials and workmanship under normal use for a period of sixty (60) days from the date of purchase of this Book. If WPI receives notification within the warranty period of defects in materials or workmanship, WPI will replace the defective Software Media.

    2. WPI AND THE AUTHOR(S) OF THE BOOK DISCLAIM ALL OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE SOFTWARE, THE PROGRAMS, THE SOURCE CODE CONTAINED THEREIN, AND/OR THE TECHNIQUES DESCRIBED IN THIS BOOK. WPI DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE ERROR FREE.

    3. This limited warranty gives you specific legal rights, and you may have other rights that vary from jurisdiction to jurisdiction.

  6. Remedies.

    1. WPI's entire liability and your exclusive remedy for defects in materials and workmanship shall be limited to replacement of the Software Media, which may be returned to WPI with a copy of your receipt at the following address: Software Media Fulfillment Department, Attn.: Macromedia Flash 8 Bible, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, or call 1-800-762-2974. Please allow four to six weeks for delivery. This Limited Warranty is void if failure of the Software Media has resulted from accident, abuse, or misapplication. Any replacement Software Media will be warranted for the remainder of the original warranty period or thirty (30) days, whichever is longer.

    2. In no event shall WPI or the author be liable for any damages whatsoever (including without limitation damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising from the use of or inability to use the Book or the Software, even if WPI has been advised of the possibility of such damages.

    3. Because some jurisdictions do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation or exclusion may not apply to you.

  7. U.S. Government Restricted Rights. Use, duplication, or disclosure of the Software for or on behalf of the United States of America, its agencies and/or instrumentalities "U.S. Government" is subject to restrictions as stated in paragraph (c)(1)(ii) of the Rights in Technical Data and Computer-Software clause of DFARS 252.227-7013, or subparagraphs (c) (1) and (2) of the Commercial Computer Software Restricted Rights clause at FAR 52.227-19, and in similar clauses in the NASA FAR supplement, as applicable.

  8. General. This Agreement constitutes the entire understanding of the parties and revokes and supersedes all prior agreements, oral or written, between them and may not be modified or amended except in a writing signed by both parties hereto that specifically refers to this Agreement. This Agreement shall take precedence over any other documents that may be in conflict herewith. If any one or more provisions contained in this Agreement are held by any court or tribunal to be invalid, illegal, or otherwise unenforceable, each and every other provision shall remain in full force and effect.

Acknowledgments

This book would not have been possible without the dedication and talent of many people. Although much of the content in this edition has changed to reflect changes in the tools, there is also a good deal of content from dedicated contributors that has been carried over from the previous edition. We are always grateful for the added breadth and depth the tutorials from our guest experts bring to the content. First and foremost, we would like to thank the Flash development community. In our combined experiences in research and multimedia production, we haven't seen another community that has been so open, friendly, and willing to share advanced tips and techniques. It has been gratifying to be involved as the community keeps expanding and to see the innovators in the first wave of Flash development become mentors to a whole new generation. Thank you all for continuing to inspire and challenge audiences and each other with the possibilities for Flash.

We would like to thank everyone at John Wiley & Sons who supported us as we researched and revised, week after week. Katharine Dvorak, our project editor, was clever, kind, and charming enough to get the job done while maintaining a cheerful demeanor. Lauren Kennedy is the best copy editor we've ever had. She polished up rusty sentences that had made it past our editors on earlier editions and caught a few things that slipped by our tech editors, too. As always, our endless gratitude goes to Michael Roney, our acquisitions editor. Steadfast, optimistic, and supportive, Mike was a human shield who kept the faith and ran interference for us even as we pushed deadlines (repeatedly) to overhaul a best-selling book.

Ezra Freedman and Zach Zsukula, our technical editors, were dedicated and creative, as they waded carefully through example files and reams of text in a determined effort to anticipate our readers' perspective. We always prefer to hear "it's broken" before the book has gone to print!

A special thanks to all of the Schematic Flash team who tested examples as we created them, especially John Barton and Billy Shin. Jennifer Goodie provided weekend (and nighttime!) support for many PHP questions for the Gallery component in Chapter 35. Peng Lee gave us timely advice for several examples in the book, and Beau DeSilva spent many nights rendering the 3D wasp footage used in Chapter 17.

Many of the scripts provided in this book would not be complete without the "instant messenger" help provided by Joey Lott, Paul Newman, Danny Patterson, Guy Watson and Rob Williams,. We'd also like to thank Richard Blakely and Jerry Chabolla at Influxis.com for providing the Flash Media Server hosting for this book's streaming video examples.

David Fugate, our literary agent at Waterside Productions, has been through every revision of the Flash Bible series. The bad news and the good news is that David has left Waterside to launch his own company (LaunchBooks), so this will be his last edition of the Flash Bible, but the start of many new endeavors.

Of course, this book about Flash wouldn't even exist without the hard work of the people at Macromedia who make it all possible. Many thanks to the developers, engineers, and support staff at Macromedia, especially Mike Downey, Mike Chambers, Doug Benson, Gary Grossman, Erica Norton, San Khong, Jeff Kamerer, Mally Gardiner, and Jen deHaan, who stayed up day and night to answer our questions and ease our learning curve during the development of Flash 8. Scott Unterberg worked magic as he oversaw one of the most enjoyable and productive beta programs that we've ever been involved with. We're also indebted, as always, to all our intrepid fellow developers and authors, who helped us to get our bearings in early versions of Flash 8.




Macromedia Flash 8 Bible
Macromedia Flash8 Bible
ISBN: 0471746762
EAN: 2147483647
Year: 2006
Pages: 395

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net