Sign In
Upload
Manuals
Brands
MACROMEDIA Manuals
Software
FLASH MX 2004 - ACTIONSCRIPT
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Manuals
Manuals and User Guides for MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT. We have
7
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT manuals available for free PDF download: Reference Manual, Use Manual, Manual, Getting Started, Tutorials Manual
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Manual (386 pages)
Flash JavaScript Dictionary
Brand:
MACROMEDIA
| Category:
Software
| Size: 3 MB
Table of Contents
Table of Contents
3
CHAPTER 1: Introduction
17
Overview of the Macromedia Flash Javascript API
17
The Flash Document Object Model
19
The Document Object
20
Specifying the Target of an Action
21
Summary of the DOM Structure
22
The Polystar Example
23
CHAPTER 2 Top-Level Functions
25
CHAPTER 3 Objects
41
Bitmapinstance Object
43
Bitmapinstance.getbits()
44
Bitmapinstance.hpixels
44
Bitmapinstance.setbits()
45
Bitmapinstance.vpixels
45
Bitmapitem Object
47
Bitmapitem.allowsmoothing
47
Bitmapitem.compressiontype
48
Bitmapitem.quality
48
Bitmapitem.useimportedjpegquality
48
Compiledclipinstance Object
50
Compiledclipinstance.accname
50
Compiledclipinstance.actionscript
51
Compiledclipinstance.description
51
Compiledclipinstance.forcesimple
52
Compiledclipinstance.shortcut
52
Compiledclipinstance.silent
52
Compiledclipinstance.tabindex
53
Componentinstance Object
54
Componentinstance.parameters
54
Componentspanel Object
55
Componentspanel.additemtodocument()
55
Contour Object
56
Contour.gethalfedge()
56
Contour.interior
57
Contour.orientation
58
Document Object
59
Document.accname
64
Document.adddatatodocument()
65
Document.adddatatoselection()
65
Document.additem()
66
Document.addnewline()
67
Document.addnewoval()
67
Document.addnewpublishprofile()
68
Document.addnewrectangle()
69
Document.addnewscene()
70
Document.addnewtext()
71
Document.align()
71
Document.allowscreens()
72
Document.arrange()
72
Document.autolabel
73
Document.backgroundcolor
73
Document.breakapart()
74
Document.caneditsymbol()
74
Document.canrevert()
75
Document.cantestmovie()
75
Document.cantestscene()
76
Document.clipcopy()
76
Document.clipcut()
77
Document.clippaste()
77
Document.close()
78
Document.convertlinestofills()
78
Document.converttosymbol()
79
Document.currentpublishprofile
80
Document.currenttimeline
80
Document.deletepublishprofile()
81
Document.deletescene()
81
Document.deleteselection()
82
Document.description
82
Document.distribute()
83
Document.distributetolayers()
83
Document.documenthasdata()
84
Document.duplicatepublishprofile()
84
Document.duplicatescene()
85
Document.duplicateselection()
85
Document.editscene()
86
Document.entereditmode()
86
Document.exiteditmode()
87
Document.exportpublishprofile()
87
Document.exportswf()
88
Document.forcesimple
89
Document.framerate
89
Document.getaligntodocument()
90
Document.getcustomfill()
90
Document.getcustomstroke()
91
Document.getdatafromdocument()
92
Document.getelementproperty()
93
Document.getelementtextattr()
93
Document.getselectionrect()
94
Document.gettextstring()
95
Document.gettimeline()
96
Document.gettransformationpoint()
96
Document.group()
97
Document.height
97
Document.importpublishprofile()
98
Document.importswf()
98
Document.library
99
Document.livepreview
99
Document.match()
100
Document.mouseclick()
100
Document.mousedblclk()
101
Document.moveselectedbezierpointsby()
102
Document.moveselectionby()
102
Document.name
103
Document.optimizecurves()
103
Document.path
104
Document.publish()
104
Document.publishprofiles
105
Document.removedatafromdocument()
105
Document.removedatafromselection()
106
Document.renamepublishprofile()
106
Document.renamescene()
107
Document.reorderscene()
107
Document.resettransformation()
108
Document.revert()
108
Document.rotateselection()
109
Document.save()
109
Document.saveandcompact()
110
Document.scaleselection()
110
Document.screenoutline
111
Document.selectall()
112
Document.selection
112
Document.selectnone()
114
Document.setaligntodocument()
115
Document.setcustomfill()
115
Document.setcustomstroke()
116
Document.setelementproperty()
116
Document.setelementtextattr()
117
Document.setfillcolor()
118
Document.setinstancealpha()
118
Document.setinstancebrightness()
119
Document.setinstancetint()
119
Document.setselectionbounds()
120
Document.setselectionrect()
120
Document.setstroke()
121
Document.setstrokecolor()
122
Document.setstrokesize()
122
Document.setstrokestyle()
123
Document.settextrectangle()
123
Document.settextselection()
124
Document.settextstring()
125
Document.settransformationpoint()
125
Document.silent
126
Document.skewselection()
127
Document.smoothselection()
127
Document.space()
128
Document.straightenselection()
129
Document.swapelement()
129
Document.testmovie()
130
Document.testscene()
130
Document.timelines
131
Document.tracebitmap()
131
Document.transformselection()
132
Document.ungroup()
132
Document.unlockallelements()
133
Document.viewmatrix
133
Document.width
134
Document.xmlpanel()
134
Drawinglayer Object
135
Drawinglayer.begindraw()
135
Drawinglayer.beginframe()
136
Drawinglayer.cubiccurveto()
137
Drawinglayer.curveto()
137
Drawinglayer.drawpath()
138
Drawinglayer.enddraw()
138
Drawinglayer.endframe()
139
Drawinglayer.lineto()
139
Drawinglayer.moveto()
140
Drawinglayer.newpath()
140
Drawinglayer.setcolor()
141
Edge Object
142
Edge.getcontrol()
142
Edge.gethalfedge()
143
Edge.ID
143
Edge.isline
144
Edge.setcontrol()
144
Edge.splitedge()
145
Effect Object
146
Effect.effectname
146
Effect.groupname
147
Effect.sourcefile
147
Effect.symboltype
147
Effect.usexmltoui
148
Element Object
149
Element.depth
150
Element.elementtype
150
Element.getpersistentdata()
151
Element.haspersistentdata()
151
Element.height
152
Element.left
152
Element.locked
153
Element.matrix
153
Element.name
154
Element.removepersistentdata()
154
Element.setpersistentdata()
154
Element.top
155
Element.width
156
Embeddedvideoinstance Object
157
Fill Object
158
Fill.color
158
Fill.colorarray
159
Fill.matrix
159
Fill.posarray
159
Fill.style
160
Flash Object
161
Fl.activeeffect
163
Fl.browseforfileurl()
163
Fl.closeall()
164
Fl.closedocument()
164
Fl.componentspanel
165
Fl.configdirectory
165
Fl.configuri
166
Fl.createdocument()
166
Fl.createnewdoclist
167
Fl.createnewdoclisttype
167
Fl.createnewtemplatelist
167
Fl.documents
168
Fl.drawinglayer
168
Fl.effects
169
Fl.enableimmediateupdates()
169
Fl.fileexists()
170
Fl.finddocumentindex()
170
Fl.getdocumentdom()
171
Fl.mapplayerurl()
171
Fl.math
172
Fl.mrurecentfilelist
172
Fl.mrurecentfilelisttype
173
Fl.opendocument()
173
Fl.openproject()
174
Fl.openscript()
174
Fl.outputpanel
175
Fl.quit()
175
Fl.reloadeffects()
176
Fl.reloadtools()
176
Fl.revertdocument()
177
Fl.runscript()
177
Fl.saveall()
178
Fl.savedocument()
179
Fl.savedocumentas()
179
Fl.setactivewindow()
180
Fl.tools
181
Fl.trace()
181
Fl.version
181
Fl.xmlui
182
Folderitem Object
183
Fontitem Object
184
Frame Object
185
Frame.actionscript
186
Frame.duration
186
Frame.elements
187
Frame.labeltype
187
Frame.motiontweenorienttopath
188
Frame.motiontweenrotate
188
Frame.motiontweenrotatetimes
189
Frame.motiontweenscale
189
Frame.motiontweensnap
189
Frame.motiontweensync
190
Frame.name
190
Frame.shapetweenblend
190
Frame.soundeffect
191
Frame.soundlibraryitem
191
Frame.soundloop
191
Frame.soundloopmode
192
Frame.soundname
192
Frame.soundsync
193
Frame.startframe
193
Frame.tweeneasing
193
Frame.tweentype
194
Halfedge Object
195
Halfedge.getedge()
195
Halfedge.getnext()
196
Halfedge.getoppositehalfedge()
196
Halfedge.getprev()
197
Halfedge.getvertex()
197
Halfedge.ID
198
Instance Object
199
Instance.instancetype
199
Instance.libraryitem
199
Item Object
201
Item.adddata()
202
Item.getdata()
202
Item.hasdata()
203
Item.itemtype
203
Item.linkageclassname
204
Item.linkageexportforas
204
Item.linkageexportforrs
204
Item.linkageexportinfirstframe
205
Item.linkageidentifier
205
Item.linkageimportforrs
206
Item.linkageurl
206
Item.name
206
Item.removedata()
207
Layer Object
208
Layer.color
208
Layer.framecount
209
Layer.frames
209
Layer.height
210
Layer.layertype
210
Layer.locked
210
Layer.name
211
Layer.outline
211
Layer.parentlayer
212
Layer.visible
212
Library Object
213
Library.additemtodocument()
214
Library.addnewitem()
215
Library.deleteitem()
215
Library.duplicateitem()
216
Library.edititem()
216
Library.expandfolder()
217
Library.finditemindex()
218
Library.getitemproperty()
218
Library.getitemtype()
219
Library.getselecteditems()
219
Library.importembeddedswf()
220
Library.itemexists()
220
Library.items
221
Library.movetofolder()
221
Library.newfolder()
222
Library.renameitem()
222
Library.selectall()
223
Library.selectitem()
223
Library.selectnone()
224
Library.setitemproperty()
225
Library.updateitem()
225
Linkedvideoinstance Object
227
Math Object
228
Math.concatmatrix()
228
Math.invertmatrix()
229
Math.pointdistance()
229
Matrix Object
230
Matrix.a
230
Matrix.b
231
Matrix.C
231
Matrix.D
232
Matrix.tx
232
Matrix.ty
232
Outputpanel Object
234
Outputpanel.clear()
234
Outputpanel.save()
235
Outputpanel.trace()
235
Parameter Object
237
Parameter.category
237
Parameter.insertitem()
238
Parameter.listindex
238
Parameter.name
239
Parameter.removeitem()
239
Parameter.value
240
Parameter.valuetype
241
Parameter.verbose
241
Path Object
242
Path.addcubiccurve()
242
Path.addcurve()
243
Path.addpoint()
244
Path.clear()
244
Path.close()
245
Path.makeshape()
245
Path.newcontour()
246
Path.npts
247
Screen Object
248
Screen.accname
249
Screen.childscreens
249
Screen.description
250
Screen.forcesimple
250
Screen.hidden
251
Screen.instancename
251
Screen.name
252
Screen.nextscreen
252
Screen.parameters
253
Screen.parentscreen
253
Screen.prevscreen
254
Screen.silent
254
Screen.tabindex
255
Screen.timeline
255
Screenoutline Object
256
Screenoutline.copyscreenfromfile()
257
Screenoutline.currentscreen
258
Screenoutline.deletescreen()
258
Screenoutline.duplicatescreen()
259
Screenoutline.getselectedscreens()
259
Screenoutline.insertnestedscreen()
260
Screenoutline.insertscreen()
260
Screenoutline.movescreen()
261
Screenoutline.renamescreen()
262
Screenoutline.rootscreen
262
Screenoutline.screens
263
Screenoutline.setcurrentscreen()
263
Screenoutline.setscreenproperty()
264
Screenoutline.setselectedscreens()
264
Shape Object
266
Shape.beginedit()
266
Shape.contours
267
Shape.deleteedge()
267
Shape.edges
268
Shape.endedit()
268
Shape.isgroup
269
Shape.vertices
269
Sounditem Object
270
Sounditem.bitrate
270
Sounditem.bits
271
Sounditem.compressiontype
271
Sounditem.convertstereotomono
272
Sounditem.quality
272
Sounditem.samplerate
272
Sounditem.useimportedmp3Quality
273
Stroke Object
274
Stroke.breakatcorners
275
Stroke.color
275
Stroke.curve
275
Stroke.dash1
276
Stroke.dash2
276
Stroke.density
277
Stroke.dotsize
277
Stroke.dotspace
278
Stroke.hatchthickness
278
Stroke.jiggle
279
Stroke.length
279
Stroke.pattern
280
Stroke.rotate
280
Stroke.space
281
Stroke.style
281
Stroke.thickness
282
Stroke.variation
282
Stroke.waveheight
283
Stroke.wavelength
283
Symbolinstance Object
284
Symbolinstance.accname
285
Symbolinstance.actionscript
286
Symbolinstance.buttontracking
286
Symbolinstance.coloralphaamount
287
Symbolinstance.coloralphapercent
287
Symbolinstance.colorblueamount
287
Symbolinstance.colorbluepercent
288
Symbolinstance.colorgreenamount
288
Symbolinstance.colorgreenpercent
288
Symbolinstance.colormode
289
Symbolinstance.colorredamount
289
Symbolinstance.colorredpercent
290
Symbolinstance.description
290
Symbolinstance.firstframe
290
Symbolinstance.forcesimple
291
Symbolinstance.loop
291
Symbolinstance.shortcut
292
Symbolinstance.silent
292
Symbolinstance.symboltype
293
Symbolinstance.tabindex
293
Symbolitem Object
294
Symbolitem.converttocompiledclip()
294
Symbolitem.exportswc()
295
Symbolitem.exportswf()
295
Symbolitem.sourceautoupdate
296
Symbolitem.sourcefilepath
296
Symbolitem.sourcelibraryname
297
Symbolitem.symboltype
297
Symbolitem.timeline
297
Textattrs Object
299
Textattrs.aliastext
300
Textattrs.alignment
300
Textattrs.autokern
300
Textattrs.bold
301
Textattrs.characterposition
301
Textattrs.characterspacing
302
Textattrs.face
302
Textattrs.fillcolor
302
Textattrs.indent
303
Textattrs.italic
303
Textattrs.leftmargin
303
Textattrs.linespacing
304
Textattrs.rightmargin
304
Textattrs.rotation
305
Textattrs.size
305
Textattrs.target
305
Textattrs.url
306
Text Object
307
Text.accname
308
Text.autoexpand
309
Text.border
309
Text.description
310
Text.embeddedcharacters
310
Text.embedranges
310
Text.gettextattr()
311
Text.gettextstring()
312
Text.length
313
Text.linetype
313
Text.maxcharacters
313
Text.orientation
314
Text.renderashtml
314
Text.scrollable
315
Text.selectable
315
Text.selectionend
315
Text.selectionstart
316
Text.settextattr()
316
Text.settextstring()
317
Text.shortcut
318
Text.silent
319
Text.tabindex
319
Text.textruns
320
Text.texttype
320
Text.usedevicefonts
320
Text.variablename
321
Textrun Object
322
Textrun.characters
322
Textrun.textattrs
322
Timeline Object
324
Timeline.addmotionguide()
326
Timeline.addnewlayer()
326
Timeline.clearframes()
327
Timeline.clearkeyframes()
328
Timeline.converttoblankkeyframes()
328
Timeline.converttokeyframes()
329
Timeline.copyframes()
330
Timeline.createmotiontween()
331
Timeline.currentframe
331
Timeline.currentlayer
332
Timeline.cutframes()
332
Timeline.deletelayer()
333
Timeline.expandfolder()
333
Timeline.findlayerindex()
334
Timeline.framecount
335
Timeline.getframeproperty()
335
Timeline.getlayerproperty()
336
Timeline.getselectedframes()
337
Timeline.getselectedlayers()
337
Timeline.insertblankkeyframe()
338
Timeline.insertframes()
338
Timeline.insertkeyframe()
340
Timeline.layercount
340
Timeline.layers
341
Timeline.name
341
Timeline.pasteframes()
341
Timeline.removeframes()
342
Timeline.reorderlayer()
343
Timeline.reverseframes()
344
Timeline.selectallframes()
344
Timeline.setframeproperty()
345
Timeline.setlayerproperty()
346
Timeline.setselectedframes()
346
Timeline.setselectedlayers()
347
Timeline.showlayermasking()
348
Toolobj Object
349
Toolobj.enablepicontrol()
350
Toolobj.position
351
Toolobj.seticon()
351
Toolobj.setmenustring()
352
Toolobj.setoptionsfile()
352
Toolobj.setpi()
353
Toolobj.settoolname()
353
Toolobj.settooltip()
354
Toolobj.showpicontrol()
354
Toolobj.showtransformhandles()
355
Tools Object
356
Tools.activetool
357
Tools.altisdown
357
Tools.constrainpoint()
357
Tools.ctlisdown
358
Tools.getkeydown()
358
Tools.mouseisdown
358
Tools.pendownloc
358
Tools.penloc
359
Tools.setcursor()
359
Tools.shiftisdown
360
Tools.snappoint()
360
Tools.toolobjs
360
Vertex Object
361
Vertex.gethalfedge()
361
Vertex.setlocation()
361
Vertex.X
362
Vertex.y
363
Videoitem Object
364
XMLUI Object
365
Xmlui.accept()
365
Xmlui.cancel()
366
Xmlui.get()
366
Xmlui.set()
366
Advertisement
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual (816 pages)
ActionScript Reference Guide
Brand:
MACROMEDIA
| Category:
Software
| Size: 6 MB
Table of Contents
Table of Contents
3
INTRODUCTION: Getting Started with Actionscript
9
Intended Audience
9
System Requirements
9
Using the Documentation
9
Typographical Conventions
10
Terms Used in this Document
10
Additional Resources
10
PART I: Welcome to Actionscript
11
CHAPTER 1: What's New in Flash MX 2004 Actionscript
13
New and Changed Language Elements
13
New Security Model and Legacy SWF Files
14
Porting Existing Scripts to Flash Player 7
15
Actionscript Editor Changes
21
Debugging Changes
22
New Object-Oriented Programming Model
22
CHAPTER 2: Actionscript Basics
25
Differences between Actionscript and Javascript
25
Unicode Support for Actionscript
26
Terminology
26
Syntax
29
About Data Types
34
Assigning Data Types to Elements
37
About Variables
40
Using Operators to Manipulate Values in Expressions
45
Specifying an Object's Path
50
Using Built-In Functions
51
Creating Functions
51
CHAPTER 3: Writing and Debugging Scripts
55
Controlling When Actionscript Runs
56
Using the Actions Panel and Script Window
58
Using the Actionscript Editor
61
Debugging Your Scripts
68
Using the Output Panel
77
Updating Flash Player for Testing
79
PART II: Handling Events and Creating Interaction
81
CHAPTER 4 Handling Events
83
Using Event Handler Methods
83
Using Event Listeners
85
Using Button and Movie Clip Event Handlers
87
Creating Movie Clips with Button States
88
Event Handler Scope
88
Scope of the "This" Keyword
90
CHAPTER 5: Creating Interaction with Actionscript
91
About Events and Interaction
91
Controlling SWF File Playback
92
Creating Interactivity and Visual Effects
94
Deconstructing a Sample Script
108
CHAPTER 6: Using the Built-In Classes
113
About Classes and Instances
114
Overview of Built-In Classes
115
CHAPTER 7: Working with Movie Clips
121
About Controlling Movie Clips with Actionscript
121
Calling Multiple Methods on a Single Movie Clip
122
Loading and Unloading Additional SWF Files
123
Specifying a Root Timeline for Loaded SWF Files
123
Loading JPEG Files into Movie Clips
124
Changing Movie Clip Position and Appearance
125
Dragging Movie Clips
125
Creating Movie Clips at Runtime
126
Adding Parameters to Dynamically Created Movie Clips
128
Managing Movie Clip Depths
129
Drawing Shapes with Actionscript
131
Using Movie Clips as Masks
132
Handling Movie Clip Events
132
Assigning a Class to a Movie Clip Symbol
133
Initializing Class Properties
134
CHAPTER 8: Working with Text
135
Using the Textfield Class
135
Creating Text Fields at Runtime
137
Using the Textformat Class
137
Formatting Text with Cascading Style Sheets
139
Using HTML-Formatted Text
147
Creating Scrolling Text
153
CHAPTER 9: Creating Classes with Actionscript 2.0
155
Principles of Object-Oriented Programming
156
Using Classes: a Simple Example
157
Creating and Using Classes
161
Instance and Class Members
165
Creating and Using Interfaces
167
Understanding the Classpath
169
Using Packages
171
Importing Classes
171
Implicit Get/Set Methods
172
Creating Dynamic Classes
173
How Classes Are Compiled and Exported
174
PART IV: Working with External Data and Media
175
CHAPTER 10: Working with External Data
177
Sending and Loading Variables to and from a Remote Source
177
Sending Messages to and from Flash Player
185
Flash Player Security Features
188
CHAPTER 11: Working with External Media
193
Overview of Loading External Media
193
Loading External SWF and JPEG Files
194
Loading External MP3 Files
195
Reading ID3 Tags in MP3 Files
196
Playing Back External FLV Files Dynamically
197
Preloading External Media
198
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Use Manual (494 pages)
Brand:
MACROMEDIA
| Category:
Software
| Size: 6 MB
Table of Contents
Table of Contents
3
CHAPTER 1: Working with Flash Documents
11
Creating or Opening a Document and Setting Properties
12
Using Document Tabs for Multiple Documents (Windows Only)
14
Saving Flash Documents
14
About Adding Media Content
16
About Creating Motion and Interactivity
16
About Components
17
Using the Library to Manage Media Assets
17
About Actionscript
21
Multiple Timelines and Levels
22
Nested Movie Clips
22
Using Absolute and Relative Target Paths
23
Working with Scenes
27
Using the Movie Explorer
28
Using Find and Replace
30
Using the Undo, Redo, and Repeat Menu Commands
34
Using the History Panel
35
Saving Documents When You Undo Steps
37
Automating Tasks with the Commands Menu
37
About Customizing Context Menus in Flash Documents
39
About the Links Menu in Flash Player
39
Speeding up Document Display
40
Optimizing Flash Documents
40
Testing Document Download Performance
41
Printing from the Flash Authoring Tool
43
CHAPTER 2: Working with Projects (Flash Professional Only)
45
Creating and Managing Projects (Flash Professional Only)
46
Using Version Control with Projects (Flash Professional Only)
49
Troubleshooting Remote Folder Setup (Flash Professional Only)
51
CHAPTER 3: Using Symbols, Instances, and Library Assets
53
Types of Symbols
54
About Controlling Instances and Symbols with Actionscript
55
Creating Symbols
55
Creating Instances
58
Creating Buttons
58
Enabling, Editing, and Testing Buttons
60
Editing Symbols
61
Changing Instance Properties
62
Controlling Instances with Behaviors
65
Breaking Apart Instances
67
Getting Information about Instances on the Stage
67
Copying Library Assets between Documents
68
Using Shared Library Assets
69
Resolving Conflicts between Library Assets
72
CHAPTER 4: Working with Color
75
Using the Stroke Color and Fill Color Controls in the Tools Panel
76
Using the Stroke Color and Fill Color Controls in the Property Inspector
76
Working with Solid Colors and Gradient Fills in the Color Mixer
77
Modifying Strokes with the Ink Bottle Tool
79
Applying Solid, Gradient, and Bitmap Fills with the Paint Bucket Tool
79
Transforming Gradient and Bitmap Fills
80
Copying Strokes and Fills with the Eyedropper Tool
81
Locking a Gradient or Bitmap to Fill the Stage
82
Modifying Color Palettes
82
CHAPTER 5: Drawing
85
About Vector and Bitmap Graphics
85
Flash Drawing and Painting Tools
87
About Overlapping Shapes in Flash
88
Drawing with the Pencil Tool
88
Drawing Straight Lines, Ovals, and Rectangles
89
Drawing Polygons and Stars
90
Using the Pen Tool
90
Painting with the Brush Tool
95
Reshaping Lines and Shape Outlines
97
Erasing
99
Modifying Shapes
100
Snapping
101
Specifying Drawing Settings
103
CHAPTER 6: Working with Text
105
About Unicode Text Encoding in Flash Applications
107
About Font Outlines and Device Fonts
107
Creating Text
108
Creating Scrolling Text
110
Setting Text Attributes
111
Creating Font Symbols
116
Editing Text
117
Checking Spelling
117
About Transforming Text
119
Using Timeline Effects with Text
119
Breaking Text Apart
120
Linking Text to a URL (Horizontal Text Only)
120
Preserving Rich Text Formatting
121
Substituting Missing Fonts
122
Controlling Text with Actionscript
124
Creating Scrolling Text
128
CHAPTER 7: Using Imported Artwork
131
Placing Artwork into Flash
131
Working with Imported Bitmaps
138
CHAPTER 8: Working with Graphic Objects
143
Selecting Objects
144
Grouping Objects
146
Moving, Copying, and Deleting Objects
147
Stacking Objects
149
Transforming Objects
150
Flipping Objects
154
Restoring Transformed Objects
154
Aligning Objects
155
Breaking Apart Groups and Objects
155
CHAPTER 9: Creating Motion
157
Using Timeline Effects
158
Tweened Animation
161
Frame-By-Frame Animation
162
Layers in Animation
162
Creating Keyframes
162
Representations of Animations in the Timeline
163
Frame Rates
163
Extending Still Images
164
Distributing Objects to Layers for Tweened Animation
164
Tweening Instances, Groups, and Type
165
Tweening Motion Along a Path
168
Tweening Shapes
169
Using Shape Hints
170
Creating Frame-By-Frame Animations
171
Editing Animation
172
Using Mask Layers
174
CHAPTER 10: Working with Video
177
About File Formats for Imported Video
178
About the Sorenson Spark Codec
179
Using the Video Import Wizard
181
Importing Macromedia Flash Video (FLV) Files
187
Importing Linked Quicktime Video Files
188
About Playing Back External FLV Files Dynamically
189
Changing the Properties of a Video Clip
190
Controlling Video Playback Using Behaviors
191
About Controlling Video Playback Using the Timeline
192
Exporting FLV Files from Video-Editing Applications (Flash Professional Only)
192
Playing FLV Video Clips with Media Components (Flash Professional Only)
196
CHAPTER 11: Working with Sound
201
Importing Sounds
202
Adding Sounds to a Document
203
Adding Sounds to Buttons
204
Using Sounds with Sound Objects
205
About Accessing ID3 Properties in MP3 Files with Flash Player
205
Using the Sound-Editing Controls
206
Controlling Sound Playback Using Behaviors
206
Starting and Stopping Sounds at Keyframes
208
About the Onsoundcomplete Event
208
Compressing Sounds for Export
209
Using Sounds in Flash Documents for Mobile Devices (Flash Professional Only)
213
Creating a Flash Lite Sound File
214
CHAPTER 12: Working with Screens (Flash Professional Only)
215
Understanding Screen-Based Documents and the Screen Authoring Environment (Flash Professional Only)
216
Professional Only)
216
Understanding Screen-Based Documents and the Screen Authoring Environment
217
Using the Screen Outline Pane (Flash Professional Only)
219
About Undoing and Redoing Commands with Screens
220
(Flash Professional Only)
220
Using the Screens Context Menu (Flash Professional Only)
220
Creating a New Screen-Based Document (Flash Professional Only)
220
About Undoing and Redoing Commands with Screens (Flash Professional Only)
220
Adding Screens to a Document (Flash Professional Only)
221
Naming Screens (Flash Professional Only)
222
Setting Properties and Parameters for a Screen (Flash Professional Only)
223
About Adding Media Content to Screens (Flash Professional Only)
226
Selecting and Moving Screens (Flash Professional Only)
226
Creating Controls and Transitions for Screens with Behaviors (Flash Professional Only)
228
Using Find and Replace with Screens (Flash Professional Only)
230
About Using the Movie Explorer with Screens (Flash Professional Only)
230
About Using Timelines with Screens (Flash Professional Only)
231
About Using Actionscript with Screens (Flash Professional Only)
231
About Using Components with Screens (Flash Professional Only)
233
Accessibility in the Flash Screens Authoring Environment (Flash Professional Only)233
233
Accessibility in the Flash Screens Authoring Environment (Flash Professional Only)
233
Advertisement
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Use Manual (344 pages)
Using ActionScript in Flash
Brand:
MACROMEDIA
| Category:
Software
| Size: 3 MB
Table of Contents
Table of Contents
3
INTRODUCTION: Getting Started with Actionscript
7
Intended Audience
7
System Requirements
7
Using the Documentation
7
Typographical Conventions
9
Terms Used in this Document
9
Additional Resources
9
CHAPTER 1: What's New in Flash MX 2004 Actionscript
11
Updating Flash XML Files
11
New and Changed Language Elements
12
New Security Model and Legacy SWF Files
13
Porting Existing Scripts to Flash Player 7
13
Ecma-262 Compliance
14
Cross-Domain and Subdomain Access between SWF Files
15
Domain-Name Rules for Settings and Local Data
15
HTTP to HTTPS Protocol Access between SWF Files
18
Server-Side Policy Files for Permitting Access to Data
19
Actionscript Editor Changes
20
Debugging Changes
21
New Object-Oriented Programming Model
21
Actionscript Basics
23
CHAPTER 2: Actionscript Basics
23
Differences between Actionscript and Javascript
24
Terminology
24
Syntax
28
About Data Types
34
Assigning Data Types to Elements
39
About Variables
44
Using Operators to Manipulate Values in Expressions
49
Specifying an Object's Path
57
Using Condition Statements
58
Using Built-In Functions
60
Creating Functions
61
Defining a Function
61
Passing Parameters to a Function
62
Returning Values from a Function
62
Using Variables in a Function
62
Calling a User-Defined Function
63
CHAPTER 3: Using Best Practices
65
Working with FLA Files
66
General Coding Conventions
69
Actionscript Coding Standards
82
Using Classes and Actionscript 2.0
99
Creating and Organizing Classes
100
Programming Classes
102
Using Comments in Classes
102
Using Prefixes in Classes
102
Wrapping Lines of Code
103
Using Design Patterns
104
Behaviors Conventions
105
Screens Conventions
107
Video Conventions
110
Performance and Flash Player
114
Guidelines for Flash Applications
121
Projects and Version Control Guidelines
127
Guidelines for Accessibility in Flash
129
Creating Accessible Sites
130
Exposing SWF File Structure and Navigation
131
Using Screen Readers
131
Controlling Descriptions and Repetition
132
Using Color
132
Ordering, Tabbing, and the Keyboard
133
Extending Flash and Accessibility
134
Handling Audio and Animation
134
Working with Accessibility and Components
134
Testing Frequently and Making Changes
135
Advertising with Flash
136
CHAPTER 4: Writing and Debugging Scripts
139
Controlling When Actionscript Runs
140
Using the Actions Panel and Script Window
140
Using the Actionscript Editor
144
Syntax Highlighting
144
Writing Code that Triggers Code Hints
145
Using Code Hints
147
Using Escape Shortcut Keys
149
Checking Syntax and Punctuation
150
Formatting Code
151
Unicode Support for Actionscript
152
Debugging Your Scripts
153
Using the Output Panel
162
Updating Flash Player for Testing
165
CHAPTER 5: Handling Events
167
Using Event Handler Methods
167
Using Event Listeners
169
Using Button and Movie Clip Event Handlers
171
Broadcasting Events from Component Instances
173
Creating Movie Clips with Button States
173
Event Handler Scope
174
Scope of the this Keyword
176
CHAPTER 6: Creating Interaction with Actionscript
179
About Events and Interaction
179
Controlling SWF File Playback
180
Creating Interactivity and Visual Effects
182
Deconstructing a Sample Script
195
CHAPTER 7: Using the Built-In Classes
197
About Classes and Instances
197
Overview of Built-In Classes
199
CHAPTER 8: Working with Movie Clips
205
About Controlling Movie Clips with Actionscript
205
Calling Multiple Methods on a Single Movie Clip
206
Loading and Unloading Additional SWF Files
207
Specifying a Root Timeline for Loaded SWF Files
208
Loading JPEG Files into Movie Clips
209
Changing Movie Clip Position and Appearance
209
Dragging Movie Clips
210
Creating Movie Clips at Runtime
211
Adding Parameters to Dynamically Created Movie Clips
213
Managing Movie Clip Depths
215
Drawing Shapes with Actionscript
216
Using Movie Clips as Masks
217
About Masking Device Fonts
218
Handling Movie Clip Events
218
Assigning a Class to a Movie Clip Symbol
218
Initializing Class Properties
219
CHAPTER 9: Working with Text
221
Using the Textfield Class
221
Creating Text Fields at Runtime
223
Using the Textformat Class
224
Formatting Text with Cascading Style Sheets
226
Using HTML-Formatted Text
236
Creating Scrolling Text
244
CHAPTER 10: Creating Custom Classes with Actionscript
247
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Manual (122 pages)
Learning Flash
Brand:
MACROMEDIA
| Category:
Software
| Size: 1 MB
Table of Contents
Table of Contents
3
INTRODUCTION: Learning Macromedia Flash MX 2004
9
Additional Resources for Learning Flash
10
CHAPTER 1: Create a Document
13
Take a Tour of the User Interface
14
Change Background and Stage Size
16
Change Your View of the Stage
16
View the Library Panel
17
Add Graphics to the Stage
17
Add Video
17
View Object Properties
18
Add Video Control Behaviors
18
Use the Movie Explorer to View the Document Structure
19
Test the Document
19
Find Help
20
Summary
20
CHAPTER 2: Create Accessible Flash Content
21
Set up Your Workspace
22
Specify that Your Document be Accessible to Screen Readers
22
Provide a Document Title and Description
23
Provide a Title and Description for Instances
23
Specify that Screen Readers Ignore Elements in Your Document
23
Change Static Text to Dynamic Text for Accessibility
24
Control the Tab Order and Reading Order
24
About Testing Your Document with Screen Readers
26
Summary
26
CHAPTER 3: Write Scripts with Actionscript
27
Set up Your Workspace
28
Create an Instance of a Symbol
28
Name Button Instances
29
Initialize the Document
30
About Actionscript Syntax
30
Locate Actionscript Reference Documentation
31
Add Comments to Actionscript
31
Write a Function for a Button
31
Copy and Modify a Button Function
32
Check Syntax and Test Your Application
33
Summary
33
CHAPTER 4: Create an Application
35
Set up Your Workspace
35
Copy Input and Dynamic Text Fields
36
Name Text Fields
36
Add and Name a Button Component
36
Declare Variables and Values for the Prices
37
Specify Values for Input Text Fields
37
Write a Function
38
Write an Event Handler for the Component
39
Test Your Application
40
Summary
40
CHAPTER 5 Work with Layers
41
Set up Your Workspace
42
Select a Layer
43
Hide and Show Layers
43
Lock a Layer
43
Add and Name a Layer
44
Change the Order of Layers
44
Organize Layers in a Folder
44
Add a Mask Layer
45
Add a Guide Layer
45
Delete a Layer
46
Summary
46
CHAPTER 6: Create a User Interface with Layout Tools
47
Set up Your Workspace
48
Use Guides to Align an Object
48
Change the Stage Size
49
Resize Objects to Match the Stage Size
49
Specify Snap Alignment Settings
50
Align an Object Using the Alignment Guides
50
Align Objects Using the Align Panel
51
Snap Objects to each Other
51
Align Objects Using the Property Inspector
52
Align Objects Using the Grid and Arrow Keys
53
Summary
53
CHAPTER 7 Draw in Flash
55
Set up Your Workspace
56
Select a Shape Tool
56
Select Options to Create a Polygon
57
Draw a Polygon
57
Rotate the Shape
57
Use the Cut-Out Feature
58
Transform the Shape of Your Drawing
58
Copy Strokes
59
Draw with the Line Tool
59
Select and Add a Different Fill Color
59
Group the Shape
60
Create a Logo with the Pen Tool
60
Summary
61
CHAPTER 8: Create Symbols and Instances
63
Set up Your Workspace
63
About Creating Symbols
64
Create a Graphic Symbol
64
Duplicate and Modify an Instance of a Symbol
65
Modify a Symbol
65
Create a Movie Clip Symbol
66
Assign an Instance Name to the Movie Clip
66
Add an Effect to the Movie Clip
67
Summary
67
CHAPTER 9: Add Animation and Navigation to Buttons
69
Set up Your Workspace
70
Create a Button from Grouped Objects
70
Name a Button Instance
71
View the Hit Area by Enabling Buttons
71
Change the Hit Area of a Button
71
Align Buttons
72
Create Animation for a Button State
73
Add an Action to a Button
73
Add Navigation to a Button
74
Test the SWF File
74
Summary
75
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Getting Started (68 pages)
Brand:
MACROMEDIA
| Category:
Software
| Size: 0 MB
Table of Contents
Table of Contents
3
CHAPTER 1: Getting Started
5
About Flash
5
About Flash Player
6
What's New in Flash
6
Guide to Instructional Media
9
Using the Start Page
13
CHAPTER 2: Installing Flash
15
System Requirements
15
Installing and Activating Flash
16
Configuration Folders Installed with Flash
17
Changing or Removing Flash Player
19
Configuring a Server for Flash Player
19
CHAPTER 3: Getting to Know the Workspace
21
Using the Stage
22
Using the Timeline
23
Moving the View of the Stage
23
Using Frames and Keyframes
26
Using Layers
28
About the Main Toolbar and Edit Bar
33
Using the Tools Panel
33
Using the Grid, Guides, and Rulers
34
Using Panels and the Property Inspector
36
Setting Preferences in Flash
39
Customizing Keyboard Shortcuts
42
Using Context Menus
43
Accessibility in the Flash Authoring Environment
43
CHAPTER 4: Building Your First Application
49
Workflow for Building an Application
50
Examine a Completed Application
50
Create a New Document
52
Add Media Content
53
Add Navigation Controls
56
Add Motion and Basic Interactivity
58
Test the Application
59
Publish and View the Application
59
The Next Steps
60
Resources
61
Index
63
MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Tutorials Manual (20 pages)
Brand:
MACROMEDIA
| Category:
Software
| Size: 0 MB
Table of Contents
Table of Contents
3
Web Service Tutorial: Macromedia Tips (Flash Professional Only)
5
Connect to a Public Web Service
5
Create a User Interface and Bind the Components with the Web Service
7
XML Tutorial: Timesheet (Flash Professional Only)
11
Create the User Interface
12
Edit the Data
16
Xupdate Tutorial: Update the Timesheet (Flash Professional Only)
17
Update the Timesheet
18
Advertisement
Related Products
MACROMEDIA FLASH MX 2004 - FLASH LITE AUTHORING GUIDELINES FOR THE I-MODE SERVICE
MACROMEDIA COLDFUSION MX 61 - CONFIGURING AND ADMINISTERING COLDFUSION MX
MACROMEDIA COLFUSION MX 7 - INSTALLING AND USING COLDFUSION MX
MACROMEDIA COLFUSION MX 7-CFML
MACROMEDIA FREEHAND MX 11
MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
MACROMEDIA FLASH 8-INTRODUCTION TO FLASH LITE 2.X ACTIONSCRIPT
MACROMEDIA FLASH 8-LEARNING FLASH LITE 1.X ACTIONSCRIPT
MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY
MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2
MACROMEDIA Categories
Software
More MACROMEDIA Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL