MACROMEDIA FLASH 8-FLASH Especificações

Consulte online ou descarregue Especificações para Manuais de software MACROMEDIA FLASH 8-FLASH. MACROMEDIA FLASH 8-FLASH Specifications Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 290
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes

Resumo do Conteúdo

Página 2

10 Contents

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 9 - Contents 9

106 Basic Tasks: Create an Application

Página 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

Página 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

Página 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

Página 13 - Document

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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 >

Página 20 - Add video control behaviors

116 Basic Tasks: Use Layout Tools

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 29 - Creating a new document

124 Basic Tasks: Create Symbols and Instances

Página 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

Página 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

Página 32

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 40

134 Basic Tasks: Add Button Animation and Navigation

Página 41 - Summary 41

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

Página 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

Página 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

Página 44

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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 >

Página 51

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

Página 52

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 61

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 70

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 80

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

Página 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

Página 82

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

Página 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

Página 84

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

Página 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

Página 86

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

Página 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

Página 88

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 102

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

Página 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

Página 104

192 Creating Graphics: Applying Gradients

Página 105 - Test your application

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

Página 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

Página 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

Página 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

Página 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

Página 110 - Stage size

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

Página 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

Página 112

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

Página 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

Página 114

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 123 - Summary 123

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

Página 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

Página 125 - Animation and Navigation

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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,

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 140

224 ActionScript: Use Script Assist mode

Página 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

Página 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

Página 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

Página 144

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

Página 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

Página 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

Página 147 - Draw a polygon

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

Página 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

Página 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

Página 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

Página 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

Página 152

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 162

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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:

Página 170

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

Página 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

Página 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

Página 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

Página 174

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

Página 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

Página 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

Página 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

Página 178

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

Página 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. . . . . . .

Página 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

Página 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

Página 182

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 188

268 Data Integration: Overview (Flash Professional Only)

Página 189

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

Página 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

Página 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

Página 192

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 198

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

Página 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

Página 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,

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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,

Página 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

Página 209 - Assist mode

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

Página 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

Página 211

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

Página 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.

Página 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

Página 214

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 224

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

Página 225 - Scripts

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

Página 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

Página 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

Página 228 - Initialize the document

42 Basic Tasks: Creating a banner, Part 1

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 236

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 247

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 258 - Modify your script

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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,

Página 267 - Data Integration: Overview

78 Basic Tasks: Creating a banner, Part 3

Página 268

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

Página 269 - Web Service

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

Página 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

Página 271

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

Página 272

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

Página 273

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

Página 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

Página 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

Página 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

Página 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

Página 278 - Create the user interface

88 Basic Tasks: Create Accessible Flash Content

Página 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

Página 280

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Comentários a estes Manuais

Sem comentários