by Damon Dean and Andy Cowitt Macromedia ® Studio 8 ALL-IN-ONE DESK REFERENCE FOR DUMmIES ‰ 01_59690X ffirs.qxp 12/6/05 2:23 PM Page iii Macromedia ® Studio 8 All-in-One Desk Reference For Dummies ® Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2006 by Wiley Publishing, Inc., Indianapolis, Indiana 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 permit- ted 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-4355, or online at http://www.wiley.com/go/permissions. Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United States and other countries, and may not be used without written permission. Macromedia is a registered trademark of Macromedia, Inc. in the United States and/or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPE- TENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. For general information on our other products and services, 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. For technical support, please visit www.wiley.com/techsupport. 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 Control Number: 2005935145 ISBN-13: 978-0-7645-9690-2 ISBN-10: 0-7645-9690-X Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/SS/RS/QV/IN 01_59690X ffirs.qxp 12/6/05 2:23 PM Page iv About the Authors Damon Dean has been working in Internet technologies and development for nearly a decade as an editor, producer, and developer. As a development editor for Sybex, Damon was responsible for developing both the multimedia and computer-game book lines. After developing those properties into prof- itable units, he moved on to Postlinear Entertainment, where he produced and designed online multiplayer computer games for publishers such as Sega and MGM. Three years later, Damon took his software development skills and moved into Web development. As a founding member of 415 Productions, Damon worked with several large companies, including Credit Suisse, Robert Mondavi, HP, and BART. His application design and development resumé includes architecting and building content management systems, extranets, corporate intranets, and enterprise CRMs. After four years at 415, Damon moved on in the summer of 2001 to be the Internet Services Director at a pri- vate foundation in Oakland, California. Damon has written several books, dating back to 1996. His first book, A Pocket Tour of Multimedia on the Internet (Sybex), was eventually trans- lated into five languages. In 1997, Damon began a relationship with Wiley Publishing and has written several books for them, including Web Channel Development For Dummies, FrontPage 2000 For Dummies Quick Reference, ACT! 2000 For Windows For Dummies Quick Reference (co-author), and more recently, Cascading Style Sheets For Dummies. Andy Cowitt is a freelance Web developer who spent five years learning the trade at the award-winning firm 415, Inc. While at 415, Andy worked on multi- media presentations and Web sites for Apple, Oracle, Macromedia, the San Francisco Symphony, KQED, and Stag’s Leap Wine Cellars. He’s been using Macromedia’s products since each of them arrived on the scene. In his spare time, Andy plays guitar and ukulele and makes videos. He lives in Oakland with illustrator Michael Wertz and their dog, Olive. 01_59690X ffirs.qxp 12/6/05 2:23 PM Page v Dedication Damon Dean: For Chris, Gatsby, and China Andy Cowitt: For Michael Wertz and Olive Authors’ Acknowledgments Damon Dean and Andy Cowitt: As with any book, there’s a big cast of char- acters that help bring it all together. First and foremost, we’d like to acknowl- edge the patient, thoughtful work of editors: project editor Christopher Morris, the numerous copy editors, and technical editors Danilo Celic and Ron Rockwell. Additionally, we’d like to thank acquisitions editor Steve Hayes, who, for some reason, keeps asking us to come back and write books. I guess we miss our deadlines better than the other guys. Damon would like to thank Craig Ziegler, Vincent James, Eric Schmidt, and Daniel Hai, all of whom work at the California HealthCare Foundation, for their support while writing this book. In addition, Damon would like to thank his friends and family, who consistently put up with his crankiness as this book got closer and closer to being completed, specifically Chris Jennings, Ryan Clifford, Matthew Allington, and of course, his parents, John and Kathy Dean. He’d also like to thank his grandmother . . . just because. Andy wishes to thank his parents, Ben and Adria Cowitt, and his extended family, with special nods to Michael Wertz, Phil Benson, and especially Damon Dean, for all their encouragement and support. 01_59690X ffirs.qxp 12/6/05 2:23 PM Page vii Publisher’s Acknowledgments We’re proud of this book; please send us your comments through our online registration form located at www.dummies.com/register/. Some of the people who helped bring this book to market include the following: Acquisitions, Editorial, and Media Development Project Editor: Christopher Morris Acquisitions Editor: Steve Hayes Copy Editors: Andy Hollandbeck, James Howard Russell, Tonya Cupp, Laura Miller Technical Editors: Danilo Celic, Ron Rockwell Editorial Manager: Kevin Kirschner Permissions Editor: Laura Moss Media Development Supervisor: Richard Graves Editorial Assistant: Amanda Foxworth Cartoons: Rich Tennant ( www.the5thwave.com) Composition Services Project Coordinator: Maridee Ennis Layout and Graphics: Andrea Dahl, Lauren Goddard, Denny Hager, Stephanie D. Jumper, Melanee Prendergast, Lynsey Osborn, Heather Ryan Proofreaders: Laura Bowman, Leeann Harney, Jessica Kramer, Dwight Ramsey Indexer: Infodex Indexing Services, Inc. Publishing and Editorial for Technology Dummies Richard Swadley, Vice President and Executive Group Publisher Andy Cummings, Vice President and Publisher Mary Bednarek, Executive Acquisitions Director Mary C. Corder, Editorial Director Publishing for Consumer Dummies Diane Graves Steele, Vice President and Publisher Joyce Pepple, Acquisitions Director Composition Services Gerry Fahey, Vice President of Production Services Debbie Stailey, Director of Composition Services 01_59690X ffirs.qxp 12/6/05 2:23 PM Page viii Contents at a Glance Introduction 1 Book I: An Introduction to Building Web Sites 7 Chapter 1: Why Build a Web Site? 9 Chapter 2: Developing Web Content 17 Chapter 3: Choosing the Right Tools for the Job 23 Chapter 4: Best Practices for Web Development 31 Book II: Dreamweaver 8 41 Chapter 1: Introduction to Dreamweaver 8 43 Chapter 2: Creating Basic Web Pages 55 Chapter 3: Creating and Using Dreamweaver Sites 75 Chapter 4: Punching Up Your Pages with Forms and Frames 95 Chapter 5: Laying Out Pages with Layers 111 Chapter 6: Using ColdFusion MX 7 Developer Edition in Dreamweaver 8 123 Chapter 7: Advanced Web Page Design Techniques 137 Chapter 8: Integrating Dreamweaver 8 with Other Macromedia Products 157 Book III: Fireworks 8 171 Chapter 1: Introduction to Fireworks 8 173 Chapter 2: Fireworks 8 Basics 193 Chapter 3: Working with Text, Shapes, and Images 207 Chapter 4: Transforming Text, Shapes, and Images 235 Chapter 5: The Power of Layers and Frames 263 Chapter 6: Slicing Up Content for the Web 291 Chapter 7: Advanced Fireworks 8 Tools 313 Chapter 8: Integrating Fireworks 8 with Other Macromedia Products 331 Book IV: Flash 8 345 Chapter 1: Introduction to Macromedia Flash 8 347 Chapter 2: Using the Graphics Tools 367 Chapter 3: Working with Symbols 391 Chapter 4: Making Your Life Easier with Layers 401 02_59690X ftoc.qxp 12/6/05 2:25 PM Page ix Chapter 5: Creating Animation 413 Chapter 6: Adding Sound and Video 427 Chapter 7: Publishing Movies 435 Chapter 8: Getting Interactive with ActionScript 447 Chapter 9: Creating Interfaces with Components and Forms 457 Chapter 10: Integrating Macromedia Flash 8 with Other Macromedia Products 469 Book V: Contribute 3 479 Chapter 1: Introduction to Contribute 3 481 Chapter 2: Basics for Contributors 497 Chapter 3: Contribute 3 Administration 525 Chapter 4: Integrating Contribute 3 with Other Macromedia Products 563 Book VI: FreeHand MX 569 Chapter 1: Introduction to FreeHand MX 571 Chapter 2: Understanding FreeHand MX Basics 583 Chapter 3: Using the FreeHand MX Text Tools 607 Chapter 4: Creating Illustrations with FreeHand MX 631 Chapter 5: Transforming Text, Shapes, and Images with FreeHand MX 649 Chapter 6: Exploring the Color Management Tools 673 Chapter 7: Integrating FreeHand MX with Other Macromedia Products 695 Book VII: ColdFusion MX 7 Developer Edition 707 Chapter 1: Introduction to ColdFusion MX 7 Developer Edition 709 Chapter 2: Working with the ColdFusion Administrator 723 Chapter 3: ColdFusion MX 7 Developer Edition Basics 735 Chapter 4: Understanding CFML Basics 747 Chapter 5: Variables, Functions, and Structured Data 761 Chapter 6: Using Databases with ColdFusion MX 7 Developer Edition 783 Chapter 7: Advanced Features in ColdFusion MX 7 Developer Edition 791 Chapter 8: Integrating ColdFusion MX 7 Developer Edition with Other Macromedia Products 807 Index 815 02_59690X ftoc.qxp 12/6/05 2:25 PM Page x Table of Contents Introduction 1 About This Book 1 How to Use This Book 1 Three Presumptuous Assumptions 2 Macintosh versus Windows 2 How This Book Is Organized 3 Book I: An Introduction to Building Web Sites 3 Book II: Dreamweaver 8 3 Book III: Fireworks 8 3 Book IV: Flash 8 3 Book V: Contribute 3 4 Book VI: FreeHand MX 4 Book VII: ColdFusion MX 7 Developer Edition 4 Icons Used in This Book 4 Where to Go from Here 5 Book I: An Introduction to Building Web Sites 7 Chapter 1: Why Build a Web Site? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Understanding Why People Build Web Sites 9 Finding Your Place on the Web 10 What Drives People to the Web 12 Choosing the Right Type of Web Site 13 Macromedia Studio 8: Your Ally in Development 14 Before You Start: Things to Know 15 Chapter 2: Developing Web Content . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 Developing Content: A Four-Step Process 17 Choosing and Organizing Content 18 Classifying common types of Web content 19 Categorizing your content 19 Creating Content for the Web 20 Prepping Content for the Web 22 Chapter 3: Choosing the Right Tools for the Job . . . . . . . . . . . . . . . . . .23 Before You Begin: When Not to Use Macromedia Studio 8 23 Using Dreamweaver 8 for Web Development 24 Designing with Fireworks 8 25 Creating Animation with Flash 8 26 02_59690X ftoc.qxp 12/6/05 2:25 PM Page xi Macromedia Studio 8 All-in-One Desk Reference For Dummies xii Illustrating with FreeHand MX 28 Creating a Dynamic Site with ColdFusion 7 29 Managing Your Site with Contribute 3 29 Chapter 4: Best Practices for Web Development . . . . . . . . . . . . . . . . .31 Following the Best Path of Development 32 Step one: Develop a site concept 32 Step two: Define your requirements 32 Step three: Generate content 33 Step four: Design the site 33 Step five: Build the site 34 Step six: Test and deploy your site 36 Getting the Right People at the Right Time 38 Building a team 38 Involving the right people at the right time 39 Book II: Dreamweaver 8 41 Chapter 1: Introduction to Dreamweaver 8 . . . . . . . . . . . . . . . . . . . . . . .43 Exploring the Dreamweaver 8 Interface 43 Selecting a workspace on start-up 44 Introducing the new Start page 44 Introducing the Document Window 46 Choosing among Standard, Expanded Table, and Layout Modes 47 Examining Your Web Site with the Files Panel 48 Exploring Toolbar Buttons 49 Using Panels and Inspectors 51 Understanding the role of panels 51 Working with the Properties panel 52 Getting Help 52 Chapter 2: Creating Basic Web Pages . . . . . . . . . . . . . . . . . . . . . . . . . . .55 Setting Ruler and Grid Options in the Document Window 55 Creating and Opening Pages 57 Establishing Page Properties 58 Working with Text 60 Adding, editing, and deleting text 60 Inserting a line break 63 Working with Images 64 Inserting an image 64 Deleting or moving an image 65 Modifying an image 65 Working with Links 67 Inserting a link 68 Deleting a link 68 Using named anchors 68 02_59690X ftoc.qxp 12/6/05 2:25 PM Page xii Table of Contents xiii Working with Tables 70 Inserting a table 70 Deleting a table 72 Using layout tables 72 Storing information in table cells 74 Previewing Your Work 74 Chapter 3: Creating and Using Dreamweaver Sites . . . . . . . . . . . . . . .75 Defining a Site in Dreamweaver 8 75 Creating Your First Site 76 Creating a site manually 76 Creating a site using a wizard 78 Setting Up a Remote Connection 82 Using Advanced Site Options 85 Testing your server 86 Cloaking 87 Using Design Notes 87 Setting up a site map 87 Selecting columns for the File view 87 Enabling Contribute compatibility 88 Publishing Your Site 89 Maintaining Your Site 90 Running reports 90 Checking links 92 Using Source Control 93 Chapter 4: Punching Up Your Pages with Forms and Frames . . . . . . .95 Incorporating Forms into Web Pages 95 Adding a form 96 Specifying form properties 97 Labeling form objects 98 Using text fields 99 Setting up buttons 100 Adding other form elements 101 Structuring Pages with Frames 102 Adding frames 102 Modifying frames 103 Deleting frames 106 Saving frames 106 Saving framesets 106 Setting no-frames content 106 Targeting content 107 Chapter 5: Laying Out Pages with Layers . . . . . . . . . . . . . . . . . . . . . . .111 Adding a Layer 111 Selecting a Layer 112 Deleting a Layer 113 Placing Objects in a Layer 113 02_59690X ftoc.qxp 12/6/05 2:25 PM Page xiii [...]... xxii Macromedia Studio 8 All-in-One Desk Reference For Dummies NumericStepper 465 Window 465 Setting component properties 465 Creating Forms with Macromedia Flash 466 Collecting data within a Flash movie .466 Posting form data .4 68 Chapter 10: Integrating Macromedia Flash 8 with Other Macromedia Products 469 Integrating Macromedia. .. 384 Breaking objects apart . 385 Aligning objects 385 Working with Colors 386 Creating solid colors 386 Creating gradients 387 Editing fills 388 Working with bitmap fills 389 xx Macromedia Studio 8 All-in-One Desk Reference For Dummies Chapter 3: Working with Symbols 391 Appreciating the Importance of Symbols... .81 1 Working with CF.query and CF.http 81 3 Understanding the Macromedia Flash Communication Server 81 4 Charting .81 4 Index 81 5 xxx Macromedia Studio 8 All-in-One Desk Reference For Dummies Introduction M acromedia has always been known as a leading-edge design company Since it introduced Director more than a decade ago, Macromedia has shrewdly developed products (like... Work 182 Customizing Your Work Environment . 183 Collapsing and expanding panels 183 Moving, docking, and grouping panels 184 Setting Fireworks Preferences 186 Setting General preferences 187 Editing just the way you want 188 Telling Fireworks how to play with others 189 Expanding your Folder options 189 Importing files in a useful form .190... Help 190 Chapter 2: Fireworks 8 Basics 193 Creating a New Document 193 Changing Views of Your Document 195 Saving Documents 197 Modifying Document Size 1 98 Changing the image size 1 98 Changing the canvas size 201 xvi Macromedia Studio 8 All-in-One Desk Reference For Dummies An Introduction to Color Management... 296 Optimizing Your Images for the Web 297 Working with the options in the Optimize panel 2 98 Making a JPEG 300 Making a GIF 303 Previewing Slices 306 The Preview pane .307 The 2-Up view .307 The 4-Up view .3 08 Relating Hotspots and Slices 309 xviii Macromedia Studio 8 All-in-One Desk Reference For Dummies Exporting Images... Interface 482 Panel basics 482 Menus 487 Setting Preferences 492 Setting Editing preferences .493 Setting File Editors preferences 493 Setting FTP Proxy preferences 494 Setting Invisible Elements preferences 495 Setting Microsoft Documents preferences 495 Setting Security preferences .495 Chapter 2: Basics for Contributors ... 732 Debugging Options for Building Your Site 733 Chapter 3: ColdFusion MX 7 Developer Edition Basics 735 Understanding the ColdFusion Application Server Model .736 Getting Acquainted with CFML 7 38 Introducing CFML tags .7 38 Working with variables 742 Using expressions .744 xxviii Macromedia Studio 8 All-in-One Desk Reference For Dummies Chapter 4: Understanding... Creating Graphs 80 1 Building Custom Tags 80 4 Chapter 8: Integrating ColdFusion MX 7 Developer Edition with Other Macromedia Products 80 7 Integrating ColdFusion with Dreamweaver 80 7 Integrating ColdFusion with Fireworks .81 0 Integrating ColdFusion with Macromedia Flash .81 0 Using the Macromedia Flash Remoting service .81 1 Working with CF.query... 3 78 Reshaping with the Selection tool 3 78 Subselect tool .379 Free Transform tool 379 Straightening and smoothing with the Selection tool 382 Optimizing curves 382 Softening edges 383 Flipping 383 Transferring properties with the Eyedropper tool 384 Grouping 384 Breaking objects apart . 385 Aligning objects 385 . and Andy Cowitt Macromedia ® Studio 8 ALL-IN-ONE DESK REFERENCE FOR DUMmIES ‰ 01_59690X ffirs.qxp 12/6/05 2:23 PM Page iii Macromedia ® Studio 8 All-in-One Desk Reference For Dummies ® Published. 386 Creating gradients 387 Editing fills 388 Working with bitmap fills 389 02_59690X ftoc.qxp 12/6/05 2:25 PM Page xix Macromedia Studio 8 All-in-One Desk Reference For Dummies xx Chapter 3: Working with. 197 Modifying Document Size 1 98 Changing the image size 1 98 Changing the canvas size 201 02_59690X ftoc.qxp 12/6/05 2:25 PM Page xv Macromedia Studio 8 All-in-One Desk Reference For Dummies xvi An Introduction