Adobe Flex 3.0 Programming Action Script 3 Prog AS
User Manual: adobe Adobe Flex - 3.0 - Programming ActionScript Free User Guide for Adobe Flex Software, Manual
Open the PDF directly: View PDF
Page Count: 581 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- Chapter 1: About this manual
- Chapter 2: Introduction to ActionScript 3.0
- Chapter 3: Getting started with ActionScript
- Chapter 4: ActionScript language and syntax
- Chapter 5: Object-oriented programming in ActionScript
- Chapter 6: Working with dates and times
- Chapter 7: Working with strings
- Chapter 8: Working with arrays
- Chapter 9: Handling errors
- Basics of error handling
- Types of errors
- Error handling in ActionScript 3.0
- Working with the debugger versions of Flash Player and AIR
- Handling synchronous errors in an application
- Creating custom error classes
- Responding to error events and status
- Comparing the Error classes
- Example: CustomErrors application
- Chapter 10: Using regular expressions
- Chapter 11: Working with XML
- Chapter 12: Handling events
- Chapter 13: Display programming
- Chapter 14: Using the drawing API
- Chapter 15: Working with geometry
- Chapter 16: Filtering display objects
- Chapter 17: Working with movie clips
- Chapter 18: Working with text
- Chapter 19: Working with bitmaps
- Chapter 20: Working with video
- Basics of video
- Understanding the Flash Video (FLV) format
- Understanding the Video class
- Loading video files
- Controlling video playback
- Streaming video files
- Understanding cue points
- Writing callback methods for onCuePoint and onMetaData
- Using cue points
- Using video metadata
- Capturing camera input
- Advanced topics
- Example: Video Jukebox
- Chapter 21: Working with sound
- Basics of working with sound
- Understanding the sound architecture
- Loading external sound files
- Working with embedded sounds
- Working with streaming sound files
- Playing sounds
- Security considerations when loading and playing sounds
- Controlling sound volume and panning
- Working with sound metadata
- Accessing raw sound data
- Capturing sound input
- Example: Podcast Player
- Chapter 22: Capturing user input
- Chapter 23: Networking and communication
- Chapter 24: Client system environment
- Chapter 25: Printing
- Chapter 26: Using the external API
- Chapter 27: Flash Player security
- Flash Player security overview
- Overview of permission controls
- Security sandboxes
- Restricting networking APIs
- Full-screen mode security
- Loading content
- Cross-scripting
- Accessing loaded media as data
- Loading data
- Loading embedded content from SWF files imported into a security domain
- Working with legacy content
- Setting LocalConnection permissions
- Controlling access to scripts in a host web page
- Shared objects
- Camera, microphone, clipboard, mouse, and keyboard access
- Symbols
- != (inequality) operator 133
- !== (strict inequality) operator 133
- $ metacharacter 191
- $ replacement codes 137
- & (ampersand) 463
- ( ) (parentheses) metacharacters 191
- ( ) (parentheses) operators 61
- ( ) (XML filtering) operators 219
- * (asterisk) metacharacter 191
- * (asterisk) type annotation 47, 49, 54, 55
- * (wildcard) operator, XML 219
- + (addition) operator 134
- + (concatenation) operator, XMLList 217
- + (plus) metacharacter 191
- += (addition assignment) operator 134, 217
- , (comma) operator 45
- . (dot) metacharacter 191
- . (dot) operator 59, 76
- . (dot) operator, XML 211, 217
- .. (descendent accessor) operator, XML 217
- ... (rest) parameter 81
- / (forward slash) 190, 191
- : (colon) operator 49
- < operator 64
- == operator 133
- === operator 133
- > operator 64, 133
- >= operator 133
- ? (question mark) 191
- ?: (conditional) operator 69
- @ (attribute identifier) operator, XML 211, 219
- [ (left bracket) 191
- \ (backslash)
- ] (right bracket) 191
- ^ (caret) 191
- __proto__ 34
- __resolve 34
- | (pipe) 196
- Numerics
- A
- abstract classes 87
- accessor functions, get and set 94
- ActionScript
- about 33
- advantages of 5
- building applications with 21
- compatibility with previous versions 7
- description of 4
- development process 23
- documentation 2
- embedding in Flex MXML files 21
- history of OOP support 108
- new features in 5
- storing in ActionScript files 21
- tools for writing 22
- ways to include in applications 21
- writing with text editors 23
- ActionScript 1.0 109
- ActionScript 2.0, prototype chain 110
- ActionScript Virtual Machine (AVM1) 108
- ActionScript Virtual Machine 2 (AVM2) 108, 112
- activation object 83
- addCallback() method 551
- addEventListener() method 96, 231, 240
- addition (+) operator 134
- addition assignment (+=) operator 134
- additive operators 67
- addListener() method 231
- allowDomain() method
- allowFullScreen attribute 547
- allowInsecureDomain() method 471
- allowNetworking tag 545
- AllowScriptAccess parameter 558
- alpha channel masking 282
- alternation in regular expressions 196
- ampersand (&) 463
- animation 283
- anonymous functions 75, 80
- anti-aliasing text 367
- application/x-www-form- urlencoded 463
- ApplicationDomain class 287, 498, 549
- applications, development decisions 21
- apply() method 158
- arguments object 78, 79, 81
- arguments, passing by reference or value 78
- arguments.callee property 79
- arguments.caller property 81
- arguments.length property 79
- Array class
- arrays
- about 144
- array literals 60, 146
- associative 152
- cloning 156
- common tasks 145
- constructor 146
- creating 136, 146
- deep copy of 156
- delete operator 148
- examples 161
- indexed 145
- inserting elements 147
- iterating through 153
- key and value pairs 152
- length of 148
- maximum size 146
- multidimensional 155
- nested arrays and join() method 151
- object keys 153
- querying 151
- removing elements 147
- shallow copy 156
- sorting 148
- superconstructor 158
- terms 145
- typed arrays not supported 146
- using associative and indexed arrays 156
- as operator 51, 99
- -as3 compiler option 157
- AS3 namespace 114, 157
- ASCII characters 130
- assignment operators 69
- associativity, rules of 64
- asterisk (*) metacharacter 191
- asterisk (*) type annotation 47, 49, 54, 55
- asterisk (wildcard) operator, XML 219
- asynchronous errors 168
- asynchronous operation 241
- attribute identifier (@) operator, XML 211, 219
- audio playback, monitoring 447
- audio security 554
- avHardwareDisable property 538
- AVM1 (ActionScript Virtual Machine) 108
- AVM1Movie class 252
- AVM2 (ActionScript Virtual Machine 2) 108, 112
- B
- background color, making opaque 276
- backslash (\) character
- bar (|) character 196
- base classes 101
- basic concepts
- beginGradientFill() method 299
- big-endian byte order 472
- binary operators 64
- bitmap caching
- Bitmap class 251, 379
- bitmap data, copying 383
- bitmap printing 511
- BitmapData class 379
- BitmapData objects, applying filters 320
- bitmaps
- bitwise logical operators 68
- bitwise shift operators 67
- block-level scope 46
- Boolean class
- Boolean data type 53
- bound methods 83, 95
- brace operators ({ and }) in XML 216
- bracket ([ and ]) characters 191
- bracket ([ and ]) operators 76
- browse() method 556
- bubbles property 234
- bubbling phase 231
- build path 37
- built-in classes 34
- byte order 472
- ByteArray class 156
- bytes loaded 286
- C
- caching filters and bitmaps 321
- call() method (ExternalInterface class) 546, 558
- callback methods
- callee property 79
- caller property 81
- Camera class 411
- cameras
- cancelable property 233
- Capabilities class 497
- Capabilities.avHardwareDisable property 538
- Capabilities.localFileReadDisable property 538
- capture phase 231
- capturing camera input 411
- capturing user-selected text 360
- caret (^) character 191
- cascading style sheets. See CSS
- case replacement in strings 138
- case sensitivity 59
- casting 55, 56, 57
- catch blocks 171
- character classes (in regular expressions) 193
- character codes 452
- character ranges, specifying 194
- character-delimited string, combining arrays into 163
- characters
- charAt() method 133
- charCodeAt() method 133
- checkPolicyFile property 542
- childAllowsParent property 552, 553
- class definitions, multiple 498
- class inheritance 112
- class keyword 86
- class object 34, 111
- classes
- about 85
- about writing code for 25
- abstract not supported 87
- attributes 86
- base 101
- body 87
- built-in 34
- characteristics 12
- creating custom 24
- declaring static and instance properties 87
- default access control 89
- defining namespaces inside 87
- definitions of 86
- dynamic 52, 76, 89
- dynamic attribute 86
- inheriting instance properties 102
- internal attribute 89
- organizing 26
- private attribute 88
- private classes 35
- property attributes 88
- protected attribute 89
- public attribute 88
- public classes 38
- sealed 52
- static properties 106
- subclasses 101
- top-level statements 87
- classpath 37
- clearInterval() function 127
- clearTimeout() function 127
- client system environment
- Clipboard
- clock example 127
- clone() method (BitmapData class) 383
- clone() method (Event class) 235
- close bracket 191
- close parenthesis 191
- code, ways to include in applications 21
- ColdFusion 467
- collision detection at pixel level 382
- colon (:) operator 49
- colors
- ColorTransform class 314
- colorTransform property 314
- comma operator 45
- comments
- communication
- compatibility, Flash Player and FLV files 417
- compiler options 157
- compile-time type checking 49
- complex values 48
- compound literals 60
- computeSpectrum() method (SoundMixer class) 550, 553, 554
- concat() method
- concatenation
- concatenation (+) operator, XMLList 217
- conditional (?:) operator 69
- conditionals 69
- connect() method
- constants 62, 90, 233
- constructors
- content property (Loader class) 550
- content, loading dynamically 285
- contentLoaderInfo property 286, 557
- contentType property 463
- context menu, customizing 455
- cookies 475
- coordinate spaces
- Coordinated Universal Time (UTC) 123
- core Error classes in ActionScript 180
- core Error classes in ECMAScript 178
- createBox() method 313
- createGradientBox() method 299
- cross-domain policy files 555
- cross-scripting 550
- CSS
- cue points
- currentDomain property 557
- currentTarget property 235
- cursors, customizing 454
- custom classes 24
- custom data types, enumerations 96
- custom error classes 175
- custom LocalConnection client 468
- D
- data
- data property (URLRequest class) 463
- data structures 144
- data types
- dataFormat property 466
- date arithmetic 124
- Date class
- about 122
- constructor 123
- date property 123
- day property 124
- fullYear property 123
- getMonth() method 93, 124
- getMonthUTC() method 124
- getTime() method 124
- getTimezoneOffset() method 125
- hours property 124
- milliseconds property 124
- minutes property 124
- month property 123
- monthUTC property 124
- parse() method 93
- seconds property 124
- setTime() method 124
- Date objects
- date property 123
- Date() constructor 123
- dates and times
- day property 124
- debugger version, Flash Player 242
- debugging 170
- decode() method 463
- decrementing values 66
- default behavior
- default data type 34
- default parameter values 79
- default xml namespace directive 222
- Delegate class 238
- delete operator 77, 148
- delimiter character, splitting strings into array 136
- depth management, improved 253
- descendent accessor (..) operator, XML 217
- development
- device fonts 356
- Dictionary class
- dispatchEvent() method 241
- dispatching events 227
- display architecture 247, 294
- display content, loading dynamically 285
- display list
- display list object 230
- display object containers 248, 249, 255
- display objects
- about 248
- adding to display list 255
- adjusting colors 278
- animating 283
- assembling complicated objects 254
- bitmaps 377
- caching 273
- choosing a subclass 264
- clicking and dragging example 291
- common tasks 249
- creating 255
- depth management 253
- drawing API and 294
- events 263
- example 287, 304
- example of rearranging 292
- fading 280
- filtering 318, 319, 325
- grouping 255
- inheritance of core classes 251
- masking 281
- matrix transformation 314
- movie clips 346
- off-list 254
- positioning 265
- removing filters 320
- rotating 280, 313
- scaling 270, 271, 313
- security 552
- setting colors of 279
- size 270
- skewing 313
- subclassing 254
- terms 250
- translation 313
- types of 251
- user input and 450
- display programming, about 247
- displaying camera content on- screen 412
- DisplayObject class
- DisplayObjectContainer class 248, 252, 255
- displayState property 261, 547
- distance() method 309
- division by zero 54
- do..while loop 73
- Document Object Model (DOM) Level 3 Events specification 227, 230
- documentation
- dollar sign ($) metacharacter 191
- dollar sign ($) replacement codes 137
- DOM Events specification 227, 230
- domain property (LocalConnection class) 558
- domains, communicating between 471
- dot (.) metacharacter 191
- dot (.) operator 59, 76
- dot (.) operator, XML 211, 217
- dot syntax 59
- dotall flag in regular expressions 200
- dotall property of regular expressions 199
- double quotation mark in strings 132
- download() method 546, 556
- downloading files 483, 556
- drag-and-drop
- draw() method 287, 548, 550, 553, 555
- dynamic attribute 86
- dynamic classes 52, 76, 89
- dynamic text fields 356
- E
- E4X. See XML
- ECMAScript edition 4 draft 33
- ECMAScript for XML. See XML
- effects using blending modes 277
- embedded asset classes 98
- embedded fonts 366
- embedFonts property 366
- encoding ampersand (&) 463
- Endian.BIG_ENDIAN 472
- Endian.LITTLE_ENDIAN 472
- enterFrame event 232
- enumerations 96
- equality operators 68, 133
- Error classes
- error events 175, 241
- error handling
- ErrorEvent class 176, 242
- errors
- -es compiler option 157
- escape sequences in character classes 193
- Event class
- about 232
- bubbles property 234
- cancelable property 233
- clone() method 235
- constants 233
- currentTarget property 235
- eventPhase property 234
- isDefaultPrevented() method 235
- method categories 235
- preventDefault() method 230, 235
- stopImmediatePropogation() method 235
- stopPropogation() method 235
- subclasses 236
- target property 234
- toString() method 235
- type property 233
- event flow 227, 231, 234
- event handlers 229, 403
- event listeners
- event objects 227
- event target 227, 231
- Event.COMPLETE 463
- EventDispatcher class
- eventPhase property 234
- events
- exactSettings property (Security class) 557
- examples
- arrays 161
- building a Telnet client 486
- detecting system capabilities 504
- error handling 242
- filtering images 338
- GeometricShapes 115
- loading RSS data 224
- Matrix class 314
- multi-page printing 514
- rearranging display object layers 292
- regular expressions 203
- RunTimeAssetsExplorer 351
- SimpleClock 127
- sound application 443
- SpriteArranger class 289
- strings 138
- text formatting 369
- using external API with a web page container 524
- video jukebox 418
- Wiki parser 203
- WordSearch 456
- exceptions 167
- exec() method 202
- explicit type conversion 55
- extended flag in regular expressions 201
- extended property of regular expressions 199
- extends keyword 101
- external API
- external code, calling from ActionScript 521
- external containers, getting information about 520
- external data, loading 462
- external documents, loading data 464
- external SWF files, loading 350
- ExternalInterface class 519, 546, 558
- ExternalInterface.addCallback() method 551
- F
- facade class 444
- fading display objects 280
- fast-forwarding movie clips 348
- file size, smaller for shapes 253
- FileReference class 478, 546, 556
- FileReferenceList class 484, 556
- files
- filtering XML data 219
- filters
- final attribute 50, 94, 96, 105
- first sprite loaded 248, 286
- fixed property inheritance 112
- flags in regular expressions 199
- Flash authoring, when to use for ActionScript 22
- Flash cookie 475
- Flash Media Server 550
- flash package 36
- Flash Player
- Flash Video. See FLV
- flash.display package
- flash.geom package 307
- flash_proxy namespace 41
- Flex
- Flex, when to use for ActionScript 23
- flow control, basic concepts 20
- FLV
- focus, managing in interactions 455
- fonts
- for each..in statement 72, 153, 221
- for loops 71
- for loops, XML 211, 221
- for..in statement 72, 153, 221
- form feed character 132
- formatting text 362, 365
- forward slash 190, 191
- frameRate property 260
- frames, jumping to 349
- fromCharCode() method 133
- fscommand() function 467, 546, 558
- fullScreen event 261
- full-screen mode 261, 262, 547
- fullScreenSourceRect property 262
- fullYear property 123
- function closures 74, 78, 83
- function expressions 75
- function keyword 74, 91
- function objects 85
- function parameters 78
- function statements 74
- Function.apply() method 158
- functions
- G
- g flag (in regular expressions) 199
- garbage collection 76, 154
- generic objects 60, 152
- GeometricShapes example 115
- geometry
- getDefinition() method 557
- getImageReference() method 550
- getLocal() method 475, 546, 558, 559
- getMonth() method 93, 124
- getMonthUTC() method 124
- getRect() method 312
- getRemote() method 475, 546, 559
- getters and setters
- getTime() method 124
- getTimer() function 127
- getTimezoneOffset() method 125
- GIF graphics 285
- global flag in regular expressions 199
- global object 83
- global property of regular expressions 199
- global scope 83
- global variables 45
- gradients 299
- graphics, loading 285
- greater-than operator 64, 133
- greater-than-or-equal-to operator 133
- grouping display objects 255
- groups, in regular expressions 196
- H
- I
- i flag (in regular expressions) 199
- id3 property 554
- IDataInput and IDataOutput interfaces 472
- identifiers 38
- IEventDispatcher interface 98, 239, 240
- if statement 69
- if..else statement 69
- ignore flag in regular expressions 200
- ignoreCase property of regular expressions 199
- images
- IME
- IME conversion mode
- img tag in text fields, security 549
- implicit type conversion 55
- import statement 37
- importing SWF files 557
- incrementing values 66
- index positions in strings 133
- indexed arrays 145
- indexOf() method 135
- inequality (!=) operator 133
- infinity 54
- inheritance
- init event 232
- input text fields 356
- instance methods 93
- instance properties
- instance variables 91
- instanceof operator 51
- instances, creating 18
- int class, casting 56
- int data type 53
- InteractiveObject class 252
- interfaces
- internal attribute 37, 39, 89
- intersection() method 312
- intersects() method 312
- IPv6 462
- is operator 51, 99
- isDefaultPrevented() method 235
- isNaN() global function 47
- iterating though arrays 153
- J
- K
- L
- landscape printing 513
- lastIndexOf() method 135
- layering, rearranging 292
- left bracket 191
- left parenthesis 191
- left-associative operators 64
- length property
- less-than operator 64, 133
- less-than-or-equal operator 133
- level property 242
- lexical environment 83
- lineGradientStyle() method 299
- listeners. See event listeners
- literal values
- little-endian byte order 472
- load progress 286
- load() method (Loader class) 286, 542, 546
- load() method (Sound class) 542, 546, 549, 556
- load() method (URLLoader class) 463, 546
- load() method (URLStream class) 546, 556
- loadBytes() method 286, 542
- loaded media, accessing as data 553
- Loader class 285, 546, 554, 557
- LoaderContext class 286, 548, 554
- LoaderContext object 542
- LoaderInfo class
- loaderInfo property 286
- loading context 286
- loading graphics 285
- loadPolicyFile() method 546
- local storage 475
- local variables 45
- LocalConnection class
- LocalConnection.allowDomain() method 471, 558
- LocalConnection.allowInsecureDom ain() method 471
- LocalConnection.client property 468
- LocalConnection.connect() method 546
- localFileReadDisable property 538
- localToGlobal() method 309
- logical operators 68
- looping
- M
- m flag (in regular expressions) 199
- Macintosh, FLV files 418
- mantissa 53
- maps 152, 153
- masking display objects 281
- masking for alpha channel 282
- match() method 136
- Matrix class
- MAX_VALUE (Number class) 53
- memory management 154
- metacharacters, in regular expressions 191
- metadata, video 408, 410
- metasequences, in regular expressions 191, 192
- method property (URLRequest class) 463
- methods
- microphone
- Microphone class 234
- milliseconds property 124
- MIN_VALUE (Number class) 53
- minutes property 124
- MIP maps 387
- monitor, full-screen mode 261
- month property 123
- monthUTC property 124
- MorphShape class 252
- mouse cursors, customizing 454
- mouse security 560
- MouseEvent class 230, 236
- movie clips
- MovieClip class 252
- MovieClip objects, creating 350
- multiline flag in regular expressions 200
- multiline property of regular expressions 199
- multiple class definitions 498
- multiplicative operators 67
- mx.util.Delegate class 238
- N
- name conflicts, avoiding 36, 38
- named groups (in regular expressions) 198
- namespaces
- NaN value 54
- navigateToURL() function 546, 558
- negated character classes (in regular expressions) 194
- negative infinity 54
- nested functions 78, 83
- nested packages 36
- NetConnection class 546
- NetConnection.connect() method 546, 549
- NetStream class 542, 546, 549
- network byte order 472
- networking
- new operator 35
- newline character 132
- nodes in XML, accessing 218
- noncapturing groups in regular expressions 198
- null value 47, 53, 54, 154
- Number class
- Number data type 53
- O
- Object class
- object keys in arrays 153
- object literals 152
- object-oriented programming
- objects
- octal numbers 57
- off-list display objects 254
- on() event handlers 229
- onClipEvent() function 229
- onCuePoint event handlers 403
- opaque background 276
- open bracket ([) 191
- open parenthesis 191
- operators
- optional parameters 79
- overloaded operators 64
- override keyword 94, 95
- overriding getters and setters 106
- P
- package statement 86
- packages
- page properties 511
- parameters
- parentAllowsChild property 552, 553
- parentheses
- parse() method 93
- performance, improving for display objects 273
- period (.). See dot
- permissions
- pipe (|) character 196
- pixel snapping 380
- pixels, manipulating individual 381
- play() method (NetStream class) 546
- playback
- player. See Flash Player
- plus sign (+) 191
- PNG graphics 285
- podcast applications
- Point objects
- pointers (cursors), customizing 454
- points versus pixels 513
- polar() method 309
- polymorphism 101
- pop() method 147
- portrait printing 513
- ports, security 555
- positions
- positive infinity 54
- postfix operators 66
- prefix operators 66
- preventDefault() method 230, 235
- primary operators 65
- primitive types, implicit conversions 55
- primitive values 34, 48
- printArea parameter 511
- printing
- PrintJob statements, timing 512
- PrintJob() constructor 509
- priority parameter, addEventListener() method 240
- private attribute 88
- private classes 35
- private constructors not supported 92
- program flow 69
- programs, basic definition 9
- progress of audio playback 447
- ProgressEvent.PROGRESS 463
- properties
- property access operator 153
- protected attribute 89
- __proto__ 34
- prototype chain 34, 110
- prototype object 76, 110, 112
- prototype property 110, 112
- Proxy class 41
- public attribute 88
- public classes 38
- push() method 147, 158
- Q
- R
- Real-Tiime Messaging Protocol content security 550
- Rectangle objects
- recursive functions 80
- reference, passing by 78
- RegExp class
- regular expressions
- about 188
- alternation using pipe (|) metacharacter 196
- alternators and character groups 197
- capturing substring matches 197
- character classes 193
- characters in 191
- creating 190
- example 203
- flags 199
- forward slash delimiter 190
- groups 196
- metacharacters 191
- metasequences 191, 192
- methods for working with 202
- named groups 198
- parameters in String methods 202
- properties 199
- quantifiers 195
- searching 201
- relational operators 68
- replace() method 127, 137
- replacement codes 137
- replacing text in strings 136
- required parameters 79
- reserved words 62
- __resolve 34
- rest parameter 81
- return statement 77, 92
- reverse() method 148
- rewinding movie clips 348
- right bracket (]) 191
- right parenthesis 191
- right-associative operators 64
- right-click menu (context menu) 455
- rotate() method 313
- rotating display objects 280, 313
- rotating matrixes 313
- RSS data
- RTMP content security 550
- run time, determining user’s system 496
- S
- s flag (in regular expressions) 199
- sameDomain property 552
- scale() method 313
- scaling
- scenes, to demarcate timelines 349
- scope
- scope chain 83, 107
- script timeout limit 512
- scrolling text 358, 359
- sealed classes 52
- search() method 136
- search, in regular expressions 201
- searching strings 136
- seconds property 124
- security
- accessing loaded media as data 553
- allowNetworking tag 545
- bitmaps 553
- camera 557, 560
- Clipboard 560
- display list 552
- event-related 553
- files, uploading and downloading 556
- full-screen mode 547
- images 553
- img tag 549
- imported SWF files 557
- keyboard 560
- LocalConnection class 558
- microphone 557, 560
- mouse 560
- ports 555
- RTMP 550
- sending data 556
- shared objects 557, 559
- sockets 555
- sound 549, 554
- Stage 551
- URLLoader 555
- URLStream 555
- video 549, 555
- See also cross-domain policy files
- Security class 546
- Security.allowDomain() method
- Security.currentDomain property 557
- Security.exactSettings property 557
- SecurityDomain class 287, 549
- semicolons 61
- send() method (LocalConnection class) 468, 546
- sendToURL() function 546, 556
- Server, Flash Media 550
- server-side scripts 466
- setClipboard() method 560
- setInterval() function 127
- setters. See getters and setters
- setTime() method 124
- setTimeout() method 127
- shadow 108
- Shape class 252
- shared objects
- SharedObject class 475, 546
- SharedObject.getLocal() method 558, 559
- SharedObject.getRemote() method 559
- shift() method 147
- shortcut menu (context menu) 455
- significand 53
- SimpleButton class 252
- SimpleClock example 127
- single quotation mark in strings 132
- skewing display objects 313
- skewing matrixes 313, 314
- slash syntax 60
- slashes
- slice() method
- smoothing bitmaps 380
- Socket class 472, 546, 555
- socket connections 472
- socket server 473
- sorting arrays 148, 149
- sound
- Sound class 542, 546, 549
- SoundFacade class 444
- SoundLoaderContext class 542
- SoundMixer.computeSpectrum() method 550, 553, 554
- SoundMixer.stopAll() method 554
- source path 37
- speakers and microphones 441
- speed, improving for rendering 273
- splice() method 147
- split() method 136
- Sprite class 252
- sprite, first loaded 248, 286
- SpriteArranger class example 289
- Stage
- Stage class 231
- Stage owner 551
- StageDisplayState class 547
- standard mode 50, 76
- star (*). See asterisk
- static attribute 90
- static methods 92
- static properties
- static text
- static text fields 356
- static variables 90
- StaticText class 252
- status change events 177
- status-based error events 176
- stopAll() method (SoundMixer class) 554
- stopImmediatePropogation() method 235
- stopping movie clips 348
- stopPropogation() method 235
- storing data 475
- streaming video 402
- strict inequality (!==) operator 133
- strict mode
- String class
- charAt() method 133
- charCodeAt() method 133
- concat() method 134
- fromCharCode() method 133
- indexOf() method 135
- lastIndexOf() method 135
- match() method 136
- replace() method 137
- search() method 136
- slice() method 135
- split() method 136
- substr() and substring() methods 135
- toLowerCase() and toUpperCase() methods 138
- String data type 54
- string keys 152
- string representations of objects 134
- strings
- character position 135
- checking matches in regular expressions 202
- combining arrays into character- delimited string 163
- common tasks 130
- comparing 133
- concatenating 134
- converting case 138
- converting data type for XML attributes 223
- converting XML objects to 222
- declaring 131
- example 138, 139
- finding substrings 135
- index positions 133
- length 132
- matching substrings 197
- patterns, finding 135, 136
- replacing text 136
- substrings 135, 136
- terms 131
- style sheets. See CSS
- StyleSheet class 363
- subclasses 101
- substr() and substring() methods 135
- substrings
- super statement 92, 93, 105
- superclasses 101
- superconstructor for arrays 158
- SWF files
- switch statement 70
- symbols in regular expressions 191
- synchronous errors 167
- syntactic keywords 62
- syntax 59
- system, determining user’s 496
- System.setClipboard() method 560
- T
- tab character 132
- target node or phase 231
- target property 234
- Telnet client example 486
- terminating statements 61
- ternary operators 64
- test() method 202
- text
- about 355
- anti-aliasing 367
- assigning formats 362
- available types 357
- capturing input 360
- common tasks 356
- concepts and terms 356
- displaying 356
- formatting 362, 369
- formatting ranges of 365
- manipulating 359
- replacing 136
- restricting input 361
- saving to Clipboard 497
- scrolling 358, 359
- selecting 360
- sharpness 367
- static 252, 368
- thickness 367
- text editors 23
- text fields
- text line metrics 356, 374
- TextEvent class 230
- TextField class 230, 252
- TextFormat class 362
- TextLineMetrics class 374
- TextSnapshot class 368
- this keyword 93, 94, 95, 238
- throw statement 172
- time formats 123
- time intervals 125
- time unit values 123
- time zones 123, 125
- timeout limit 512
- Timer class
- timer events 125
- timers 125
- timing functions 126
- toLowerCase() method 138
- toString() method
- toUppercase() method 138
- traits object 112
- Transform class
- transform property 314
- transformation matrixes. See Matrix class
- translate() method 313
- translating matrixes 313
- try..catch..finally statements 171
- twips 513
- type annotations 45, 49
- type checking
- type conversion 55, 56, 222
- type mismatches 49
- type property (Event class) 233
- typed arrays 146
- types. See data types
- U
- UIEventDispatcher class 229
- uint class, casting 56
- uint data type 54
- unary operators 64, 66
- undefined 34, 54, 55, 146
- Unicode characters 130
- Uniform Resource Identifier (URI) 39
- union() method 312
- Universal Time (UTC) 123
- unordered arrays 152
- unshift() method 147
- untyped variables 34, 47
- upcasting 50
- upload() method 546, 556
- uploading files 480, 484, 556
- URIs 39
- URL encoding 463
- URLLoader class
- URLLoader constructor 463
- URLLoader.dataFormat property 466
- URLLoader.load() method 463
- URLLoaderDataFormat.VARIABLE S 466
- URLRequest instance 463
- URLRequest.contentType property 463
- URLRequest.data property 463
- URLRequest.method property 463
- URLRequestMethod.GET 464
- URLRequestMethod.POST 464
- URLs of loaded objects 286
- URLStream class 546, 555
- URLVariables class 462
- URLVariables.decode() method 463
- use namespace directive 41, 43, 114
- useCapture parameter, addEventListener() method 240
- user input
- user interactions, managing focus 455
- user’s system, determining at run time 496
- user-selected text, capturing 360
- useWeakReference parameter 154
- UTC (Coordinated Universal Time) 123
- V
- W
- X
- x flag (in regular expressions) 199
- XML
- accessing attributes 219
- ActionScript for 209
- basic concepts 207
- brace operators ({ and }) 216
- child nodes 218
- comments 211, 212
- common tasks 209
- concepts and terms 210
- documents 208
- E4X (ECMAScript for XML) 36, 207, 210
- filtering 219
- for each..in loops 72
- for loops 211, 221
- format for external API 522
- initializing variables 215
- loading data 215, 224
- methods 212
- namespaces 221
- parent nodes 218
- processing instructions 211
- properties 212
- socket server 473
- transforming 216
- traversing structures 217
- type conversion 222
- white space 212
- XML class 36
- XMLDocument class 36, 210
- XMLList objects
- XMLNode class 210
- XMLParser class 210
- XMLSocket class 216, 224, 472, 546, 555
- XMLSocket.connect() method 473, 546
- XMLTag class 210