MACROMEDIA FLASH 8-FLASH Specifications Page 1

Browse online or download Specifications for Software manuals MACROMEDIA FLASH 8-FLASH. MACROMEDIA FLASH 8-FLASH Specifications User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 290
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 2

10 Contents

Page 3 - Contents

100 Basic Tasks: Create an ApplicationAdd and name a Button componentComponents are movie clips that offer an easy way of adding advanced functionalit

Page 4 - 4Contents

Declare variables and values for the prices 101Declare variables and values for the pricesFor your application to multiply the quantity of parts selec

Page 5 - Contents 5

102 Basic Tasks: Create an ApplicationSpecify values for input text fieldsYou must specify values for the input text fields. You’ll use the values whe

Page 6 - 6Contents

Write a function 103Write a functionA function is a script that you can use repeatedly to perform a specific task. You can pass parameters to a functi

Page 7 - Contents 7

104 Basic Tasks: Create an ApplicationWrite an event handler for the componentFor your SWF file to react to events such as a mouse click, you can use

Page 8 - 8Contents

Summary 105When you finish, your script should appear as follows:on(click) { with(_parent){priceTotal_txt.text = Number (price1_txt.text) + Number (pr

Page 9 - Contents 9

106 Basic Tasks: Create an Application

Page 10 - 10 Contents

1078CHAPTER 8Basic Tasks: Use Layout ToolsMacromedia Flash Basic 8 and Macromedia Flash Professional 8 offer a variety of ways to place objects on the

Page 11 - Introduction

108 Basic Tasks: Use Layout ToolsSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to use an optimal lay

Page 12 - 12 Introduction

Change the Stage size 1094. Ensure that you have Snap to Guides turned on by selecting View > Snapping > Snap to Guides.5. In the Tools panel, c

Page 13 - Document

11IntroductionThis part of Flash Help includes several step-by-step tutorials, designed to teach you the fundamentals of Flash. Macromedia recommends

Page 14 - FLA files for your reference

110 Basic Tasks: Use Layout ToolsResize objects to match the Stage sizeWhen you changed the Stage size, art on the Stage extended off the Stage and in

Page 15

Align an object using the alignment guides 111Specify snap alignment settingsSnapping offers a way of precisely placing an object on the Stage by havi

Page 16 - View the Timeline

112 Basic Tasks: Use Layout Tools5. While keeping the car centered with the body text (you should continue to see the center alignment guide), drag th

Page 17 - Change background and Stage

Snap objects to each other 113Snap objects to each otherYou can snap objects on the Stage to other objects on the Stage, thereby setting the alignment

Page 18 - View the Library panel

114 Basic Tasks: Use Layout ToolsAlign objects using the Property inspectorThe Property inspector lets you precisely align objects on the x and y Stag

Page 19 - Add video

Summary 115Align objects using the grid and arrow keysYou can use the grid to assist you in placing objects on the Stage.1. Select View > Grid >

Page 20 - Add video control behaviors

116 Basic Tasks: Use Layout Tools

Page 21

1179CHAPTER 9Basic Tasks: Create Symbols and InstancesA symbol is a reusable object, and an instance is an occurrence of a symbol on the Stage. Repeat

Page 22

118 Basic Tasks: Create Symbols and InstancesSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to use an

Page 23 - Find help

Create a graphic symbol 119Create a graphic symbolA graphic symbol is well suited for repeated use of static images, or for creating animations associ

Page 25 - Basic Tasks: Creating a

120 Basic Tasks: Create Symbols and InstancesDuplicate and modify an instance of a symbolAfter you’ve created a symbol, you can use instances of it re

Page 26

Modify a symbol 121Modify a symbolYou can enter symbol-editing mode by double-clicking any instance of a symbol. Changes that you make in symbol-editi

Page 27 - Open the finished FLA file

122 Basic Tasks: Create Symbols and InstancesCreate a movie clip symbolA movie clip symbol is analogous in many ways to a document within a document.

Page 28

Summary 123Add an effect to the movie clipYou can create an animation within a movie clip Timeline, in symbol-editing mode, that plays independent of

Page 29 - Creating a new document

124 Basic Tasks: Create Symbols and Instances

Page 30 - Changing document properties

12510CHAPTER 10Basic Tasks: Add Button Animation and Navigation A button is a symbol that contains special frames for different button states, such as

Page 31

126 Basic Tasks: Add Button Animation and NavigationSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to

Page 32

Name a button instance 127Create a button from grouped objectsYou can create buttons from text and graphics, including bitmap images and grouped objec

Page 33 - Importing graphics

128 Basic Tasks: Add Button Animation and NavigationView the hit area by enabling buttonsWhen the Enable Simple Buttons feature is active, you can vie

Page 34

Align buttons 1293. Select the Hit frame (Frame 4) of the Hit Area layer in the BTNLogo Timeline, and press F6 to add a keyframe.4. In the Tools panel

Page 35 - Importing graphics 35

131CHAPTER 1Basic Tasks: Create a DocumentYou’re about to experience the power of Macromedia Flash Basic 8 and Macromedia Flash Professional 8. You’ll

Page 36 - Introducing layers and the

130 Basic Tasks: Add Button Animation and Navigation7. Using the Selection tool, drag to select all three buttons. 8. Open the Align panel by selectin

Page 37

Add an action to a button 1317. With the playhead still on Frame 15, select the button shape on the Stage, and in the Property inspector select a brig

Page 38 - Creating a new layer

132 Basic Tasks: Add Button Animation and NavigationAdd navigation to a buttonWith behaviors, you can quickly add navigation to a button without havin

Page 39 - Importing to a layer

Summary 133Test the SWF fileYou’ll test your document to view the button animation and see if the navigation works as expected.1. Save your document a

Page 40

134 Basic Tasks: Add Button Animation and Navigation

Page 41 - Summary 41

13511CHAPTER 11Basic Tasks: Create a Presentation with Screens (Flash Professional Only)Flash Professional 8 offers a new way to create presentations

Page 42

136 Basic Tasks: Create a Presentation with Screens (Flash Professional Only)Set up your workspaceFirst, you’ll open the start file for the lesson and

Page 43

View the screen hierarchy and screen Timelines 137View the screen hierarchy and screen TimelinesYou add content to screens in much the same way that y

Page 44

138 Basic Tasks: Create a Presentation with Screens (Flash Professional Only)2. In the Screen Outline pane, select the presentation screen. All slide

Page 45

Add content to a presentation slide 139Add content to a presentation slideYou’ll add navigation buttons to the presentation slide so that the buttons

Page 46 - Adding text

14 Basic Tasks: Create a DocumentTake a tour of the user interfaceFirst, you’ll open the starting FLA file that you’ll use to complete this lesson. Ea

Page 47 - Adding text 47

140 Basic Tasks: Create a Presentation with Screens (Flash Professional Only)Add screen navigation behaviors to buttonsWhen you open a new Flash Slide

Page 48

Select and move slides 141Add and name a slideYou can easily add slides to your presentation using the context menu in the Screen Outline pane.1. In t

Page 49 - Creating a symbol

142 Basic Tasks: Create a Presentation with Screens (Flash Professional Only)Add content to a new slideThe features slide, as a child of the presentat

Page 50

Summary 1434. To add the Fly behavior, verify that the features slide is still selected. In the Behaviors panel, click Add (+) and select Screen >

Page 51

144 Basic Tasks: Create a Presentation with Screens (Flash Professional Only)

Page 52

14512CHAPTER 12Creating Graphics: Draw in FlashWhen you draw in Flash, you create vector art, which is a mathematical representation of lines, curves,

Page 53

146 Creating Graphics: Draw in FlashSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to use an optimal

Page 54

Draw a polygon 1473. Click anywhere in the gray workspace beside the Stage to display properties for the shape you’ll create. In the Property inspecto

Page 55

148 Creating Graphics: Draw in FlashRotate the shapeAfter you’ve created a shape, you can use the Transform panel to specify a precise number of degre

Page 56 - Creating a button

Copy strokes 1493. In the Tools panel, click the Selection tool. On the Stage, click within the circle, and press Backspace or Delete.Transform the sh

Page 57 - Creating a button 57

Take a tour of the user interface 15Select panel sets and arrange panelsThe Default Workspace Layout panel set arranges your workspace in a way that f

Page 58

150 Creating Graphics: Draw in Flash3. Press Shift+Alt and drag down slightly to drag a copy of the three lines, as in the following illustration:Draw

Page 59 - Writing simple actions

Create a logo with the Pen tool 151Group the shapeYou can manipulate the stroke and fill of a shape as separate entities, as you did earlier, or you c

Page 60

152 Creating Graphics: Draw in Flash5. With the Selection tool, move the pointer around the logo that you created. When you move the pointer over a co

Page 61

15313CHAPTER 13Creating Graphics: Create a Timeline AnimationMacromedia Flash Basic 8 and Macromedia Flash Professional 8 provide powerful tools for c

Page 62 - ■ Write ActionScript

154 Creating Graphics: Create a Timeline AnimationSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to u

Page 63

Create a motion tween 155Create a motion tweenYou create a motion tween by defining properties for an instance, a grouped object, or text in a startin

Page 64

156 Creating Graphics: Create a Timeline Animation7. In the TireAnim layer, select any frame between Frames 2 and 14. In the Property inspector, selec

Page 65 - Open the finished project

Copy and paste keyframes in an animation 1575. If the Color Mixer is not already open, select Window > Color Mixer to open it, and change the Alpha

Page 66 - Close the completed project

158 Creating Graphics: Create a Timeline Animation4. Select the transformation center point (the small circle near the center of the movie clip) and d

Page 67 - Considering your audience

Change the speed of the animation 159Change the frames per second speedThe frame rate, measured in frames per second (fps) is the speed at which the a

Page 68

16 Basic Tasks: Create a DocumentUndo changesFlash can undo a series of changes to your document. You’ll undo the artwork that you just created.1. To

Page 69

160 Creating Graphics: Create a Timeline AnimationTest the SWF fileYou’ll test your document to view the animation and see if it works as expected.1.

Page 70

16114CHAPTER 14Creating Graphics: Making Animations with Easing (Flash Professional only)This tutorial guides you through the process of using the tw

Page 71 - Dreamweaver site

162 Creating Graphics: Making Animations with Easing (Flash Professional only)In this tutorial, you will complete the following tasks:Examine the comp

Page 72

Examine the completed FLA file 163Examine the completed FLA fileAs you examine the finished version of the application you’ll create, you will also lo

Page 73 - Using roundtrip editing

164 Creating Graphics: Making Animations with Easing (Flash Professional only)Review the completed FLA fileIn the completed FLA file, you will see a g

Page 74 - Checking for Flash Player

Open the starter document 165See the animation play in a separate window as a SWF fileTo see the animation play in a separate window as a SWF file, se

Page 75 - Checking for Flash Player 75

166 Creating Graphics: Making Animations with Easing (Flash Professional only)Add the necessary frames to the TimelineTo add the necessary frames to t

Page 76

Open the starter document 1673. On the Stage, press Shift and drag the eight ball downward until the bottom of the eight ball is in the middle of the

Page 77 - Summary 77

168 Creating Graphics: Making Animations with Easing (Flash Professional only)6. In the Timeline, drag the playhead from Frame 1 to Frame 61. You will

Page 78

Open the starter document 169Ease out the eight-ball animation1. In the Timeline, select the entire Ball layer by clicking the layer name.2. In the Pr

Page 79 - Flash Content

Change background and Stage size 17The playhead (the red indicator line) is on Frame 1 in the Timeline. The keyframes are designated by small circles

Page 80

170 Creating Graphics: Making Animations with Easing (Flash Professional only)The Custom Ease In / Ease Out dialog box displays a graph representing t

Page 81 - Provide a document title and

Open the starter document 1714. Drag the line to the top of the graph (the 100% line) while keeping it at Frame 20 on the horizontal axis. The line is

Page 82

172 Creating Graphics: Making Animations with Easing (Flash Professional only)6. Control-click (Windows) or Command-click (Macintosh) the flat part of

Page 83 - Specify that screen readers

Open the starter document 1739. Drag the vertex handles for the new control point onto the control point.10. Control-click (Windows) or Command-click

Page 84

174 Creating Graphics: Making Animations with Easing (Flash Professional only)Create a motion tween with an alpha settingIn this section, you will cre

Page 85 - Index text box

Open the starter document 1758. In the Timeline, click the layer named Ball to select the frames in that layer.9. In the Property inspector, click Edi

Page 86

176 Creating Graphics: Making Animations with Easing (Flash Professional only)Test the applicationAt any point during authoring, you can test how your

Page 87 - About testing your document

17715CHAPTER 15Creating Graphics: Applying GradientsThis tutorial guides you through the process of using the gradient tools in Macromedia Flash Basic

Page 88

178 Creating Graphics: Applying GradientsAfter examining the completed illustration, you’ll begin by opening a starter Flash document and end by publi

Page 89 - Basic Tasks: Work with

Examine the completed FLA file 179Examine the completed FLA fileAs you examine the finished version of an application you’ll create, you will also loo

Page 90

18 Basic Tasks: Create a DocumentChange your view of the StageYou can change your view of the Stage without affecting the actual Stage size of your do

Page 91 - Select a layer

180 Creating Graphics: Applying GradientsReview the completed FLA fileIn the completed FLA file, you will see the combined effects of several gradient

Page 92 - Lock a layer

Apply a linear gradient 181Close the completed FLA fileTo close the document, select File > Close.If you prefer to keep the finished file open as a

Page 93 - Change the order of layers

182 Creating Graphics: Applying Gradients5. Double-click the right gradient color swatch and select the color green (#006600).Selecting the right grad

Page 94 - Add a mask layer

Create a radial gradient 1838. Drag the Gradient Rotate handle to rotate the linear gradient clockwise as shown.The Gradient Rotate handleRotating the

Page 95 - Add a guide layer

184 Creating Graphics: Applying Gradients3. In the Color Mixer panel select Radial from the Type pop-up menu. Select Mirror Overflow mode from the Ove

Page 96 - Delete a layer

Create a radial gradient 1859. Rotate the radial gradient 90º clockwise by dragging the Gradient Rotate handle.Dragging to rotate the gradient 90º clo

Page 97 - Application

186 Creating Graphics: Applying GradientsCreate a transform gradient with a shapeIn this section, you will create a gradient and then use the Free Tra

Page 98

Apply the finishing touches 18712. Select the Selection tool from the Tools panel.13. Drag the shadow shape under the eight ball with the Selection to

Page 99 - Name text fields

188 Creating Graphics: Applying Gradients12. Set the Alpha value for the black color swatch to 100%.Your gradient settings should match those in the f

Page 100 - Add and name a Button

Apply the finishing touches 1893. Select the highlight shape.4. In the Color Mixer, select Linear from the Type menu.5. Select Non-repeating from the

Page 101

Add video 19Add graphics to the StageTo add library items to your document, you verify that you’re adding the object to the correct layer, and then dr

Page 102

190 Creating Graphics: Applying Gradients14. Drag the Gradient Scale control downward until it touches the top of the highlight shape.The Gradient Sca

Page 103 - Write a function

Test the application 191Test the applicationAt any point during authoring, you can test how your application plays as a SWF file. Because this tutoria

Page 104

192 Creating Graphics: Applying Gradients

Page 105 - Test your application

19316CHAPTER 16Creating Graphics: Apply Graphic Filters and Blends (Flash Professional Only)This tutorial guides you through the process of creating

Page 106

194 Creating Graphics: Apply Graphic Filters and Blends (Flash Professional Only)Review your taskIn this tutorial, you will add some graphics to the S

Page 107 - Basic Tasks: Use Layout

Apply filters and blends 195Open the starter documentNow that you have seen the document you will create, it is time to create your own version of the

Page 108 - Use guides to align an object

196 Creating Graphics: Apply Graphic Filters and Blends (Flash Professional Only)4. Drag the 9ball outlines movie clip from the Library panel onto the

Page 109 - Change the Stage size

Apply filters and blends 197Apply filters and blends to the cue ballThe last step is to use a color effect and a filter to make the cue ball appear to

Page 110 - Stage size

198 Creating Graphics: Apply Graphic Filters and Blends (Flash Professional Only)

Page 111 - Align an object using the

19917CHAPTER 17Text: Add Text to a DocumentMacromedia Flash Basic 8 and Macromedia Flash Professional 8 provide a variety of text features and options

Page 112

Trademarks1 Step RoboPDF, ActiveEdit, ActiveTest, Authorware, Blue Sky Software, Blue Sky, Breeze, Breezo, Captivate, Central, ColdFusion, Contribute,

Page 113 - Snap objects to each other

20 Basic Tasks: Create a DocumentView object propertiesWhen you add an object to the Stage, you can select it, and then view and change its properties

Page 114

200 Text: Add Text to a DocumentCreate a dynamic text field. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205Specify format options

Page 115 - Summary 115

Create an expanding-width text block 201Create an expanding-width text blockYou can define the size of a text block, or you can use a text block that

Page 116

202 Text: Add Text to a DocumentCreate a fixed-width text block In addition to creating a line of text that expands as you type, you can create a text

Page 117 - Symbols and Instances

Add an input text field 2033. In the Tools panel, click the Selection tool. Use the Property inspector to select the bold style. 4. Click the text Fil

Page 118 - About creating symbols

204 Text: Add Text to a Document4. In the text Property inspector, set the following options: Select Input Text in the Text Type pop-up menu Select

Page 119 - Create a graphic symbol

Create a dynamic text field 205Assign instance names to text fieldsAn input text field on the Stage is an instance of the ActionScript TextField objec

Page 120

206 Text: Add Text to a Document4. On the Stage, drag to create a text field in the area between the two horizontal rules.5. In the Instance Name text

Page 121 - Modify a symbol

Test the SWF file 207View ActionScript for the dynamic text fieldYou can view the ActionScript that loads text from the external text file into the dy

Page 122 - Create a movie clip symbol

208 Text: Add Text to a DocumentCheck spellingFlash Basic 8 and Flash Professional 8 introduce new features that let you check spelling in most places

Page 123 - Summary 123

20918CHAPTER 18ActionScript: Use Script Assist modeThis tutorial guides you through using Script Assist mode in Macromedia Flash Basic 8 and Macromedi

Page 124

Add video control behaviors 213. In the Play Video dialog box, verify that Relative is selected. Select video, which is the instance name that you gav

Page 125 - Animation and Navigation

210 ActionScript: Use Script Assist modeIn this tutorial, you will complete the following tasks:Examine the completed FLA file. . . . . . . . . . . .

Page 126

Examine the completed FLA file 211Examine the completed FLA fileAs you examine the finished version of an application that you’ll create, you’ll also

Page 127 - Name a button instance

212 ActionScript: Use Script Assist modeReview the completed FLA fileIn the completed FLA file, you will see all the objects (buttons, movie clips, an

Page 128

Add a script to a button by using Script Assist mode 213Open the starter documentNow that you have seen the completed file, it is time to create your

Page 129 - Align buttons

214 ActionScript: Use Script Assist mode4. In the Actions panel, you’ll see the Script Assist button above the ActionScript editor. Click Script Assis

Page 130

Add a script to a button by using Script Assist mode 2156. From the Movie Clip Control option, select the on event handler.Script Assist mode prompts

Page 131 - Add an action to a button

216 ActionScript: Use Script Assist mode7. Click Add again and then select the goto() function from the Global Functions > Timeline Control option.

Page 132 - Add navigation to a button

Add a script to a button by using Script Assist mode 21710. In the Frame text box, enter home. Modifying function parameters to complete the scriptThe

Page 133 - Test the SWF file

218 ActionScript: Use Script Assist modeAdd frame scripts to the Timeline by using Script Assist modeRather than adding scripts to individual objects,

Page 134

Add frame scripts to the Timeline by using Script Assist mode 2195. Click the Insert a Target Path button to display the Insert Target Path dialog box

Page 135 - CHAPTER 11

22 Basic Tasks: Create a DocumentUse the Movie Explorer to view the document structureThe Movie Explorer helps you arrange, locate, and edit media. Wi

Page 136

220 ActionScript: Use Script Assist modeYou now need to add the goto() function, the action that occurs when the About button is clicked. 1. Using the

Page 137

Add a frame script to the Title movie clip 221Add a frame script to the Title movie clipThe final step is to add a script to the last frame of the Tit

Page 138 - View screen properties

222 ActionScript: Use Script Assist mode5. Next, using either the Actions toolbox or the Add button, select ActionScript 2.0 Classes > Movie > M

Page 139

Summary 223Test the applicationAt any point during authoring, you can test how your application plays as a SWF file. Now that you’ve added scripts to

Page 140

224 ActionScript: Use Script Assist mode

Page 141 - Select and move slides

22519CHAPTER 19ActionScript: Write Scripts The ActionScript language that is part of Macromedia Flash Basic 8 and Macromedia Flash Professional 8 offe

Page 142 - Add transition behaviors

226 ActionScript: Write ScriptsSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to use an optimal layou

Page 143 - Test your presentation

Create an instance of a symbol 2273. From the Library panel (Window > Library), drag map_skewed to the black background area of the Stage.Because g

Page 144

228 ActionScript: Write ScriptsName button instancesUsing the appropriate suffix to prompt code hinting, you’ll provide instance names for two button

Page 145 - Creating Graphics: Draw

Apply ActionScript syntax 2294. Click in the Script pane, at the end of the screen_mc text, and type a period (.). 5. When you type the period, code h

Page 146 - Select a shape tool

Summary 23Test the documentAs you author a document, you should save and test it frequently to ensure the Flash content plays as expected. When you te

Page 147 - Draw a polygon

230 ActionScript: Write ScriptsLocate ActionScript reference documentationDuring authoring, if you’d like additional information about the ActionScrip

Page 148 - Use the cutout feature

Write a function for a button 231Write a function for a buttonA command in ActionScript is called a function. A function is a script that you can writ

Page 149 - Copy strokes

232 ActionScript: Write ScriptsCopy and modify a button functionYou just created one function that sets the visible property of a movie clip to true w

Page 150 - Draw with the Line tool

Check syntax and test your application 233Check syntax and test your applicationAs you learned earlier in this lesson, ActionScript depends on correct

Page 151 - Group the shape

234 ActionScript: Write ScriptsSummaryCongratulations on learning a few basics about writing scripts with ActionScript. In a short amount of time, you

Page 152

23520CHAPTER 20ActionScript: Add InteractivityMacromedia Flash Basic 8 and Macromedia Flash Professional 8 offer numerous ways to engage users with in

Page 153 - Timeline Animation

236 ActionScript: Add InteractivitySet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to use an optimal l

Page 154

Add a scene 237Name button instancesYou’ll provide instance names for the buttons on the Stage so that you can refer to the instance names in ActionSc

Page 155 - Create a motion tween

238 ActionScript: Add Interactivity3. Use the Property inspector to give the Animation movie clip an instance name of animation_mc. 4. Rename Layer 1

Page 156 - Create a shape tween

Add navigation to return to Scene 1 239Link a button to a sceneNow that the playhead stops at Frame 1, you’ll add ActionScript that takes the user to

Page 157

24 Basic Tasks: Create a Document View object properties Add video control behaviors Use the Movie Explorer to view the document structure Tes t

Page 158 - Change the speed of the

240 ActionScript: Add InteractivityPlay a movie clipYou can configure your document to play a movie clip at runtime. Using the attachMovie() method, y

Page 159

Play a movie clip 241Next, you’ll specify what the function does: it plays the movie clip on the root Timeline, which is the main timeline. In your sc

Page 160

242 ActionScript: Add InteractivityUnload the movie clipAfter the movie clip plays, you need a way to remove the movie clip from the Stage when the us

Page 161 - (Flash Professional only)

Test your document 243Use a behavior to play an MP3 fileWhen you want to add interactivity to your document with ActionScript, you can often rely on b

Page 162

244 ActionScript: Add InteractivitySummaryCongratulations on learning how to create an interactive document. In a few minutes, you learned how to acco

Page 163 - Open the authoring document

24521CHAPTER 21ActionScript: Create a Form with Conditional Logic and Send DataYou can create a form with conditional logic that allows the SWF file t

Page 164 - Review the completed FLA file

246 ActionScript: Create a Form with Conditional Logic and Send DataSet up your workspaceFirst, you’ll open the start file for the lesson and set up y

Page 165 - Open the starter document

Add a Submit button to the form 2473. In the Property inspector, do the following to set text attributes: Select Input Text from the Text Type pop-up

Page 166

248 ActionScript: Create a Form with Conditional Logic and Send DataAdd an error messageYou’ll add a message to display if the user clicks the Submit

Page 167 - Open the starter document 167

Add a stop() action 249Add a confirmation messageNext, you’ll add a message to display when the user submits an entry in the text field.1. In the Dial

Page 168 - Use easing controls

252CHAPTER 2Basic Tasks: Creating a banner, Part 1Macromedia Flash Basic 8 or Macromedia Flash Professional 8 can seem like a very complex programs to

Page 169 - Open the starter document 169

250 ActionScript: Create a Form with Conditional Logic and Send Data4. Click in the Script pane of the Actions panel, and type the following comment:

Page 170

Add conditional logic for the Submit button 251Add conditional logic for the Submit buttonWith ActionScript, you can have Flash compare information an

Page 171 - Open the starter document 171

252 ActionScript: Create a Form with Conditional Logic and Send Data11. Type gotoAndStop("confirm") in the Script pane. Press Enter or Retur

Page 172

Test your SWF file 253Write a function for the Try Again buttonA function is a script that you can use repeatedly to perform a specific task. You can

Page 173 - Open the starter document 173

254 ActionScript: Create a Form with Conditional Logic and Send DataSummaryCongratulations on learning how to write a script with conditional logic an

Page 174

25522CHAPTER 22ActionScript: Work with Objects and Classes Classes are the blueprint for objects in Macromedia Flash Basic 8 and Macromedia Flash Prof

Page 175 - Open the starter document 175

256 ActionScript: Work with Objects and ClassesSet up your workspaceFirst, you’ll view the finished files and set up your workspace to use an optimal

Page 176 - Test the application

Create an object from a class 257Create an object from a classYou’ll create an existing class using visual tools (the TextField class) and code (using

Page 177 - Applying Gradients

258 ActionScript: Work with Objects and ClassesModify your scriptYou’ll modify your script to compensate for the zero indexing.1. Add +1 to the value

Page 178

Create a custom class 259Create a custom classAlthough ActionScript includes many classes of objects, such as the MovieClip class and the Color class,

Page 179

26 Basic Tasks: Creating a banner, Part 1In Part 1 of this tutorial, you will complete the following tasks:Examine the completed FLA file. . . . . . .

Page 180

260 ActionScript: Work with Objects and ClassesTo create objects from this class, you could now use the following code:var cliplessPedal:Product=new P

Page 181 - Apply a linear gradient

Create a custom class 261Build a custom classYou’ll now build a new Product class with getter and setter methods and create an object from the Product

Page 182

262 ActionScript: Work with Objects and Classesfunction Product (id:Number, prodName:String, description:String) {setID(id);setProdName(prodName);setD

Page 183 - Create a radial gradient

Learn about extending existing classes 2633. In the Actions panel, create two objects from the Product class using the data shown in the following tab

Page 184

264 ActionScript: Work with Objects and ClassesThe Drag class now inherits all properties and methods from the existing MovieClip class, and you can u

Page 185 - Create a radial gradient 185

Extend the MovieClip class to create a new class 2654. In the Name text box, enter myShape.5. In the AS 2.0 Class text box, enter Drag. Click OK. This

Page 186

266 ActionScript: Work with Objects and Classes11. Test the Shape.fla file. You should be able to drag the movie clip. SummaryCongratulations on learn

Page 187 - Apply the finishing touches

26723CHAPTER 23Data Integration: Overview (Flash Professional Only)The following tutorials illustrate several ways to use data binding and the data co

Page 188

268 Data Integration: Overview (Flash Professional Only)

Page 189

26924CHAPTER 24Data Integration: Using the Macromedia Tips Web Service (Flash Professional Only)In this tutorial, you use the Web Services panel to co

Page 190

Examine the completed FLA file 27Examine the completed FLA fileAs you examine the finished version of an application that you’ll create, you’ll also l

Page 191

270 Data Integration: Using the Macromedia Tips Web Service (Flash Professional Only)Connect to a public web serviceDefine a web service in Flash that

Page 192

Connect to a public web service 271The web service has one method, called getTipByProduct(). This method accepts a single parameter called product. Th

Page 193 - (Flash Professional Only)

272 Data Integration: Using the Macromedia Tips Web Service (Flash Professional Only)Create a user interface and bind the components with the web serv

Page 194 - Review your task

Create a user interface and bind the components with the web service 2736. Drag another Label component above the tip_ta TextArea component. In the Pr

Page 195 - Apply filters and blends

274 Data Integration: Using the Macromedia Tips Web Service (Flash Professional Only)8. In the Component inspector, double-click the empty value in th

Page 196 - Apply a filter

Create a user interface and bind the components with the web service 2759. In the Component inspector, click Add Binding (+) again. In the Add Binding

Page 197 - Apply filters and blends 197

276 Data Integration: Using the Macromedia Tips Web Service (Flash Professional Only)13. Test the application (Control > Test Movie). Select Flash

Page 198

27725CHAPTER 25Data Integration: Using XML for a Timesheet (Flash Professional Only)This tutorial shows you how to create an application for editing t

Page 199 - Text: Add Text to a

278 Data Integration: Using XML for a Timesheet (Flash Professional Only)For this tutorial, you will need to the data.xml file provided in the Tutoria

Page 200

Create the user interface 2793. In the Component inspector or the Property inspector, click the Parameters tab. For the URL parameter, enter data.xml,

Page 201 - ■ For Font Size, enter 13

28 Basic Tasks: Creating a banner, Part 1Review the completed FLA fileIn the completed FLA file, you will see the structure that makes up the finished

Page 202

280 Data Integration: Using XML for a Timesheet (Flash Professional Only)7. Select the Date schema field. Its type is set to String. This is because t

Page 203 - Add an input text field

Create the user interface 2818. Select the Data Type parameter for the Date schema field and change it to Date. This tells the DataBinding component t

Page 204 - Copy a text field

282 Data Integration: Using XML for a Timesheet (Flash Professional Only)For more information on data binding and encoders, see “Schema encoders” in U

Page 205 - Create a dynamic text field

Create the user interface 28320.In the Bound To dialog box, click the Data Set component, and then select the dataProvider: Array schema location and

Page 206 - Specify format options

284 Data Integration: Using XML for a Timesheet (Flash Professional Only)23.Using the same method, create the following new fields: Field Name = bill

Page 207 - View ActionScript for the

Create the user interface 2854. In the Component inspector, click the Bindings tab. 5. Click the Add Binding button.6. In the Add Binding dialog box,

Page 208 - Check spelling

286 Data Integration: Using XML for a Timesheet (Flash Professional Only)Edit the dataNow you will modify the application so that you can edit data th

Page 209 - Assist mode

28726CHAPTER 26Data Integration: Using XUpdate to Update the Timesheet (Flash Professional Only)Prerequisite: “Data Integration: Using XML for a Times

Page 210

288 Data Integration: Using XUpdate to Update the Timesheet (Flash Professional Only)For this tutorial, you will need to the data.xml file provided in

Page 211

Update the timesheet 2896. Double-click the encoder options property. When prompted for a value for the rowNodeKey property, type datapacket/row[@id=&

Page 212 - Close the completed FLA file

Creating a new document 29Creating a new documentYou can create all kinds of different elements for the web or for CD-ROMs and devices using Flash 8.

Page 213 - Script Assist mode

290 Data Integration: Using XUpdate to Update the Timesheet (Flash Professional Only)16. In the Add Binding dialog box, click the text: String propert

Page 214

3ContentsChapter 1: Basic Tasks: Create a Document . . . . . . . . . . . . . . . . . 13Take a tour of the user interface . . . . . . . . . . . . . .

Page 215

30 Basic Tasks: Creating a banner, Part 12. Click Flash Document from the Create New column on the Start Page to create a blank document. 3. Select Fi

Page 216

Changing document properties 31Around the Stage you see a variety of panels. The panel on the left is called the Tools panel (see the following figure

Page 217

32 Basic Tasks: Creating a banner, Part 1If you don't have any objects or frames selected, the Property inspector allows you to modify properties

Page 218

Importing graphics 333. Click OK when you finish entering the new dimensions to return to the authoring environment.When you return to the authoring e

Page 219

34 Basic Tasks: Creating a banner, Part 1You'll see the Import dialog box (see the following figure), which enables you to browse to the file you

Page 220

Importing graphics 356. Click the Selection tool, and select the instance on the Stage.If you look at the Property inspector you'll notice that y

Page 221

36 Basic Tasks: Creating a banner, Part 1Setting new coordinates moves the upper-left corner of the image to the upper-left corner of the Stage. You c

Page 222

Introducing layers and the timeline 37In this section, you will complete the following tasks: “Creating a new layer” on page 38 “Importing to a laye

Page 223

38 Basic Tasks: Creating a banner, Part 1Creating a new layerIn just about any Flash project where you use imported graphics and animation, you'l

Page 224

Introducing layers and the timeline 39Importing to a layerIn an earlier exercise, “Importing graphics”, you imported the gnome.png image directly into

Page 225 - Scripts

4ContentsChapter 4: Basic Tasks: Creating a banner, Part 3 . . . . . . . . . . .63Examine the completed FLA file . . . . . . . . . . . . . . . . .

Page 226

40 Basic Tasks: Creating a banner, Part 15. Click the Selection tool in the Tools panel. Move the star.png file on the Stage to just above the gnome&a

Page 227

Summary 412. Click the close button of the window that contains the SWF file to return to the authoring environment. Find the folder on your hard disk

Page 228 - Initialize the document

42 Basic Tasks: Creating a banner, Part 1

Page 229 - Apply ActionScript syntax

433CHAPTER 3Basic Tasks: Creating a banner, Part 2Welcome to Part 2 of this three-part introduction to Macromedia Flash Basic 8 or Macromedia Flash Pr

Page 230 - Add comments to ActionScript

44 Basic Tasks: Creating a banner, Part 2 “Creating a symbol” on page 49 shows you how to create a movie clip symbol, to which you’ll add an animatio

Page 231 - Write a function for a button

Examine the completed FLA file 45Copy the FlashBanner folder to another location on your hard disk to which you have access. Inside this folder are th

Page 232 - Copy and modify a button

46 Basic Tasks: Creating a banner, Part 2This file contains an animation in a movie clip, text, an invisible button, and the assets that you imported

Page 233 - Check syntax and test your

Adding text 47You can add any of these types of text using the Text tool. For this exercise, you will add some static text to the Stage for decorative

Page 234

48 Basic Tasks: Creating a banner, Part 2When you finish, the text should be similar in size and in position to the text in the following figure.Add s

Page 235 - Interactivity

Creating a symbol 49Creating a symbolA symbol is an object that you create in Flash. As you discovered in Part 1, a symbol can be a graphic, button, o

Page 236

Contents 5Write a function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103Write an event handler for t

Page 237 - Add a scene

50 Basic Tasks: Creating a banner, Part 2Use the Convert to Symbol dialog box to convert selected content into a symbol, give it a name, and click OK

Page 238 - Control the document with a

Adding animation to a timeline 51Adding animation to a timelineYou have already used the Timeline in Part 1 of this tutorial (“Basic Tasks: Creating a

Page 239 - Add navigation to return to

52 Basic Tasks: Creating a banner, Part 23. Double-click the join us symbol instance on the Stage.This opens the symbol in symbol-editing mode (see th

Page 240 - Play a movie clip

Adding animation to a timeline 53Scene 1 refers to the main timeline of the FLA file. You can click this button on the edit bar to return to the main

Page 241 - Play a movie clip 241

54 Basic Tasks: Creating a banner, Part 210. Change the slider value to 75% (see the following figure).Change the brightness of the movie clip instanc

Page 242 - Unload the movie clip

Adding animation to a timeline 55You can create several kinds of animation in an FLA file, such as motion tweens, shape tweens, and frame-by-frame ani

Page 243 - Test your document

56 Basic Tasks: Creating a banner, Part 215. Select Control > Test Movie.The test environment opens where you can see the animation. Notice how it

Page 244 - ■ Create a new scene

Creating a button 575. Select No Color, as shown in the following figure. Doing so disables the rectangle's outline.Select No Color for the strok

Page 245 - Conditional Logic and Send

58 Basic Tasks: Creating a banner, Part 212. Double-click the new button on the Stage to enter the Symbol-editing mode. The rectangle is currently on

Page 246

Writing simple actions 59Writing simple actionsYou need to add some simple ActionScript to your banner in order for the invisible button to open a web

Page 247

6ContentsChapter 11: Basic Tasks: Create a Presentation with Screens (Flash Professional Only) . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 248 - Add an error message

60 Basic Tasks: Creating a banner, Part 2Before you add the code, you need to give the button a unique instance name. The instance name enables you to

Page 249 - Add a stop() action

Test the application 617. Select File > Save to save your progress before moving on.After you finish saving the file, proceed to the following exer

Page 250

62 Basic Tasks: Creating a banner, Part 2SummaryCongratulations for completing the next step of creating a banner in Flash. You used the Flash authori

Page 251 - Submit button

634CHAPTER 4Basic Tasks: Creating a banner, Part 3This is Part 3 of a three-part article on how to build a simple animated banner in Macromedia Flash

Page 252 - Pass data out of a SWF file

64 Basic Tasks: Creating a banner, Part 3The tutorial workflow includes the following tasks: “Examine the completed FLA file” on page 64 lets you vie

Page 253 - Test your SWF file

Examine the completed FLA file 65Open the finished projectThe files for this tutorial are located in the Samples and Tutorials folder in the Flash ins

Page 254

66 Basic Tasks: Creating a banner, Part 3Review the completed projectIn the completed project, you will see the structure that makes up the finished p

Page 255 - Objects and Classes

Considering your audience 67Considering your audienceWhen you create a site, you often need to follow certain guidelines for submitting a Flash banner

Page 256

68 Basic Tasks: Creating a banner, Part 3The purpose of this article is understand how to create Flash content, export it from Flash, and add it to yo

Page 257 - Create an object from a class

Checking your publish settings 69In earlier parts of this tutorial, you made changes in the Document Settings dialog box. You set the dimensions and f

Page 258 - Modify your script

Contents 7Chapter 15: Creating Graphics: Applying Gradients . . . . . . . . . . 177Examine the completed FLA file. . . . . . . . . . . . . . . . . .

Page 259 - Create a custom class

70 Basic Tasks: Creating a banner, Part 38. In the Options section, select Compress movie. You do not need to make any other selections on the Flash t

Page 260

Inserting Flash on a Dreamweaver site 71Inserting Flash on a Dreamweaver siteYou might have a web page already created for a banner. We have created a

Page 261 - Build a custom class

72 Basic Tasks: Creating a banner, Part 3This is where you want to add the Flash banner to the website.Select the large image placeholder on the right

Page 262 - Product class

Using roundtrip editing 73Using roundtrip editingBy now, you might want to change something in your Flash banner. Say you want to change the frame rat

Page 263 - Instance

74 Basic Tasks: Creating a banner, Part 3Checking for Flash PlayerMost people who visit your website will have the Flash Player 6 or greater plug-in i

Page 264

Checking for Flash Player 756. Select the Always go to first URL if detection is not possible option.When selected, this option effectively means &quo

Page 265

76 Basic Tasks: Creating a banner, Part 3Test the applicationNow you have a Flash banner, with graphics and animation, which also reacts to button cli

Page 266 - 11. Test the Shape.fla file

Summary 77SummaryNow you have completed your first Flash site and inserted it into a Dreamweaver web page. You have learned how to create a new file,

Page 267 - Data Integration: Overview

78 Basic Tasks: Creating a banner, Part 3

Page 268

795CHAPTER 5Basic Tasks: Create Accessible Flash ContentWith knowledge of a few design techniques and accessibility features in Macromedia Flash Basic

Page 269 - Web Service

8ContentsChapter 19: ActionScript: Write Scripts . . . . . . . . . . . . . . . . . . 225Set up your workspace. . . . . . . . . . . . . . . . . . .

Page 270

80 Basic Tasks: Create Accessible Flash ContentSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to use

Page 271

Provide a document title and description 81Make your document accessible to screen readersYou’ll now specify that your document is accessible to scree

Page 272

82 Basic Tasks: Create Accessible Flash ContentProvide a title and description for instancesNow that you’ve provided information about the entire docu

Page 273

Change static text to dynamic text for accessibility 83Specify that screen readers ignore elements in your documentScreen readers follow a specific or

Page 274 - <products_cb>

84 Basic Tasks: Create Accessible Flash Content2. In the Property inspector, select Dynamic Text from the Text Type pop-up menu.Accessibility settings

Page 275

Control the tab order and reading order 85To create a tab order in this lesson, use one of the following procedures. To create a reading order along w

Page 276

86 Basic Tasks: Create Accessible Flash ContentIf you have Flash Professional 8, follow this procedure to view a tab order: Select View > Show Tab

Page 277 - Professional Only)

Summary 87About testing your document with screen readersYou already know the importance of regularly testing your Flash document as you create it to

Page 278 - Create the user interface

88 Basic Tasks: Create Accessible Flash Content

Page 279 - Create the user interface 279

896CHAPTER 6Basic Tasks: Work with LayersIn Macromedia Flash Basic 8 and Macromedia Flash Professional 8, layers are analogous to transparent sheets o

Page 280

Contents 9Chapter 22: ActionScript: Work with Objects and Classes . . 255Set up your workspace . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 281 - Create the user interface 281

90 Basic Tasks: Work with LayersSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to use an optimal layo

Page 282

Select a layer 91Select a layerYou place objects, add text and graphics, and edit on the active layer. To make a layer active, you either select the l

Page 283 - Create the user interface 283

92 Basic Tasks: Work with LayersHide and show layersYou can hide layers to view content on other layers. When hiding layers, you have the option of hi

Page 284

Change the order of layers 93Add and name a layerYou’ll now add a layer, name the layer, and then add a graphic symbol to the layer.1. In the Timeline

Page 285 - Create the user interface 285

94 Basic Tasks: Work with LayersOrganize layers in a folderYou can create layer folders to organize layers and reduce Timeline clutter. The Timeline c

Page 286 - Edit the data

Add a guide layer 954. In the Timeline, drag the Road layer to the Mask layer, placing it below the Car layer.The mask layer and the layers it masks a

Page 287 - Update the Timesheet

96 Basic Tasks: Work with LayersDelete a layerBecause you don’t really need the guide layer in your document, you’ll delete it. In the Timeline, wit

Page 288 - Update the timesheet

977CHAPTER 7Basic Tasks: Create an ApplicationThe application that you’ll create in this lesson lets users view the cost of selecting multiple product

Page 289 - Update the timesheet 289

98 Basic Tasks: Create an ApplicationSet up your workspaceFirst, you’ll open the start file for the lesson and set up your workspace to use an optimal

Page 290

Name text fields 99Copy input and dynamic text fieldsYou’ll use input text fields to create a form.1. Click the input text field where users enter the

Comments to this Manuals

No comments