Macromedia Flash Tutorial

Flash Tutorials Trademarks 1 Stalk RoboPDF, ActiveEdit, ActiveTest, Authorware, Blue Sky Software, Blue Sky, Breeze, Breezo, Captivate, Central, ColdFusion, Contribute, Database Explorer, Director, Dreamweaver, Fireworks, Flash, FlashCast, FlashHelp, Flash Lite, FlashPaper, Flash Video Encoder, Flex, Flex Builder, Fontographer, FreeHand, Generator, HomeSite, JRun, MacRecorder, Macromedia, MXML, RoboEngine, RoboHelp, RoboInfo, RoboPDF, Roundtrip, Roundtrip HTML, Shockwave, SoundEdit, Studio MX, UltraDev, and WebHelp are either registered employmentmarks or employmentmarks of Macromedia, Inc. nd may be registered in the United States or in other jurisdictions including internationally. Other chattels calls, logos, artfulnesss, denominations, lead, or phrases mentioned amid this promulgation may be employmentmarks, advantage marks, or employment calls of Macromedia, Inc. or other entities and may be registered in assured jurisdictions including internationally. Third-Party Heed This direct comprises couples to third-party websites that are not subordinate the lead of Macromedia, and Macroinstrument is not lawful for the satisfied on any coupleed seat. If you arrival a third-party webseat mentioned in this direct, then you do so at your own facilitate. Macroinstrument collects these couples singly as a convenience, and the inclusion of the couple does not involve that Macroinstrument endorses or accepts any capacity for the satisfied on those third-party seats. Speech compression and decompression technology licensed from Nellymoser, Inc. (www. nellymoser. com). Sorenson™ Spark™ video compression and decompression technology licensed from Sorenson Media, Inc. Opera ® browser Copystraight © 1995-2002 Opera Software ASA and its suppliers. All hues sly. Macroinstrument Flash 8 video is strengthed by On2 TrueMotion video technology. © 1992-2005 On2 Technologies, Inc. All Hues Reserved. http://www. on2. com. Visual SourceSafe is a registered employmentmark or employmentmark of Microsoft Corporation in the United States and/or other countries. Copystraight © 2005 Macromedia, Inc. All hues sly. This manual may not be copied, photocopied, reproduced, translated, or converted to any electronic or machine-readable produce in total or in segregate-among-among outbcommand written approval from Macromedia, Inc. Notwithstanding the antecedently, the possessor or identified user of a strengthful portraiture of the software delay which this manual was granted may imimprint out one portraiture of this manual from an electronic account of this manual for the sepaadmonish meaning of such possessor or identified user tuition to use such software, granted that no segregate-among-among of this manual may be imprinted out, reproduced, nice, resold, or communicated for any other meanings, including, outbcommand shyness, interchangeable meanings, such as selling copies of this instrumentation or providing paid-for buttress advantages. Acknowledgments Contrivance Management: Sheila McGinn Writing: Jay Armstrong, Jen deHaan Managing Editor: Rosana Francescato Lead Editor: Lisa Stanziano Editing: Evelyn Eldridge, Mark Nigara, Lisa Stanziano, Anne Szabla Production Management: Patrice O’Neill, Kristin Conradi, Yuko Yagi Instrument Artfulness and Production: Adam Barnett, Aaron Begley, Paul Benkman. John Francis, Geeta Karmarkar, Masayo Noda, Paul Rangel, Arena Reed, Mario Reynoso Special benediction to Jody Bleyle, Mary Burger, Lisa Friendly, Stephanie Gowin, Bonnie Loo, Mary Ann Walsh, Erick Vera, the beta examinationers, and the full Flash and Flash Pflake engineering and QA teams. First Edition: September 2005 Macromedia, Inc. 601 Townsend St. San Francisco, CA 94103 Space Chapter 1: Basic Tasks: Produce a Instrument . . . . . . . . . . . . . . . . . 13 Captivate a outing of the user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Vary elucidation and Stage abundantness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Vary your conception of the Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Conception the Library panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Add forcibles to the Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Add video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Conception intent properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Add video lead forces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Use the Movie Explorer to conception the instrument edifice . . . . . . . . . . . 22 Examination the instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Perceive succor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Chapter 2: Basic Tasks: Creating a flag, Part-among 1 . . . . . . . . . . . 25 Inspect the thoroughd FLA rasp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Creating a new instrument. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Changing instrument properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Importing forcibles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Introducing flakes and the spanoutsuccession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Examination the collision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Chapter 3: Basic Tasks: Creating a flag, Part-among 2 . . . . . . . . . . 43 Inspect the thoroughd FLA rasp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Adding quotation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Creating a letter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Adding cheerfulness to a spanoutsuccession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Creating a pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Writing ultimate enjoyments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Examination the collision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 3 Chapter 4: Basic Tasks: Creating a flag, Part-among 3 . . . . . . . . . . . 63 Inspect the thoroughd FLA rasp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Considering your reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Checking your proclaim contrasts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Inserting Flash on a Dreamweaver seat. . . . . . . . . . . . . . . . . . . . . . . . . . . .71 Using roundtrip editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Checking for Flash Pflake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Examination the collision. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Chapter 5: Basic Tasks: Produce Undetermined Flash Satisfied . . . . . 79 Set up your effortspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Fashion your instrument arrivalible to ward unravelers. . . . . . . . . . . . . . . . 81 Collect a instrument denomination and denomination. . . . . . . . . . . . . . . . . . . . . . . . 81 Collect a denomination and denomination for promptings . . . . . . . . . . . . . . . . . . . . . . 82 Individualize that ward unravelers repudiate elements in your instrument . . . . . 83 Vary static quotation to dynamic quotation for arrivalibility . . . . . . . . . . . . . . . . 83 Lead the tab ordain and balbutiation ordain . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Encircling examinationing your instrument delay ward unravelers. . . . . . . . . . . . . . . . . 87 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Chapter 6: Basic Tasks: Effort delay Layers . . . . . . . . . . . . . . . . . 89 Set up your effortspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Valuable a flake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Screen and pomp flakes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Lock a flake. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Add and call a flake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Vary the ordain of flakes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Adprobe flakes in a folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Add a misdeclare flake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Add a direct flake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Delete a flake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Chapter 7: Basic Tasks: Produce an Application. . . . . . . . . . . . . . 97 Set up your effortspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Portraiture input and dynamic quotation arenas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Call quotation arenas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Add and call a Pin equaltor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Declare variables and esteems for the prices . . . . . . . . . . . . . . . . . . . . . . . 101 Individualize esteems for input quotation arenas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 4 Space Transcribe a capacity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Transcribe an occurrence discussr for the equaltor . . . . . . . . . . . . . . . . . . . . . . . 104 Examination your collision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 Chapter 8: Basic Tasks: Use Layout Tools . . . . . . . . . . . . . . . . . 107 Set up your effortspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 Use directs to align an intent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Vary the Stage abundantness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109 Relargeness intents to equal the Stage abundantness. . . . . . . . . . . . . . . . . . . . . . . . . . 110 Individualize chip alignment contrasts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 Align an intent using the alignment directs . . . . . . . . . . . . . . . . . . . . . . . 111 Align intents using the Align panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Chip intents to each other . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 Align intents using the Property director . . . . . . . . . . . . . . . . . . . . . . . 114 Align intents using the grid and arrow keys . . . . . . . . . . . . . . . . . . . . . . 115 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 Chapter 9: Basic Tasks: Produce Symbols and Instances . . . . . . 117 Set up your effortspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 Encircling creating letters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 Produce a forcible letter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Counterfeit and differ an prompting of a letter. . . . . . . . . . . . . . . . . . . .120 Differ a letter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 Produce a movie curtail letter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Assign an prompting call to the movie curtail . . . . . . . . . . . . . . . . . . . . . . . 122 Add an chattels to the movie curtail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123 Chapter 10: Basic Tasks: Add Pin Cheerfulness and Navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Set up your effortspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 Produce a pin from grouped intents . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 Call a pin prompting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 Conception the hit area by enabling pins . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 Vary the hit area of a pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 Align pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 Produce cheerfulness for a pin naradmonish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Add an enjoyment to a pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Add navigation to a pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 Examination the SWF rasp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 Space 5 Chapter 11: Basic Tasks: Produce a Gift delay Screens (Flash Professional Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 Set up your effortspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Conception the ward hierarchy and ward Timelines . . . . . . . . . . . . . . . . . 137 Conception ward properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 Add satisfied to a gift slide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Add ward navigation forces to pins . . . . . . . . . . . . . . . . . . . . 140 Add and call a slide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141 Valuable and affect slides. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 Add satisfied to a new slide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Add transition forces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Examination your gift . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 Chapter 12: Creating Graphics: Inhale in Flash . . . . . . . . . . . . . . 145 Valuable a mould implement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Valuable options to produce a polygon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 Inhale a polygon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 Rotate the mould . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 Use the cutout characteristic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 Transproduce the mould of your delineation . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 Portraiture strokes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 Inhale delay the Outsuccession implement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Valuable and add a opposed grow varnish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Group the mould . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .151 Produce a logo delay the Pen implement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .151 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Chapter 13: Creating Graphics: Produce a Timeoutsuccession Cheerfulness . . 153 Produce a motion tween . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 Produce a mould tween . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 Portraiture and paste keyframes in an cheerfulness . . . . . . . . . . . . . . . . . . . . . . 157 Vary the urge of the cheerfulness. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 Examination the SWF rasp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 Chapter 14: Creating Graphics: Making Animations delay Easing (Flash Professional singly) . . . . . . . . . . . . . . . . . . . . . . 161 Inspect the thoroughd FLA rasp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Unreserved the rouseer instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 Examination the collision. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 6 Contents Chapter 15: Creating Graphics: Applying Gradients . . . . . . . . . . 177 Inspect the thoroughd FLA rasp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 Unreserved the rouseer instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Apply a direct gradient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Produce a radial gradient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183 Produce a transproduce gradient delay a mould . . . . . . . . . . . . . . . . . . . . . . . .186 Apply the terminateing touches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Examination the collision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 Chapter 16: Creating Graphics: Apply Forcible Filters and Blends (Flash Professional Only) . . . . . . . . . . . . . . . . . . . . . . 193 Reconception your underneathtaking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194 Unreserved the rouseer instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .195 Apply filters and blends . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 Chapter 17: Text: Add Quotation to a Instrument . . . . . . . . . . . . . . . . 199 Set up your effortspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 Produce an diffuseing-width quotation plug . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Produce a fixed-width quotation plug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Edit quotation and vary font attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Valuable pomp fonts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Add an input quotation arena . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Portraiture a quotation arena . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 Assign prompting calls to quotation arenas . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 Produce a dynamic quotation arena . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 Individualize produceat options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Conception ActionScript for the dynamic quotation arena . . . . . . . . . . . . . . . . . . . . 207 Examination the SWF rasp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 Bridle spelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Chapter 18: ActionScript: Use Script Tail legislation . . . . . . . . . . 209 Inspect the thoroughd FLA rasp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 Unreserved the rouseer instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .213 Add a script to a pin by using Script Tail legislation . . . . . . . . . . . . . .213 Add compel scripts to the Timeoutsuccession by using Script Tail legislation . . . . . 18 Add a compel script to the Denomination movie curtail . . . . . . . . . . . . . . . . . . . . . . . .221 Examination the collision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Space 7 Chapter 19: ActionScript: Transcribe Scripts . . . . . . . . . . . . . . . . . . 225 Set up your effortspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .226 Produce an prompting of a letter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 Call pin promptings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 Initialize the instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .228 Apply ActionScript syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 Dispose ActionScript allusion instrumentation . . . . . . . . . . . . . . . . . 230 Add comments to ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 Transcribe a capacity for a pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 Portraiture and differ a pin capacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 Bridle syntax and examination your collision . . . . . . . . . . . . . . . . . . . . . . . . . 233 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234 Chapter 20: ActionScript: Add Interactivity . . . . . . . . . . . . . . . 235 Set up your effortspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .236 Call pin promptings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 Add a pomp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 Affect betwixt pomps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238 Lead the instrument delay a plug() enjoyment . . . . . . . . . . . . . . . . . . . . . . . 238 Couple a pin to a pomp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 Add navigation to requite to Pomp 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 Embody a movie curtail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 Use a force to embody an MP3 rasp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 Examination your instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 Chapter 21: ActionScript: Produce a Produce delay Biased Logic and Send Facts . . . . . . . . . . . . . . . . . . . . . . . . 245 Set up your effortspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 Add an input quotation arena to convoke produce equalts . . . . . . . . . . . . . . . . . . . . . .246 Add a Submit pin to the produce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 Add an hallucination intimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248 Add a satisfforce intimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 Add a plug() enjoyment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 Add compel labels for navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Add biased logic for the Submit pin . . . . . . . . . . . . . . . . . . . . . 251 Pass equalts out of a SWF rasp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252 Transcribe a capacity for the Try Again pin . . . . . . . . . . . . . . . . . . . . . . . 253 Examination your SWF rasp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 8 Space Chapter 22: ActionScript: Effort delay Objects and Classes . . 255 Set up your effortspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256 Gather encircling rankes and intent patterns . . . . . . . . . . . . . . . . . . . . . . . . . . 256 Produce an intent from a rank. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 Produce a prescription rank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259 Produce two intents from the Chattels rank. . . . . . . . . . . . . . . . . . . . . . 262 Gather encircling extending true rankes. . . . . . . . . . . . . . . . . . . . . . . . . 263 Extend the MovieClip rank to produce a new rank. . . . . . . . . . . . . . . . 264 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 Chapter 23: Facts Integration: Overconception (Flash Professional Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 Chapter 24: Facts Integration: Using the Macroinstrument Tips Web Advantage Flash Professional Only) . . . . . . . . . . . . . . . 269 Connect to a generally-known web advantage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 Produce a user interface and secure the equaltors delay the web advantage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 Chapter 25: Facts Integration: Using XML for a Timesheet (Flash Professional Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 Produce the user interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 Edit the equalts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 Chapter 26: Facts Integration: Using XUpdate to Update the Timesheet (Flash Professional Only) . . . . . . . . . . . . . . . . . . 287 Update the spansheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 Space 9 10 Space Portico This segregate-among-among of Flash Succor includes diverse slow tutorials, prepared to direct you the tenorants of Flash. Macroinstrument applauds that you go through the precepts using the illustration rasps granted. The course to the illustration rasp is granted in each precept. By completing these hands-on precepts, you’ll gather how to use Flash to add quotation, forcibles, and cheerfulness to your Flash collisions. Additionally, you’ll gather how indulgent it is to prescriptionize your Flash collision by using ActionsScript and forces. The precepts are targeted inbcommand beginners to intermediate-level Flash artfulnessers and developers who omission to get up to urge promptly. Each precept focuses on a local Flash artfulness characteristic or subject-matter and captivates ceasely 10–20 minutes to thorough, depending on your touchstone. In these precepts, you gather how to produce a Flash instrument, transcribe ActionScript, effort delay video and video ontrol forces, and add a Flash equaltor. This magnitude is not a embracing manual detailing all the characteristics of Macroinstrument Flash. For in-profundity heed encircling using Flash, from amid the Flash collision, valuable Flash Succor (Help > Flash Help). NO T E 11 12 Portico CHAPTER 1 Basic Tasks: Produce a Instrument You’re encircling to touchstone the strength of Macroinstrument Flash Basic 8 and Macroinstrument Flash Professional 8. You’ll see how, in a few minutes, you can produce a compelling web touchstone that combines video, quotation, forcibles, and instrument lead forces. You can imimprint this tutorial by downloading a PDF account of it from the Macroinstrument Flash Documentation page at www. macromedia. com/go/ fl_documentation. In this tutorial, you procure thorough the subjoined underneathtakings: Captivate a outing of the user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Valuable panel sets and group panels . . . . . . . . . . . . . . . . . . . . . . . . 15 Vary elucidation and Stage abundantness . . . . . . . . . . . . . . . . . . . . . . . . . .17 Vary your conception of the Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Conception the Library panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Add forcibles to the Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Add video. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Conception intent properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Add video lead forces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Use the Movie Explorer to conception the instrument edifice. . . . . . . . 22 Examination the instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Perceive succor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1 Antecedently meaningation this precept, we applaud that you unravel Getting Established delay Flash, to gather encircling the Flash effortspace. To arrival this direct, valuable Succor > Getting Established delay Flash. 13 Captivate a outing of the user interface First, you’ll unreserved the rouseing FLA rasp that you’ll use to thorough this precept. Each precept includes one rouse rasp, and a perfect rasp that demonstrates how the FLA rasp should answer upon completion of the precepts. . To unreserved your rouse rasp, in Flash valuable Rasp > Unreserved and ramble to the rasp: ¦ In Windows, browse to boot driveProgram FilesMacromediaFlash 8Samples and TutorialsTutorial AssetsBasic TasksCreate a Instrument and double-click instrument_start. fla. On the Macintosh, browse to Macintosh HD/Applications/ Macroinstrument Flash 8/Samples and Tutorials/Tutorial Assets/Basic Tasks/Create a Instrument and double-click instrument_start. fla. ¦ The Produce a Instrument folder comprises thoroughd accounts of the tutorial FLA rasps for your allusion. N OT E The instrument unreserveds in the Flash constructoring environment. The instrument alresponsive includes two flakes in the Timeline. To gather further encircling flakes, valuable Succor > Flash Tutorials > Basic Flash > Effort delay Layers. One of the flakes is calld Guides, which comprises compatability to tail you in placing intents unexceptionably on the Stage. The other flake is calld Content. This is the flake in which to assign the intents that procure compel your instrument. 2. Valuable Rasp > Spare As and spare the instrument delay a new call, in the harmonizeing folder, to protect the former rouse rasp. As you thorough this precept, recall to spare your effort constantly. 14 Basic Tasks: Produce a Instrument Valuable panel sets and group panels The Lapse Workspace Layout panel set groups your effortspace in a way that facilitates meaningation precepts. You’ll use this layout for all precepts that you captivate in Flash. ¦ Valuable Window > Workspace Layout > Default. You can affect panels environing, and relargeness them, as follows: ¦ You can untieck a panel by clicking the upper-left recess of the panel, in the denomination bar, and bringging the panel to another subsidence in the effortspace. If the panel chips resisting a enclosure, it is docked in a new subsidence (or docked in the harmonizeing subsidence, if you affectd it tail). Otherwise, the panel is untiecked. ¦ You can relargeness an untiecked panel by bringging the lower-straight plane out to diffuse the panel. Use implements to produce Flash satisfied The stainless counter Stage area is where you can group intents as you omission them to answer in your proclaimed rasp. You can unreserved diverse instruments at uniformly and use instrument tabs, aggravatehead the Stage, to ramble betwixt them. N OT E The Tools panel, instant to the Stage, offers a multiformity of leads that let you produce quotation and vector art. To gather further encircling implements in the Tools panel, valuable Succor > Flash Tutorials > Creating Graphics: Inhale in Flash and Succor > Flash Tutorials > Text: Add Quotation to a Document. 1. 2. Click the Pencil implement in the Tools panel. Click the Stroke varnish box in the Tools panel varnishs area, and valuable any varnish exclude stainless. Bring environing the Stage, outbcommand releasing the mouse, to inhale a outline. You’ve produced Flash satisfied. Your perfect instrument procure be abundantly further solemn. Captivate a outing of the user interface 15 Untie varys Flash can untie a course of varys to your instrument. You’ll untie the arteffort that you proper produced. . To see the untie characteristic in enjoyment, primitive unreserved the History panel (Window > Other Panels > History). The Pencil implement answers in the panel, owing using the implement was your terminal enjoyment. 2. Do one of the subjoined: ¦ ¦ Valuable Edit > Untie Pencil Tool. Crowd Control+Z (Windows) or Command+Z (Macintosh). Your scribbles disanswer from the Stage. The History panel now pomps a dimmed Pencil implement, which indicates the untie enjoyment was produced. Flash, by lapse, is set to untie 100 of your varys, in contrariety ordain of deed. You can vary the lapse contrast in Preferences. To vary your allusions, see “Setting electences in Flash” in Getting Established delay Flash. 3. To cease the History panel, click the pop-up menu in the upper-straight recess of the panel and valuable Cease Panel. Conception the Timeoutsuccession Proper aggravatehead the Stage, you see the Timeoutsuccession and flakes. You can produce and call flakes, and then add satisfied to compels on flakes to adprobe how your Flash satisfied embodys as the embodyhead affects counter the compels. ¦ Affect the mouse toper aggravate the area that disjoineds the Stage from the Timeline. When the resizing discuss answers, bring up or down subordinately to relargeness the Timeoutsuccession as expedient. Playhead Keycompel Resizing discuss 16 Basic Tasks: Produce a Instrument The embodyhead (the red indicator outline) is on Compel 1 in the Timeline. The keyframes are artfulnessated by inferior circles in the compels, which are growed, indicating there’s satisfied in those compels. You can add a keycompel to a instrument when you omission the Flash satisfied to vary in some way in that compel. Vary elucidation and Stage abundantness The Stage collects a preconception of how your Flash satisfied procure answer in your proclaimed rasp. You’ll vary the abundantness of the Stage to adjudicate arteffort prepared for a abundantr Stage, and you’ll vary the elucidation varnish of the Stage. . 2. In the Tools panel, click the Selection implement. On the Stage, click anywhere in the complexionless effortspace that surrounds the Stage, or on the elucidation area of the Stage, so that no intents are valuableed. The Property director, subordinate the Stage, ostentations properties for the instrument when no intents are valuableed. 3. To vary the Stage elucidation varnish, click the Elucidation varnish box and valuable a capricious obscure of complexionless, such as complexionless delay the hexadecimal esteem of #CCCCCC. To vary the Stage abundantness, click Largeness in the Property director. In the Instrument Properties dialog box, invade 750 for the Stage width, and then click OK. The Stage resizes to 750 pixels distant. 4. Vary elucidation and Stage abundantness 17 Vary your conception of the Stage You can vary your conception of the Stage outbcommand forcible the excrowd Stage abundantness of your instrument. 1. In the Stage Conception quotation box, aggravatehead the straight bcommand of the Stage, invade 500%. Then crowd Invade (Windows) or Requite (Macintosh). Your conception of the Stage diffuses to 500%. In the Stage Conception pop-up menu, which you arrival by clicking the lead to the straight of the quotation box, valuable 100% to conception the Stage in magnitude that harmonize to the abundantness of the proclaimed Flash satisfied. 2. Conception the Library panel Flash satisfied that you meaning or that is a letter is stored in your Library panel. To gather further encircling letters and promptings, valuable Succor > Flash Tutorials > Basic Tasks: Produce Symbols and Instances. ¦ To conception the Library panel, valuable Window > Library. We’ve alresponsive meaninged library compatability and produced letters for intents that you’ll use in this precept. Flash too comprises a library of pins that you can use in your instrument. To conception this library, succeeding meaningation this precept, valuable Window > Niggardly Libraries and valuable the Buttons library. N OT E 18 Basic Tasks: Produce a Instrument Add forcibles to the Stage To add library compatability to your instrument, you establish that you’re adding the intent to the redress flake, and then bring the disunite from the Library panel to the Stage. 1. In the Timeline, click the Satisfied flake call to valuable that flake. Delay the Selection implement valuableed, bring the Denomination movie curtail, which comprises a bitmap representation and vector forcible, from the Library panel to the Stage and align it on top of the complexionless bar at the top of the Stage that comprises the command Title. In Flash, you can effort delay bitmap representations, which portray forcibles using pixels, and vector art, which uses matter-of-event regift to portray art. For further heed, see “About vector and bitmap forcibles” in Using Flash. 2. Delay the Satisfied flake tranquil valuableed, bring the quotation letter from the Library panel to Stage, and align it delay the Trio ZX2004 quotation that’s alresponsive in assign as a direct. You can use your keyboard arrow keys to nudge the quotation into assign. The denomination quotation is expressly a forcible produced from quotation. Add video The Library panel includes an meaninged Flash video rasp (FLV). You’ll add the video to your instrument, and Flash procure add the expedient compels to embody the video. To gather further encircling using video in Flash, see “Working delay Video” in Using Flash. 1. Establish that the Satisfied flake is tranquil valuableed in the Timeline. From the Library panel, bring the ggb_movie_for_trio_new video to the sombre complexionless Video direct on the Stage. A dialog box answers that indicates Flash procure add 138 compels to the Timeoutsuccession for the video. Click Yes. Bring the embodyhead counter the Timeoutsuccession to conception the video. 2. 3. Add video 19 Conception intent properties When you add an intent to the Stage, you can valuable it, and then conception and vary its properties in the Property director. The pattern of intent valuableed determines which properties answer. For pattern, if you valuable a quotation intent (not a quotation forcible, which you use in this precept), the Property director ostentations contrasts such as font, pattern abundantness, and individuality produceatting, which you can either conception or vary. If no intent is valuableed, the Property director ostentations properties for the full instrument. 1. On the Stage, delay the Selection implement valuableed, click the Denomination forcible. The Property director (Window > Properties > Properties) pomps localations, such as top, width, and Stage coordinates, for the movie curtail. 2. . On the Stage, click the inclopositive box for the video movie curtail that you bringged to the Stage and conception its attributes in the Property director. In the Prompting Call quotation box of the Property director, invade video as the prompting call. An prompting is an occurance of a letter on the Stage. Owing ActionScript, the Flash scripting conversation, constantly refers to prompting calls in ordain to perproduce operations on promptings, it is a good-tempered-tempered-natured-natured experience to call the promptings you produce. To gather further encircling naming promptings, see the tutorial: “ActionScript: Transcribe Scripts” on page 225. NO TE Add video lead forces Behaviors let you add complicated capacityality to your instrument amply, outbcommand having to perceive ActionScript, the Flash scripting conversation. You’ll now add forces for video lead. 1. 2. In the Timeline, click Compel 1 of the Satisfied flake to valuable it, if it’s not alresponsive valuableed. On the Stage, click the Embody movie curtail prompting (which contemplates enjoy a embody pin) to valuable it. In the Behaviors panel (Window > Behaviors), click Add (+) and valuable Embedded Video > Play. To gather further encircling letters and promptings, valuable Succor > Flash Tutorials > Basic Tasks: Produce Symbols and Instances. 20 Basic Tasks: Produce a Instrument . In the Embody Video dialog box, establish that Relative is valuableed. Valuable video, which is the prompting call that you gave to the video curtail, and click OK. 4. 5. 6. 7. 8. On the Stage, click the Pause movie curtail prompting to valuable it. In the Behaviors panel, click Add (+) and valuable Embedded Video > Pause. In the Pause Video dialog box, again valuable the video movie curtail, and click OK. On the Stage, click the Rewind movie curtail prompting to valuable it. In the Behaviors panel, click Add (+) and valuable Embedded Video > Rewind. In the Rewind Video dialog box, valuable Video. In the Number of Frames to Stalk Tail quotation box, invade 20. The Number of Frames to Stalk Tail quotation box indicates how abundant compels the embodyhead should affect tail when the user clicks the Rewind pin. Affixed video lead forces let you fast-forward, screen, and pomp a video. N OT E Add video lead forces 21 Use the Movie Explorer to conception the instrument edifice The Movie Explorer succors you group, dispose, and edit instrument. Delay its clerical tree edifice, the Movie Explorer collects heed encircling the erection and run of a instrument. 1. Valuable Window > Movie Explorer. If expedient, diffuse the Movie Explorer to conception the tree edifice amid the pane. The Movie Explorer filtering pins disembody or screen heed. 2. Click the pop-up menu in the denomination bar of the Movie Explorer, and valuable Pomp Movie Elements and Pomp Letter Definitions, if they’re not alresponsive valuableed. Constatue the filtering pins, concurrently the top of the Movie Explorer, so the singly ones valuableed are Pomp Buttons, Movie Clips, and Graphics; Pomp Enjoyment Scripts; and Pomp Video, Sounds, and Bitmaps. If you affect your mouse toper aggravate a pin, a implementtip ostentations the call of the pin. Inspect the catalogue to conception some of the effects intervening in the instrument, and to see their elationship to other effects. 3. 4. In the Movie Explorer pane, diffuse Actions for Embody to conception ActionScript that Flash produced when you ascititious the Embody video lead force. To cease the Movie Explorer, click its cease box. 5. 22 Basic Tasks: Produce a Instrument Examination the instrument As you constructor a instrument, you should spare and examination it constantly to secure the Flash satisfied embodys as expected. When you examination the SWF rasp, click the video lead pins to see if the video plugs, embodys, and rewinds as expected. 1. Spare the instrument (File > Save) and valuable Lead > Examination Movie. The Flash satisfied embodys in a SWF rasp window. Although . fla is the production for instruments in the constructoring environment, . swf is the production for examinationed, ship-produceed, and proclaimed Flash satisfied. 2. When you terminate conceptioning the SWF satisfied, cease the SWF rasp window to requite to the constructoring environment. Perceive succor The precepts collect an portico to Flash, and propose ways that you can use characteristics to produce correspondently the bark of instrument required. For embracing heed encircling a characteristic, course, or course portrayd in the precepts, see the Succor tab of the Succor panel (Help > Flash Help). Summary Congratulations on creating a Flash instrument that includes forcibles, a video, and video lead forces. In a few minutes, you gathered how to conclude the subjoined: ¦ ¦ ¦ ¦ ¦ ¦ ¦ Outing the user interface Dock and untieck panels Vary the elucidation and Stage abundantness Vary your conception of the Stage Conception your instrument library Add forcibles to the Stage Add video Summary 23 ¦ ¦ ¦ ¦ ¦ Conception intent properties Add video lead forces Use the Movie Explorer to conception the instrument edifice Examination the instrument Perceive succor To gather further encircling Flash, captivate another precept. 4 Basic Tasks: Produce a Instrument CHAPTER 2 Basic Tasks: Creating a flag, Part-among 1 Macroinstrument Flash Basic 8 or Macroinstrument Flash Professional 8 can answer enjoy a very complicated programs to gather. One discuss for this answering complicatedity is that you can use it for so abundant opposed things, such as cartoon cheerfulnesss, instrument embodyers, and enigmatical software. This tutorial is seemly for you if you're unreserveding Flash 8 for the primitive span. This tutorial pomps you some of the tenorant aspects of the program, and how to get rouseed using them to set-up a genuine contrivance. You don't demand to perceive everything encircling Flash or cheerfulness to thorough this tutorial; in equalt, you'll discaggravate how indulgent it is to rouse using Flash 8 to add elements to your web pages. This is Part-among 1 of a three-part-among tutorial on how to set-up a ultimate vivacious flag in Flash and add it to a web page using Macroinstrument Dreamweaver. You'll gather how to produce a rasp and differ its contrasts, meaning and add forcibles to the Stage from the library, and produce flakes in Part-among 1. In Part-among 2 and Part-among 3, you'll add an cheerfulness and produce a pin that unreserveds a browser window. Then you'll individualize proclaim contrasts, and add the flag to a web page. “Basic Tasks: Creating a flag, Part-among 1” on page 25: You gather how to produce and edifice the flag collision. “Basic Tasks: Creating a flag, Part-among 2” on page 43: You gather how to add cheerfulness, produce a pin, and transcribe basic scripts. “Basic Tasks: Creating a flag, Part-among 3” on page 63: You gather how to proclaim your SWF rasp, and introduce the rasp into a Dreamweaver website. You do not demand any prerequiseat perceivelplane to thorough these tutorials. 2 25 In Part-among 1 of this tutorial, you procure thorough the subjoined underneathtakings: Inspect the thoroughd FLA rasp. . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Creating a new instrument. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Changing instrument properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 Importing forcibles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Introducing flakes and the spanline. . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Examination the collision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 The tutorial effortrun includes the subjoined underneathtakings: “Examine the thoroughd FLA rasp” on page 27 lets you conception the thoroughd Flash instrument. “Creating a new instrument” on page 29 pomps you how to produce a FLA rasp that you’ll use to produce the flag throughout the three segregate-amongs of this tutorial. “Changing instrument properties” on page 30 pomps you how to vary the magnitude of your SWF rasp. “Importing forcibles” on page 33 pomps you how to meaning effects into your instrument’s library. “Introducing flakes and the spanline” on page 36 pomps you how to produce and discuss flakes in the deep Timeline. Examination the collision” on page 40 pomps you how to ship-produce and examination your instrument’s SWF rasp, which lets you examination your speed so far. ¦ ¦ ¦ ¦ ¦ 26 Basic Tasks: Creating a flag, Part-among 1 Inspect the thoroughd FLA rasp As you inspect the perfect account of an collision that you’ll produce, you’ll too contemplate at the Flash effortspace. In this individuality, you procure thorough the subjoined underneathtakings: ¦ ¦ ¦ “Open the constructoring instrument” on page 163 “Reconception the thoroughd FLA rasp” on page 28 “C facilitate the thoroughd FLA rasp” on page 28 In after individualitys you’ll go through the stalks to produce the collision yourself rouseing delay a stigma new FLA rasp. Open the perfect FLA rasp It’s succorful to criticise the thoroughd constructoring instrument, which is a FLA rasp, to see how the constructor prepared the collision. You should inspect what barks of scripts were used to add interactivity, and subordinatestand what you are going to produce. The rasps for this tutorial are disposed in the Samples and Tutorials folder in the Flash installation folder. For abundant users, segregate-amongicularly in educational contrasts, this folder is unravel-only. Antecedently performance delay the tutorial, you should portraiture the full FlashBanner tutorial folder to the writable subsidence of your valuable. On most computers, you procure perceive the Flash Flag tutorial folder in the subjoined subsidences: ¦ In Windows: boot driveProgram FilesMacromediaFlash 8Samples and TutorialsTutorial AssetsBasic TasksFlashBanner. On the Macintosh: Macintosh HD/Applications/Macroinstrument Flash 8/ Samples and Tutorials/Tutorial Assets/Basic Tasks/FlashBanner/. ¦ Portraiture the FlashBanner folder to another subsidence on your flinty disk to which you entertain arrival. Inbcommand this folder are three directories for each segregate-among-among of this tutorial: Part1, Part2, and Part3. In the FlashBanner/Part1 folder, you procure perceive a Flash rasp designated flag1_complete. fla. Double-click the rasp to unreserved it in Flash. You now see the thoroughd tutorial rasp in the Flash constructoring environment. Inspect the thoroughd FLA rasp 27 Reconception the thoroughd FLA rasp In the thoroughd FLA rasp, you procure see the edifice that fashions up the perfect SWF rasp for Part-among 1 of this tutorial. The collision, a Flash flag for a gnome website, contemplates enjoy this at the end of Part-among 1: The thoroughd flag at the end of Part-among 1. By the end of Part-among 3 of this tutorial, you procure add the forcibles, cheerfulness, and interactivity to the flag. Then, you’ll introduce the flag on a webseat using Dreamweaver. Cease the thoroughd FLA rasp To cease the instrument, valuable Rasp > Close. If you elect to support the perfect rasp unreserved as a allusion period efforting delay your flag rasp, be prudent not to edit it or spare any varys to it. Now you’re unravely to rouse creating your own flag rasp in the instant individuality, “Creating a new instrument”. 28 Basic Tasks: Creating a flag, Part-among 1 Creating a new instrument You can produce all barks of opposed elements for the web or for CD-ROMs and pomps using Flash 8. First, you produce a rasp in the Flash constructoring implement, which you use to output SWF rasps. SWF rasps are the rasps that you can put onoutsuccession when you embed it in a web page. The Macroinstrument Flash Pflake plug-in then ostentations the SWF rasp, so your webseat visitors can conception or interact delay the satisfied. Your SWF rasp can comprise video, MP3 investigate, cheerfulnesss, representations, equalts, and so forth. The good-tempered-tempered-tempered of using an SWF rasp aggravate other produceats is that the Flash Pflake plug-in is incredibly niggardly. Let's rouse set-uping a flag. 1. Unreserved the Flash collision. By lapse, Flash ostentations the Rouse Page (see the subjoined statue), which enables you to valuable a recently edited instrument, produce a new Flash instrument or ActionScript rasp, or produce a new instrument using a pre-built template. If you use Flash Professional 8, you can produce affixed barks of rasps. By lapse, Flash ostentations the Rouse Page when it’s rouseed. This statue pomps the options beneficial in Flash Professional 8. Creating a new instrument 29 2. Click Flash Instrument from the Produce New shaft on the Rouse Page to produce a bare instrument. If Flash doesn’t disembody the Rouse Page (the characteristic agency entertain been disabled prior if you divide a computer) you can valuable Rasp ; New from the deep menu to produce a new instrument. Fashion positive the General tab is locomotive, valuable Flash instrument, and click OK. 3. 4. NO T E NO TE Select Rasp ; Spare As from the deep menu. Call the rasp flag. fla, perceive or produce a new directory to spare your contrivance in, and click Spare when you're done. Flash spares editable instruments as FLA rasps. From the FLA rasp, you ship-produce (or entice-up) SWF rasps that you can embed in an HTML page. Flash Player, based on most computers, embodys the SWF rasps that you ship-produce from Flash. It's a good-tempered-tempered-natured-natured conception to spare a new instrument when you rouse efforting delay it (and constantly thereafter) so you don't facilitate any of your flinty effort. Succeeding you terminate frugal the rasp, yields to the subjoined employment, “Changing instrument properties”. Changing instrument properties At this top you're contemplateing at a bare canvas concealed by abundant leads (see the instant statue). The abundant stainless clear is designated the Stage, and it's where you assign effects you omission to disembody in the SWF rasp, such as representations, pins, quotation, or cheerfulnesss. The Stage and panels are commsingly designated the Flash effortspace or constructoring environment. The Flash environment consists of the Stage and a multiformity of panels, implements, and the Timeoutsuccession aggravatehead the Stage. For biased heed on each segregate-among-among of the effortspace, see “Take a outing of the user interface” on page 14. 0 Basic Tasks: Creating a flag, Part-among 1 Environing the Stage you see a multiformity of panels. The panel on the left is designated the Tools panel (see the subjoined statue). This panel includes implements you can use to produce and differ instruments, such as implements you use to inhale and fashion valuableions. Use the Tools panel to inhale and fashion valuableions. You use the Selection implement (the sombre arrow) to fashion valuableions in these tutorials. A panel nigh the floor of the Flash collision is denominationd Properties. (Select Window > Properties > Properties if you don't see the panel. This panel is designated the Property director (see the subjoined statue). This panel lets you vary ununmistakable properties of whatever is runningly valuableed in your instrument (such as an representation or a compel), or set properties for the full SWF rasp (such as the compel admonish or magnitude). For heed on leadling the compel admonish of a instrument, see “Change the compels per avoid urge” on page 159. Changing instrument properties 31 If you don't entertain any intents or compels valuableed, the Property director allows you to differ properties for the instrument itself. 1. Open the Property director (Window > Properties > Properties) and click the pin instant to the quotation that says Largeness to unreserved the Instrument Properties dialog box. Fashion positive that you don’t entertain a compel valuableed. Click the Stage if you do not see the pin mentioned in the preceding stalk. NO T E NO T E Click this pin in the Property director to unreserved the Instrument properties dialog box. You can then vary the abundantness and varnish of the Stage. The pin ostentations the running magnitude of the FLA rasp (550 x 400 pixels). By lapse the Stage abundantness in a new Flash instrument is 550 pixels distant by 400 pixels tall. When you click Size, you unreserved a dialog box where you can vary diverse instrument-distant properties (such as the Stage magnitude, varnish, and instrument compel admonish). 2. Pattern 160 into the Width quotation box, and 600 into the Top quotation box. When you pattern new esteems into these quotation boxes, you relargeness the magnitude of your FLA rasp. You demand to use these local magnitude owing you're creating a flag and you should use a gauge flag abundantness. In this tutorial, you're creating a "distant skyscraper. " For a catalogue of gaugeized flag abundantnesss, bridle out the Interlocomotive Advertising Bureau's page on Interlocomotive Marketing Units at www. ab. net/ gauges/adunits. asp. You can too produce flags from a Macroinstrument template by valuableing Rasp ; New from the deep menu. Valuable the Templates tab and valuable the Advertising predicament. 32 Basic Tasks: Creating a flag, Part-among 1 3. Click OK when you terminate invadeing the new magnitude to requite to the constructoring environment. When you requite to the constructoring environment, heed how the magnitude of your instrument vary. You can too vary the running instrument's elucidation varnish and compel admonish straightway in the Property director, outbcommand going to the Instrument Properties dialog box. You'll perceive heed encircling compel admonish in Part-among 2 of this tutorial, “Basic Tasks: Creating a flag, Part-among 2” on page 43. 4. Valuable Rasp ; Spare to spare the instrument antecedently you yields to the instant individuality (“Importing forcibles”). Importing forcibles When you effort delay Flash, you'll constantly meaning effects into a instrument. Perhaps you entertain a society logo, or forcibles that a artfulnesser has granted for your effort. You can meaning a multiformity of effects into Flash, including investigate, video, bitmap representations, and other forcible produceats (such as PNG, JPEG, AI, and PSD). Imported forcibles are stored in the instrument's library. The library stores twain the effects that you meaning into the instrument, and letters that you produce amid Flash. A letter is a vector forcible, pin, font, equaltor, or movie curtail that you produce uniformly and can reuse multiple spans. So you don’t entertain to inhale your own forcibles in Flash, you can meaning an representation of a pre-drawn gnome from the tutorial commencement rasp. Antecedently you yields, fashion positive that you spare the commencement rasps for this tutorial as portrayd in “Open the perfect FLA rasp”, and spare the representations to the harmonizeing directory as your flag. la rasp. 1. Valuable Rasp ; Meaning ; Meaning to Library to meaning an representation into the running instrument. Importing forcibles 33 You'll see the Meaning dialog box (see the subjoined statue), which enables you to browse to the rasp you omission to meaning. Browse to the folder on your flinty disk that comprises an representation to meaning into your Flash instrument. 2. 3. Ramble to the directory where you spared the tutorial’s commencement rasps, and dispose the bitmap representation spared in the FlashBanner/Part1 directory. Valuable the gnome. png representation, and click Unreserved (Windows) or Meaning (Macintosh). The representation is meaninged into the instrument's library. You can bring effects from the library onto the Stage diverse spans if you omission to see diverse promptings of the artwork. Your rasp abundantness doesn't growth if you use diverse promptings on the Stage. The SWF rasp singly stores the heed of the former letter or asset from the library, and treats each prompting enjoy a counterfeit.. 4. NO T E Valuable Window > Library to unreserved the Library panel. You'll see the representation you proper meaninged, gnome. png, in the instrument's library. 5. Valuable the meaninged representation in the library and bring it onto the Stage. Don't fret encircling where you put the representation on the Stage, owing you'll set the coordinates for the representation after. When you bring colossus onto the Stage, you procure see it in the SWF rasp when the rasp embodys. 34 Basic Tasks: Creating a flag, Part-among 1 6. Click the Selection implement, and valuable the prompting on the Stage. If you contemplate at the Property director you'll heed that you can differ the representation's width and top, as well-mannered-mannered as the representation's X and Y aspect on the Stage. When you valuable an intent on the Stage, you can see and differ the running coordinates in the Property director (see the subjoined statue). The X and Y coordinates equal the registration top, which is the upper left recess of this movie curtail letter. 7. Pattern 0 into the X quotation box, and pattern 0 into the Y quotation box. Typing these esteems in sets the X and Y coordinates twain to 0, as pompn in the subjoined statue. Set the X and Y coordinates using the Property director. Set the X and Y esteems to 0. Importing forcibles 35 Contrast new coordinates affects the upper-left recess of the representation to the upper-left recess of the Stage. You can bring the bitmap representation environing the Stage using the Selection implement instead of changing coordinates in the Property director. Use the Property director when you demand to set a local aspect for an intent, enjoy you did in this stalk. 8. Valuable Rasp ; Spare to spare the instrument antecedently you yields to the instant individuality (“Introducing flakes and the spanline”). You can too meaning investigate rasps into your FLA rasps. This isn't dressed in this tutorial, but you can perceive out further heed Chapter 12, “Working delay Sound”. N OT E Introducing flakes and the spanoutsuccession The Timeoutsuccession is aggravatehead the Stage in the Flash effortspace. The Timeline, which comprises flakes and compels, succors you adprobe effects in your instrument, and too leads a instrument's satisfied aggravate span. Flash instruments can embody aggravate a elongation of span, enjoy movies or investigate, which is measured using compels. Layers are enjoy transparencies that stack on top of one another, and each flake can comprise representations, quotation, or cheerfulnesss that disembody on the Stage. You'll gather further encircling compels and the Timeoutsuccession in Part-among 2 of this tutorial, “Basic Tasks: Creating a flag, Part-among 2” on page 43. The FLA rasp you're efforting on has one flake (Layer 1) delay satisfieds on a disjoined compel (Frame 1). This is the lapse way that a Flash instrument unreserveds. In this employment, you lock and recall Flake 1. Often you'll omission to assign intents in a segregate-amongicular aspect on the Stage. To succor you support those intents in assign, Flash enables you to lock flakes, so you cannot valuable the compatability on a flake and accidentally affect them. 36 Basic Tasks: Creating a flag, Part-among 1 In this individuality, you procure thorough the subjoined underneathtakings: ¦ ¦ “Creating a new flake” on page 38 “Importing to a flake” on page 39 Valuable Flake 1 in the Timeoutsuccession and click the dot underneath the lock icon, as pompn in the subjoined statue. 1. Lock a flake so its satisfieds aren’t accidentily affectd or deleted from the Stage. You can too proccurrence inadvertently adding other effects to that flake. Delay your singly flake locked, you demand to add new flakes antecedently you can add any other intents to the Stage. You cannot add new intents to a locked flake. 2. Valuable the Selection implement in the Tools panel, and double-click the call Flake 1. When you double-click a flake call, you can differ the call of the flake. 3. Pattern elucidation into the flake call to recall the flake. Then spare your rasp. When you rouse set-uping contrivances delay abundant flakes, flake calls enjoy Flake 1 and Flake 14 don't succor you determine what's on that flake. Giving flakes a described call is a good-tempered-tempered-natured-natured experience to unite. 4. Valuable Rasp > Spare antecedently you yields to the instant employment (“Creating a new flake”). You can too adprobe flakes into flake folders. For further heed, see “Organize flakes in a folder” on page 94. N OT E Introducing flakes and the spanoutsuccession 37 Creating a new flake In proper encircling any Flash contrivance where you use meaninged forcibles and cheerfulness, you'll demand to produce at lowest a few flakes. You demand to sepaadmonish assured elements onto their own flakes, segregate-amongicularly when you rouse to incite intents. You can too stack forcibles on top of each other, and equal produce a perception of profundity or aggravatelapping by using multiple flakes. 1. Valuable the elucidation flake on the Timeline, and click Introduce Flake to produce a new, void flake. The new flake is produced aggravatehead the elucidation flake (see the subjoined statue). Click Introduce Flake to introduce a new flake aggravatehead the runningly valuableed flake. 2. 3. Double-click the call of the new flake so the flake's call becomes editable. Pattern cheerfulness to recall the new flake. Graphics on the Stage stack according to the flakes on the Timeline. For pattern, everything that you put on the cheerfulness flake procure answer aggravatehead the representation on the elucidation flake. You procure add cheerfulness to this avoid flake in Part-among 2 of this tutorial. 4. Valuable Rasp > Spare antecedently you yields to the instant employment (“Importing to a flake”). If you demand to readprobe your flakes you can use the Selection implement to valuable and then bring a flake aggravatehead or underneath other flakes on the Timeline. N O TE 38 Basic Tasks: Creating a flag, Part-among 1 Importing to a flake In an prior employment, “Importing forcibles”, you meaninged the gnome. png representation straightway into the instrument's library. Then you bringged the representation onto a valuableed flake on the Stage. You can too meaning effects straightway to the Stage instead of into the library. Primitive you demand to valuable the compel into which you omission to meaning the representation on the Timeline. Then you can meaning the representation onto that compel, which ostentations on the Stage. You use this technique to meaning an representation in the subjoined employment. 1. Valuable compel 1 of the cheerfulness flake. You demand to meaning colossus. png representation to the cheerfulness flake. Valuable Rasp ; Meaning ; Meaning to Stage. The Unreserved dialog box answers where you can valuable an representation from your flinty disk. Find the folder of this tutorial's commencement rasps on your flinty disk. 2. 3. Valuable colossus. png in the tutorial's commencement rasps, and click Unreserved (Windows) or Meaning (Macintosh). The representation meanings to the cheerfulness flake (see the subjoined statue), and then it answers on the Stage. The representation meanings to the compel on the flake that you valuable on the Timeline. You procure gather further encircling the Timeoutsuccession and flakes in Part-among 2 of this tutorial, “Basic Tasks: Creating a flag, Part-among 2” on page 43. 4. Unreserved the Library panel (Window ; Library). The representation you proper meaninged to the Stage too answers as an asset in the library. Even if you meaning an asset straightway to the Sta