First Edition Juni 2007
ISBN 978-0-596-52694-8
Weitere Informationen zu diesem Buch
Inhaltsverzeichnis |
Index |
Rezensionen |
Index
[ Symbols ], [ A ], [ B ], [ C ], [ D ], [ E ], [ F ], [ G ], [ H ], [ I ], [ J ], [ K ], [ L ], [ M ], [ N ], [ O ], [ P ], [ Q ], [ R ], [ S ], [ T ], [ U ], [ V ], [ W ], [ X ], [ Z ],
Symbols[ Top ]
. (dot), 78
+= (addition assignment operator), 33, 706
@* (attributes wildcard, E4X), 367
+ (concatenation operator), 47
? (conditional operator), 44
{ } (curly braces), 11, 14, 31
in XML literals, 358
interfaces, problems in, 162
.. (E4X descendant operator), 380
== (equality operator), 46
=== (strict equality operator), 50
= (equals sign), 19
< (less-than-operator), 46, 181
<= (less-than-or-equal-to operator), 181
&& (logical AND), 60
&& (logical AND operator), 182
! (logical NOT operator), 61
|| (logical OR), 58
|| (logical OR operator), 183
( ) (parentheses operator), 31, 32, 178
/* and */, 13
// (double forward slashes), 13
[ ] (square brackets), 371
arrays, creation with, 187
_sans font, 712
_serif font, 712
_typewriter font, 712
(see also operators, list of)
A[ Top ]
ABC (ActionScript bytecode), 5
abstract classes, 459
absence of support in ActionScript, 120
abstract methods, 120
abstract style classes, 459
access-control modifiers, 13
definition accessibility via, 296
instance methods, for, 34
instance variables, for, 22
namespaces for, 338-340
package importation and, 340
accessor methods, 69
Actions panel, 826
ActionScript, xix
pre-version 8 visual content tools, 458
programming language evolution, 279
ActionScript 3.0, xxi
tools for writing, 4
ActionScript bytecode (ABC), 5
ActionScript development tools, xxv
ActionScript virtual machine, 4
activation objects, 301
addChildAt( ) method, 471
ADDED_TO_STAGE event, 493-499
addedListener( ) method, 638
addedToStageListener( ) method, 606
addEventListener( ) method, 203, 205, 215, 223, 505
useCapture parameter, 509
useWeakReference parameter, 220
addition assignment operator (+=), 33, 183, 706
addObject( ) method, 166
addShape( ) method, 116
Adobe Flash, xix, xxv
Adobe Flex 2 SDK, xxv
Adobe Flex Builder, xxv
Adobe Integrated Runtime (see AIR)
Adobe AIR (Adobe Integrated Runtime), xxiii, 4
Flash Player, compared to, 696
allowDomain( ) method, 236, 418, 444
allowInsecureDomain( ) method, 446
ancestors, 103, 460
AND operator (&&), 60
animation, 610
Animator class, 624-627
SlidingText subclass, 626-627
Event.ENTER_FRAME events, 611-616
compared to Timer class animations, 623
frame rate, effect on, 615
loops, absence from, 610
nested animations, 832
TimerEvent.TIMER events, 616-622
compared to Event.ENTER_FRAME animations, 623
frame rate, effect on, 622
UIComponent class and, 627
velocity-based animation, 627
AnonymousListener class, 217
AntiAliasType class, 698
APIs (Application Programming Interfaces), 35
append, 195
appendText( ) method, 705
Apple class code, 128
Application Programming Interfaces (APIs), 35
application testing, security, 428
ApplicationDomain class, getDefinition( ) method, 814
applyFilter( ) method, 686
arrays, 186-201
anatomy of, 187
array access operator, 189
Array methods, 194-197, 198
Array( ) constructor, 189
creating, 187-189
with array literals, 187
with the new operator, 189
elements, 187
elements, adding to arrays, 193-197
concat( ) method, 197
direct addition of, 193
length variable, using, 193
push( ) method, 194
splice( ) method, 196
unshift method( ), 194
elements, indexing of, 187
elements, referencing, 189-191
retrieving values, 189
setting values, 190
elements, removing from arrays, 197-199
delete operator, 198
length variable, 198
pop( ) method, 198
splice( ), 199
unshift( ), 199
implementation in other programming languages, 188
length or size, 187
determination of, 191-193
multidimensional arrays, 200
toString( ) method, checking contents with, 199
.as files, 8
as operator, 149, 181
assignment expressions, 29
assignment operator, 29
asynchronous versus synchronous program execution, 800
at operator (@), 178
attackEnemy( ) method, 258
attribute( ) method (E4X), 368
attribute( ) method (XML), 359, 371
attributes, 12
attributes wildcard (E4X), 367
attributes( ) class instance method, 383
automatic tab order, 548
"Automatically declare stage instances" option, 842, 844
autoSize variable, 702
AVM1, 5
B[ Top ]
base class, 103
BasicShape class, 637
Ellipse subclass, 641
Polygon subclass, 642
beginBitmapFill( ), beginFill( ), and beginGradientFill( ) methods, 634
binary operators, 174
bit shift left reassignment operator (<<=), 184
bit shift right reassignment operator (>>=), 184
bit shift right unsigned reassignment operator (>>>=), 184
bitmap, 458
Bitmap class, 458, 460
bitmap images, 648
aged photograph effect, 684
Bitmap class, 649
BitmapData class (see BitmapData class)
color and positioning tools, 670
color channels, 649
color retrieval from pixel regions, 662
color, assigning to a region, 668-670
creating, 654-656
[Embed] metadata tag, embedding with, 810
examining, 658-664
external bitmaps, loading, 656-658
compile time loading, 657
runtime loading, 656
graphical effects tools, 686-694
filters, 687-694
graphics, copying to, 672-685
image formats, 656
image-based color picker, 660
loaded files, instantiating, 795
memory used by, freeing, 694
modifying, 664-671
pixels (see pixels)
pre-multiplied color values, 659
resizing, 671
transparency, effect on color-value retrieval, 659
width and heighth parameters, 654
BitmapData class, 649
applyFilter( ) method, 686
clone( ) method, 672
colorTransform( ) method, 686
compare( ) method, 664
copychannel( ) method, 672
copyPixels( ) method, 672
copyPixels( ) method (see copyPixels( ) method)
draw( ) method (see draw( ) method)
fillRect( ) method, 670
floodFill( ) method, 670
getColorBoundsRect( ) method, 664
getPixel32( ) method, 658
versus getPixel( ) method, 659
getPixels( ) method, 662
hitTest( ) method, 664
lock( ) method, 665
merge( ) method, 672
multiple Bitmap object representations of one BitmapData object, 655
noise( ) method, 686
object generation, 654
objects, associating with Bitmap objects, 654
paletteMap( ) method, 687
perlinNoise( ) method, 686
pixelDissolve( ) method, 687
scroll( ) method, 670
setPixel( ) method, 654, 664
setPixel32( ) method, 654, 664
ScribbleAS3 example, 666-668
setPixels( ) method, 654, 664, 668-670
threshold( ) method, 687
bitwise AND operator (&), 182
bitwise AND reassignment operator (&=), 184
bitwise left shift operator (<<), 180
bitwise NOT operator (~), 179
bitwise operations, 651
bitwise OR operator (|), 182
bitwise OR reassignment operator (|=), 184
bitwise signed right shift operator (>>), 180
bitwise unsigned right shift operator (>>>), 180
bitwise XOR operator (^), 182
bitwise XOR reassignment operator (^=), 184
blank keyframes, 825
block statements, 10
bold fonts, 713
Boolean datatype, conversions of other datatypes to, 152
Boolean logic and operators, 58-61
Boolean opposite operator (!), 179
bound methods, 67
Bourret, Ronald, 398
branching logic, 58
break statement, 48, 56
bubbling and non-bubbling events, 503
built-in errors, 241, 267
built-in events, 202
ButterflyGame, 217-220
Button symbols, 833
ByteArray, 662
C[ Top ]
call expressions, 31
call stack, 255
Caller class, 346
caloriesPerSecond static variable, 96
capture phase, 503
caret position, 717
Cascading Style Sheets (CSS), 727
case expressions, 48
casting, 146
as operator for casting to Date and Array classes, 149
upcasting and downcasting, 148
catch blocks, 242
character-level formatting, 708
charCode, 563
CheckBox class, 511
hierarchical handling of events, 512
child nodes, 354
child( ) method (XML), 359, 371
children, 460
children( ) method (XML), 360
Class class, 85
class libraries, 861
distributing, 861
as .swc files, 863-867
as .swf files, 867-873
source code sharing, 862
protecting with version control, 862
class scope, 297
classes, 6
access control modifiers, 12
ActionScript's native classes, 7
attributes, 12
base class, 103
class APIs, 35
class blocks, 11
class definitions, 11
class extensions, limitations, 161
class hierarchy, 103
class initializer, 84, 297
class interfaces, 35
class libraries (see class libraries)
class objects, 85
derived class, 103
dynamic classes, 280
troubleshooting, 281
inheritance (see inheritance)
multidatatype classes and interfaces, 161
naming of classes, 9
Object class, 104
prototype objects, augmentation with, 291
requirements for program compilation, 134
subclassing built-in classes, 113
classpath and program compilation, 134
clear( ) method, 636
clearChanged( ) method, 638
clickListener( ) method, 515
client runtime environments, 4
clone( ) method, 663, 672
closeListener( ) method, 805
code comments, 13
code sharing (see class libraries, distributing)
coder, 3
coding style and constructor arguments, 25
collision potential, instance variables and symbol instance names, 843
color channels, 649
color values, hexadecimal representation, 650
color, pixel values for, 649
colorTransform( ) method, 686
comments, 13
comments( ) class instance method (XML), 359, 370
compare( ) method, 664
compiler restrictions, 134
compilers, 5
compiling programs, 130-132
classpath, 134
Flash authoring tool, 130
Flex Builder 2, 131
just-in-time (JIT) compilation, 5
mxmlc, 133
reference error detection, 145
strict mode ignorance of type mismatch errors, 143
strict mode versus standard mode compilation, 135
completeListener( ) method, 206, 216
components, xxiv
composition, 117
delegation, 118
inheritance, versus, 117-120
compound expressions, 26
concat( ) method, 197
concatenation operator (+), 47
concatenation operator (+=), 183
conditional statements, 44-50
if, 44-48
switch, 48-50
configurable debugging messages, 249
Console class, 222
const keyword, 80
constants, 80
constructor arguments, 24
coding style and, 25
constructor bodies, 14
constructor methods, 14
in subclasses, 108
constructor parameters, 14, 24
constructors
required parameters, 24
containers, 460
assets, removing from, 475
depths and, 469-475
manipulation of objects in, 482-484
.swf file's main-class instance, descendant access to, 484-487
transformations to nested containers, 484
transformations, impact on children, 483
objects, removing from, 475
containment events, 487-499
ADDED_TO_STAGE and REMOVED_FROM_STAGE, 493-499
Event.ADDED and Event.REMOVED, 488-492
real-world example, 492
Control Panel Application classes, 230
copies of variables, 30
copyChannel( ) method, 663, 672
copyPixels( ) method, 663, 672, 681-685
alphaBitmapData parameter, 682
alphaPoint parameter, 683
destPoint parameter, 682
mergeAlpha parameter, 683
reuse of pixel values, 685
sourceRect parameter, 682
core display classes, 458
creator permissions, 418, 444
cross-domain policy files, 431
cross-scripting, 236, 417
cross-web site information theft, 424
CSMSettings class, 697
CSS (Cascading Style Sheets), 727
CSS class selectors, 732
curly braces ({ }), 11, 14, 31
in XML literals, 358
current object, 28, 33
currentTarget, 212
curveTo( ) method, 633
custom classes, 7
custom errors, 241
custom events, 202
custom exceptions, 248
custom graphical classes, 499
D[ Top ]
DataGrid class, 341
datatypes, 138-142
compatible types, 139
missing type annotations, warnings for, 144
operators and, 176
primitive types, 141
primitive types, conversion to, 150-152
type annotations or declarations, 140
type mismatch errors, detecting, 140
typed and untyped variables and parameters, 142
VirtualZoo class datatypes, 154-158
Date class, 38
declarations, 140
default behavior (events), 213
default variable values, 153
deferred reference counting, 272
definitions, 296
accessibiility by location and access-control modifiers, 296
delegation, 118
delete operator, 179, 198
delete operator (E4X), 394
depth, 469, 474
unoccupied depths, 469
derived class, 103
descendant nodes, 379
descendants, 103, 461
descendants( ) XML class instance method, 359
developer, 3
device fonts, 735
digest( ) method, 96
digestIntervalID instance variable, 97
dirty rectangle, 600
dispatchEvent( ) method, 223, 228
display API, 457
children, removing all, 477
containers (see containers)
containment events (see containment events)
core display classes, 458-462
ancestor and descendant objects, 461
extending custom subclasses, 461
root object, 461
(see also display list)
core disply classes
core display class hierarchy, 459
custom graphical classes, 499
display hierarchys, traversing objects in, 480
display list (see display list)
display object depth, 469
graphical content, 458
removing assets from memory, 476
supporting display classes, 458
display area, 461
display list, 462-487
Stage class, 462
display object depth, 469
display objects, 203
DisplayAssetLoader class, 801
socketDataListener( ) method, 804
DisplayObject class, 458, 459-461
ADDED_TO_STAGEand REMOVED_FROM_STAGE events, 493-499
subclasses, 460
DisplayObjectContainer class, 458, 460
addChild( ) method, 464
addChildAt( ) method, 471
Event.ADDED and Event.REMOVED events, 488-492
getChildAt( ) method, 480
getChildIndex( ) method, 471
removeChild( ) method, 475
re-parenting assets, 478
setChildIndex( ) method, 473, 475
subclasses, 461
swapChildren( ) and swapChildrenAt( ) methods, 473
DisplayObjectContainer, removing assets from memory, 476
distributor permission, 418
distributor permissions, 422, 429
division operator (/), 180
division reassignment operator (/=), 183
document class, 828-831
automatic assignment to .fla files with no class specification, 829
specification for .fla (Flash document) files, 829
document class path, 828
DOM (Document Object Model), 202, 353
dot (.), 78
do-while statement, 56
downcasting, 148
draw( ) method, 115, 638, 663, 672, 672-681
Alpha channel values and, 681
blendMode parameter, 673
clipRect parameter, 674
colorTransform parameter, 673
rasterizing a TextField, 675-677
rasterizing vector content, 677-680
ScribbleAS3 program revised, 677-680
smoothing parameter, 674
source parameter, 673
transformMatrix parameter, 673
uses of, 674
drawShape( ) method, 638
dynamic ActionScript, 279-294
dynamic classes, 280
troubleshooting, 281
dynamic instance variables, 280
adding new behavior to, 284-286
for-each-in and for-in loops, processing with, 282-284
function closure assignment to, 284-286
lookup tables, creating with, 287-289
functions, using to create objects, 289-291
prototype object chains, 292-294
prototype objects, augmenting classes with, 291
references to variables and methods, 286
dynamic binding, 115, 116
dynamic translation, 6
E[ Top ]
E4X (ECMAScript for XML), 353
descendant operator (..), 380
equality, determining, 407
expressions and results, 376
insignificant whitespace, 354
new XML content, creating, 387-396
adding new children, 391-393
attribute values, changing, 388
deleting elements and attributes, 394
new attributes and elements, adding, 390-393
replacing an element, 389
variable references to partial documents and updates, 394
XML elements, changing contents of, 387
XML entities for special characters, 395
string conversions, XML and XMLList instances, 404
XML and XMLList content-access methods, 359-376
XML and XMLList datatypes and classes, 355
XML data creation with, 357
XML data, filtering, 383-385
filtering predicate operator, 383
hasOwnProperty( ) method, 385
(see also XML)
eat( ) method, 32, 35
numberOfCalories parameter, 37
signature, 41
ECMAScript 4 specification, xxii
ECMAScript for XML (see E4X)
elements, 187
(see also arrays)
elements( ) XML class instance method, 359
Ellipse class, 601, 641
[Embed] metadata tag, 762, 807-818
bitmmap images, embedding, 810
display assets, embedding at compile time, 807
example, 816
files as binary data, embedding, 813
supported asset types, 809
SVG, embedding, 811
.swf files, embedding, 811
symbols from legacy files, 812
syntax, 808
embedded fonts, 713, 737
endGame( ) method, 222
ENTER_FRAME events, 611-616
compared to Timer class for animation, 623
EntryClass class, 857
equality operator (==), 46, 182
equality operator, strict (===), 182
equals sign (=), 19
Error class, 242
defining a custom Error subclass, 246
options, 247
multiple custom exception subclasses, 250
evaluation operator (,), 184
Event class, 203
eventPhase variable, 514
Event.INIT event, 768
Event.OPEN event and asset load progress indication, 776
Event.RENDER event, 601-609
Event.type property, 204
EventADDED and EventREMOVED containment events, 488-492
EventDispatcher class, 203
events, 202-240
animation, Event.ENTER_FRAME events, 611-616
animation, TimerEvent.TIMER events, 616-622
bubbling and non-bubbling, 503
code centralization via event flow, 511-514
current event phases, determining, 514-516
custom events, 221-233
custom toggle, 225-228
default behavior, preventing, 228-233
game over, 222-225
custom events and event flow, 526-530
default behavior, preventing, 213
definition, 209
display hierarchy mutation and event flow, 523-525
event listener list mutation, 525
event constants, 204
event dispatch phases, 503
event dispatches, 203
event dispatches, stopping, 518-522
event dispatching, 209
event flow, 503
event listeners, 202, 209
listener list, 216
memory management and, 216-220
priority, 214
return type and private declaration, 205
weak listener references, 220
events (continued)
event listener registration, 203-206
currentTarget, 212
event listener, creating, 205
event object datatype, determining, 204
event type name, determining, 204
register for an event, 205
two examples, 206
wait for an event, 206
event listener unregistration, 208
importance of, 221
event listeners and event flow, 505-511
adding event listeners, 505
event objects, 203, 209
accessing listener registration objects, 212
event priority and event flow, 522
event targets, 203, 209
accessing, 209-211
Event.RESIZE event, 207
handling across security boundaries, 236-240
allowDomain( ) events, 238
allowDomain( ): shared events, 236
hierarchical event dispatch, 502
input events (see input events)
IOErrorEvent.IO_ERROR events, 206
naming of, 205
object-targeted events, distinguishing from object desendant-targeted events, 516-518
shared events, 238
weaknesses in event architecture, 233-236
exceptions, 137, 241
exception handling, 241-267
built-in errors, 267
error conditions, 267
exception bubbling, 253-258
exception handling cycle, 241-244
finally blocks, 258-260
multiple types of exceptions, 244-253
configurable debugging messages, using, 249
exception type granularity, determing, 246
multiple custom Exception subclasses, 250
single custom exception types, using, 248
try statements with multiple catch blocks, 245
nested exceptions, 260-264
try/catch/finally blocks
control-flow changes in, 264-266
uncaught exceptions, 257
expressions, 26, 242
extends keyword, 102, 164
extension, 105
external display assets, loading, 762
[Embed] metadata tag, using, 762, 807-818
environment specific behavior for load failures, 779
Internet Explorer-specific load behaviours, 779
Loader class, using, 762, 763-781
asset instantiation, bitmaps and .swf files, 767
asset location, specifying, 764
compiler access to loaded class, arranging, 784-790
compile-time type checking for runtime-loaded assets, 781
compile-time type-checking, opting out of, 783
HTTPStausEvent, debugging, 780
instantiating runtime-loaded .swfs or bitmaps, 793-795
load errors, handling, 777-781
load operation, starting, 766
load progress, displaying, 772-777
loaded asset, displaying, 770
loaded asset, initializing and accessing, 767
Loader instance, creating, 763
location specification and Flash Player launching, 764
reflecting asset changes when recompiling, 817
Socket class, using, 762, 796-806
client-side receiving, 800-806
server-side sending, 796-800
unsupported or blocked protocols, 764
external-library-path technique, 784, 787-790
F[ Top ]
factorials, calculating, 95
FIFO stack, 195
file formats
.as files, 8
.swf, xxv, 5
file: protocol, 412
FileSender, 796
fillRect( ) method, 654, 670
filtering predicate operator (E4X), 383
final attribute, 112
finally blocks, 243, 258-260
fixed variables, 280
.fla files, 821
(see also Flash documents)
Flash, xix
Flash authoring tool, xxiv, 3, 821
Actions panel, 826
classes, preloading of, 852-855
compiling programs with, 130
standard mode compilation, enabling, 136
document class, 828-831
document class path and global class path, setting, 828
frame scripts, 826-828
frame types, 824
instance names for display objects, 848
Linkage Properties dialog, 834
playhead, 822
Stage, 822
.swc-based libraries, 865-867
creating, 865
using, 866
.swf files, creating with, 821
.swf-based libraries, creating in, 871
symbols
automatic declaration of stage instances, 842
instance names, 839
instance names, matching variables for, 841-844
instantiating via ActionScript, 847
linking multiple symbols to one superclass, 849-851
manually created symbol instances, accessing, 838-839
Movie Clip symbols (see Movie Clip symbols)
text fields, manually creating with, 759
Text Tool, 844
timeline scripting, 826-828
adding frame scripts to keyframes, 826
timelines
programmatic control of, 845-846
UI component set, 457
Flash compiler, 5
Flash CS3 and swf-based libraries, 872
Flash documents (.fla files), 821
document class, automatic assignment of, 829
main timeline, 822
process of export to .swf files, 822
.swf files, compiling from, 822
timelines, 822
Flash file format (SWF), xxv
Flash Lite, xxiii, 4
Flash Player, xxiii, 4
security restrictions (see security)
Flash runtime APIs, xxiv
Flash runtime clients, xxiii
flash.display.MovieClip document class, 829
flash.filters package, 687
FlashType renderer, tuning, 755
Flex 2 SDK, 5
Flex Builder, 3
Flex Builder 2
.swf-based libraries, 868-871
application point of entry, triggering, 858
cleaning projects, 817
compiling programs with, 131
enabling standard mode compilation, 136
projects, creating, 857
.swc-based class libraries, 863-865
creating, 863
using, 864
.swf-based libraries
creating in, 868
using in, 869
UI component example, 859
Flex compiler, 5
Flex framework, xxiv, 457, 856
UI component set, 457
floodFill( ) method, 654, 670
focus events, 548-555
Flash Player built-in focus-event types, 551-555
focusing objects with the mouse, 550
descendant focus, handling through a single ancestor, 550
tab order and automatic tab order, 548
Font class, 697
fonts, 735
availability, determining, 749
embedded font outlines, 737
Flash authoring tool, embedding in, 737
Flex Builder 2 and mxmlc, embedding in, 738-741
embedded fonts, 713
glyph availability, determining, 751
loading at runtime, 745-748
missing fonts and glyphs, 748
_sans, _serif, and _typewriter font names, 712
size, specifying, 709
FontStyle class, 698
FontType class, 698
Food class code, 128
for loops, initialization statements, 57
for statements, 57
for-each-in and for-in loops, 282-284
XML processing with, 377-379
forward referencing, 91
frames, 822
frame rate, 822
effect on Event.ENTER_FRAME animations, 615
TimerEvent.TIMER event animations, effect on, 622
frame scripts, 587, 826-828
prohibited code, 827
timeline scripting, 827
variable and function definitions, 831
front and back end classes, 117
fully qualified class names, 11
functions, 87-92
as values, 93
Function class literal syntax, 93
global functions, 89
nested functions, 90
object creation using, 289-291
package-level functions, 88
recursive functions, 95
source-level functions, 91
Virtual Zoo, usage in, 96
VirtualPet class with included functions, 99
function closures, 87
assignment to dynamic instance variables, 284-286
function definitions, 14
function keyword, 14, 31, 87
function scope, 299
G[ Top ]
Game class, 222
garbage collection, 269-278
bitmap images, 694
deactivating objects, 274
demonstration, 277
eligibility, 269
garbage collection cycles, 272
garbage collection roots, 269
incremental mark and sweep, 272
intentional disposal of objects, 273
object reuse versus disposal, 273
reachable objects eligible for garbage collection, 272
unreachable objects, 269
get method, 72
variable names and, 74
getAge( ) method, 39
getChildAt( ) method, 480, 838
getChildByName( ) method, 840
getChildIndex( ) method, 471
getColorBoundsRect( ) method, 664
getColumnIndex( ) method, 342
getDefinition( ) method, 814
getItems( ) method, 331
getItemTypes( ) method, 332
getName( ) method, 70
getPixel( ), 659
getPixel32( ), 659
getPixel32( ) method, 658
ColorPicker, 660
getPixels( ) method, 662
getRestrictedNamespace( ) method, 343
getter methods, 69
getTextFormat( ) method, 716
global class path, 828
global functions, 89
global scope, 296
Graphic symbols, 833
Graphics class, 465, 629-637
beginBitmapFill( ), beginFill( ), and beginGradientFill( ) methods, 634
clear( ) method, 636
curveTo( ) method, 633
lineStyle( ) method, 630
lineTo( ) method, 630
moveTo( ) method, 634
greater-than operator (>), 181
greater-than-or-equal-to operator(>=), 181
GreetingApp class, 464-469
GridFitType class, 698
H[ Top ]
handling events (see events)
hard returns, 702
Has-A relationships, 119
hasChanged( ) method, 638
hitListener( ) method, 520
hitTest( ) method, 664
HTML text formatting, 719-726
interactions between text and htmlText variables, 724
quoting attribute values, 724
special character entities supported by ActionScript, 724
tags and attributes supported by ActionScript, 720-723
unrecognized tags and attributes, 726
I[ Top ]
IconPanel class, 492
identity theft using email, 423
IDEs (integrated development environments), 3
IEventDispatcher interfac, 203
if statements, 44-48
chaining, 47
else omitted, 47
ImageLoader class, 274
implements keyword, 161
in operator, 181
inequality operator (!=), 182
information theft, 424
inheritance, 101-104
code reuse, 114
composition, versus, 117-120
dynamic binding, 115-117
extension, 105
hierarchical modeling, 114
interface inheritance, 164
Is-A, Has-A, and Uses-A, 119
noninheritance of static methods and variables, 104
overridden instance methods, invoking, 107
overriding instance methods, 105
polymorphism, 115-117
preventing extension of classes and overriding of methods, 112
redefinition, 105
reuse, 105
subclassing built-in classes, 113
theory, 114-120
inheritance tree, 103
initialization statements, 57
initListener( ) method, 771
input events, 531
Flash Player-level input events, 580-585
Event.ACTIVATE and Event.DEACTIVATE, 582
Event.MOUSE_LEAVE, 585
Event.RESIZE, 583
input-event types, 580
focus events (see focus events)
general rules governing, 531
keyboard-input events (see keyboard-input events)
mouse-input events (see mouse-input events)
text-input events (see text-input events)
insignificant whitespace, 354
instance members, 42
instance method scope, 298
instance methods, 31
access-control modifiers for, 34
arbitrary number of arguments, 75
bound methods, 66
get and set methods, 72-75
variable names and, 74
terminology compared, C++ and Java, 86
this keyword, omitting from code, 64-66
instance variables, 20-23, 30
access-control modifiers, 22
collision potential with symbol instance names, 843
private accessor modifier, used on, 68
static variables of the same name, 78
terminology compared, C++ and Java, 86
instanceof operator, 182
instances, 6
int datatype, conversions of other datatypes to, 151
integrated development environments (IDEs), 3
InteractiveObject class, 458, 460
interfaces (ActionScript), 159
as datatypes, 139
curly braces, problems with, 162
method declarations, 162
methods, definition before compilation, 163
methods, listing of, 161
multidatatype classes and, 161
multiple datatype example with arrays, 165-170
interfaces (ActionScript) (continued)
naming conventions, 164
reasons for, 159-161
subinterfaces and superinterfaces, 164
syntax and use, 162-165
inheritance, 164
interface naming conventions, 164
marker interfaces, 165
interfaces (GUIs or APIs), 159
internal access-control modifiers, 34
internal attributes, 13
invoke, 32
IOErrorEvent.IO_ERROR events, 206
ioErrorListener( ) method, 206
is operator, 181
Is-A relationships, 119
isDefaultPrevented( ) method, 214, 228
italic fonts, 713
Items class, namespace usage in, 326
iteration, 51
J[ Top ]
JIT (just-in-time compilation), 5
K[ Top ]
keyboard focus, 548
keyboard-input events, 555-565
characters, mapping to keys, 563
global keyboard-event handling, 556
key code, 558
most recent key-press or -release input, determining, 558-561
multi-location keys, 560
object specific keyboard-event handling, 557
simultaneous key presses, detecting, 561
text-input events, in contrast to, 555
keyframes, 824
keywords, 9
KidsGame class, namespace usage in, 326
L[ Top ]
late binding, 116
length variable, 191, 193, 198
less-than operator (<), 181
less-than-operator (<), 46
less-than-or-equal-to operator (<=), 181
library-path technique, 784
library-path technique for compiler access to loaded class, 785-787
LIFO stacks, 195
lineStyle( ) method, 630
lineTo( ) method, 630
Linkage Properties dialog, 834
list processing with loops, 52-55
listener list, 216
Loader class, 461, 762, 763-781
ActionScript 2.0 tools replaced by, 762
display assets, loading with, 762, 763-781
asset instantiation, bitmaps and .swf files, 767
asset location, specifying, 764
compiler access to loaded class, arranging, 784-790
compile-time type checking for runtime-loaded assets, 781
compile-time type-checking, opting out of, 783
HTTPStausEvent, debugging, 780
instantiating runtime-loaded .swfs or bitmaps, 793-795
load errors, handling, 777-781
load operation, starting, 766
load progress, displaying, 772-777
loaded asset, displaying, 770
loaded asset, initializing and accessing, 767
Loader instance, creating, 763
external bitmaps, loading with, 656
load( ) method, 766
runtime loaded .swf assets, removing, 806
security limitations, 763
unload( ) method, 806
LoaderInfo object, 768
local name, 305
local realm, 412
local realms, 413
local sandboxes, authorized and prohibited socket connections, 422
local security-sandbox-types, comparisons, 425-429
local variables, 19
constructor parameters, 24
local-trusted .swf files, 414
local-trusted security-sandbox-type, 414
authorized and prohibited operations, 421
local-with-filesystem .swf files, compiling, 425
local-with-filesystem security-sandbox-type, 414
authorized and prohibited operations, 420
default assignment, 429
local-with-networking .swf files, compiling, 426
granting local trust, 427
local-with-networking security-sandbox-type, 414
authorized and prohibited operations, 421
lock( ) method, 665
logical AND (&&), 60
logical AND operator (&&), 182
logical NOT operator (!), 61
logical OR (||), 58
logical OR operator (||), 183
LoginApp.fla, 849
LoginForm class, 849
login form symbols, associating with, 850
LoginManager class, 851
lookup tables, 287-289
object literals, making with, 289
loops, 50-58
animations, absence from, 610
break statement, ending with, 56
do-while statement, 56
for statement, 57
list processing, 52-55
loop iterator or index, 52
loop update, 52
while statement, 50-52
M[ Top ]
magic values, 80
main classes, 8
constructor methods of, 15
main timeline, 822
marker interfaces, 165
Marston, David, 398
maxCalories static variable, 78
maxNameLength static variable, 78
members, 42
memory management, 272
bitmaps, freeing from, 694
intentional disposal of objects, 273
(see also garbage collection)
merge( ) method, 663, 672
methods
abstract methods, 120
accessor methods, 69
function closures, compared to, 87
method arguments, 36
method body, 31
method calls with unknown numbers of parameters, 75
method parameters, 36
method return values, 38
method signatures, 41
mutator methods, 69
object state, usage on, 68-72
parentheses operator in documentation, 32
static methods, 82-85
MinimalMXML.mxml, 859
modifier methods, 69
modulo or remainder operator (%), 180
modulo or remainder reassignent operator (%=), 183
MorphShape class, 460
MouseEvent class, 532
mouse-input events, 532-547
Flash Player built-in mouse events, 532
focusing objects with, 550
modifier keys and, 563
mouse pointer position, finding, 541
overlapping display objects and, 540
registering of event listeners, 537
moveTo( ) method, 634
movie clip, 458
Movie Clip symbols, 833, 833-837
composition-based alternative to linked classes, 851
linked classes, 834-837
specifying the classes, 835
MovieClip class, 281, 461
descendant classes of, 830
stop( ) method, 828
vector drawing support, 629
multidatatype classes and interfaces, 161
multiline variable compared to wordwrap, 702
multiplication operator (*), 180
multiplication reassignment operator (*=), 183
mutator methods, 69
MXML, 3, 856
mxmlc, 5
.swf file compilation, 869
N[ Top ]
namespaces, 304
access-control modifiers, for, 338-340
package importation and, 340
accessibility, 317-321
ActionScript, 305
benefits of, 304
C++ versus ActionScript namespaces, 306
compiler bugs, Flex Builder 2 and Flash CS3, 340
creating, 307-310
explicit versus implicit URIs, 309
namespace definition, 307
namespace URIs, 307
examples, 314-317, 341-352
framework-internal visibility, 341
program nodes, 346-352
Namespace class, 309, 323
namespace identifiers, 308
namespace keyword, 307, 310
namespace values, assigning and passing, 323-334
namespaceIdentifier, 310, 335
open namespaces, 334
scope and, 335
open namespaces and the use namespace directive, 334-338
opening multiple namespaces, 337
package-level namespace definition, 308
permission-based access control, 342
qualified identifiers, 312-314
qualifier namespaces, 310
use namespace directive, 334
variable and method definitions, qualifying with, 310-312
vocabulary, 304, 309
XML namespaces, 398-404
namespace-qualified elements and attributes, accessing, 398
namespace-qualified elements and attributes, creating, 402
native classes, 7
nested animations, 832
nested arrays, 188, 200
nested functions, 90
new operator, 178
arrays, creating with, 189
newQuestion( ) method, 333
nextSibling( ) method, 367
node kinds, 355
nodes, descendant nodes, 379
noise( ) method, 686
NOT operator (!), 61
Null datatype, 138, 153
null values, 153
Number datatype, conversions of other types to, 151
O[ Top ]
Object class, 104
Object datatype, 138
object with dynamic variables operator {x:y}, 178
object-oriented programming (OOP), 7
objects, 6
activation objects, 301
class objects, 85
creating, 16-19
current object, 28, 33
deactivating of, 276
functions, creating with, 289-291
instantiation, 16
methods, usage on object state, 68-72
prototype objects, 291
unreachable objects, 269
values, 19
one-dimensional arrays, 200
OOP (object-oriented programming), 7
open namespaces, 305, 334
operands, 26
operators, 26, 174-184
datatypes and, 176
list of, 177-184
operands, number of, 174
operator associativity, 175
operator precedence, 174
OR operator (||), 58
overridden instance methods, invoking, 107
override keyword, 105
overriding instance methods, 105
P[ Top ]
package blocks, 10
package definition directives, 9
package-level functions, 88
packages, 9
class names and, 9
matching directory structure to, 10
naming, 10
paletteMap( ) method, 687
paragraph-level formatting, 708
paragraph-level text formatting, 714
parameter/variable name conflicts, 65
parameters, typed and untyped, 142
parent nodes, 354
parent( ) XML class instance method, 359
parentheses ( ) operator, 178
parentheses operator ( ), 31, 32
parents, 460
perlinNoise( ) method, 686
pixelDissolve( ) method, 687
pixels
color assignment tools, 670
color setting, methods for, 654
color values, 649
bitwise operations, retrieval with, 651
hexadecimal format, 650
color, assigning to a region, 668-670
Pixel class, 651
positioning on bitmap images, 648
repositioning, 670
reusing a collection of values, 685
playhead, 822
plus operator (+), 180
Point class, 82
policy files, 429-444
creating, 431
cross-domain policy files, 431
obtaining permission to access content as data, 435
obtaining permission to load data, 433
posting, 432
socket connections, authorizing, 438-444
HTTP-based policy file retrieval, 442
socket-based policy file retrieval, 440
Polygon class, 642
Rectangle subclass, 643
Star subclass, 643
polymorphism, 115-117
pop( ) method, 198
populateUserList( ) method, 260
portability, 4
post-event updates, 587, 596-600
automatic updates, 600
updates for timer events, 598
postfix decrement operator (x--), 179
postfix increment operator (x++), 179
prefix decrement operator (--x), 179
prefix increment operator (++x), 179
pre-multiplied color values, 659
preventDefault( ) method, 213, 228, 567
previousSibling( ) method, 366
primitive types, 141
conversion of other datatypes to, 150-152
private access-control modifiers, 34
processingInstructions( ) class instance method (XML), 359, 370
program, 3
program nodes, 346-352
program point of entry, 8
programmer, 3
programming languages, 3
ProgressEvent.SOCKET_DATA event, 800
properties, 42
protected access-control modifiers, 34
prototype object chains, 292-294
prototype objects, 291
pseudo-variables, 74
public access-control modifiers, 34
public attributes, 12
push( ) method, 194
pushing, popping, and stacks, 195
Q[ Top ]
QName class, 409
qualified identifiers, 305, 312-314
qualifier, 305
qualifier namespace, 305
R[ Top ]
readBytes( ) method, 804
Rectangle class, 166, 643
recursive display list tree traversal, 481
recursive functions, 95
redefinition, 105
redraw region, 600
reference errors, 137
detection at compile time, 145
references (variables), 30
regular frames, 824
remote realms, 412, 413
remote regions, 413
remote security-sandbox-type, 414, 419
authorized and prohibited socket connections, 422
REMOVED_FROM_STAGE event, 493-499
removedListener( ) method, 638
removeEventListener( ) method, 208, 217, 510
renderListener( ) method, 604, 638
replace( ) XML instance method, 389
replaceText( ) method, 706, 717
requestDraw( ) method, 638
required constructor parameters, 24
resizeListener( ) function, 208
ResizeMonitor class, 207
resource creators, 411
resource distributors, 411
permissions, 429
(rest) parameter, 75
restricted methods and variables, 343
retriever methods, 69
return statements, 38
return values, 38
reuse, 105
RGB channels, 650
root object, 461
rotateChildren( ) method, 481
rotating rectangles, 480
running programs, 132
runningman.fla, 825
document class for, 829
runtime APIs, xxiv
runtime clients, Flash, xxiii
S[ Top ]
safe casts, 148
scheduled updates, 587, 587-596
exclusion from code blocks, 593
frame rate and, 588
frame rate, designated versus actual, 595
frame rate, setting, 594
scopes, 295-302
available scopes, code summary, 300
class scope, 297
definitions, accesibility by location and access-control modifiers, 296
function scope, 299
global scope, 296
instance method scope, 298
internal details, 300
nesting of, 295
open namespaces and, 335
scope chain, 295
static method scope, 298
with statement, scope chain expansion using, 302
screen updates, 587
Event.RENDER event, optimization with, 601-609
post-event updates (see post-event updates)
redraw region, 600
scheduled updates (see scheduled updates)
scroll( ) method, 670
sealed classes, 280
security, 411-454
accessing Loader classes instance variable content, 453
accessing-content-as-data operations, authorizing, 431-438
ActionScript restrictions, 416-421
accessing content as data, 417
cross-scripting, 417
loading content, 416
loading data, 417
security-sandbox-types for different restrictions, 418-421
additional information sources, 412
application testing, 428
creator permissions, 444
developers, automatic trust of, 428
email attachments and Flash Player security, 423
example scenarios, 422
harmful generalizations concerning, 415
information theft, 424
cross-web site theft, 424
internet subdomains, accessing, 453
loading-data operations, authorizing, 431-438
local security-sandbox-types
comparisons, 425-429
policy files (see policy files)
realms, 412
resource distributors and resource creators, 411
security domains, 450-452
security violations, handling, 448-450
security-sandbox-types, 413
assignment of types, 414
default local type, 429
remote type, 419
type verification, importance of, 429
sockets, 422
.swf files and, 411
Serializable datatype and interface, 166
serialize( ) method, 165, 166
options for implementation, 169
Serializer class, 166
extension by other classes, 167
set method, 73
variable names and, 74
setAlpha( ) method, 652
setChanged( ) method, 638
setChildIndex( ) method, 473, 475
setFillStyle( ) method, 638
setInterval( ) function, 97
setName( ) method
exception generation using, 242
setPixel( ) method, 654
setPixel32( ) method, 654
ScribbleAS3 example, 666-668
setPixels( ) method, 654, 668
setRed( ) method, 652
setSize( ) method, 106, 108, 111
setStrokeStyle( ) method, 638
setter methods, 69
setTextFormat( ) method, 710
assignment of text prior to formatting, 713
beginIndex and endIndex parameters, 710
shadowing of static variables by instance variables, 78
Shape class, 460
vector drawing support, 629
Shape objects, 465
ShapeRandomizer class, 645
sheltered class, 343
ShelteredClass class, 344
siblings, 354
sign change operator (-), 179
signatures, 41
simple conditional operator (?:), 183
simple identifiers, 312
sky.fla, 836-855
preloading of classes, 853
SlideShow class, 275
SlidingText class, 626-627
smoothing, 674
Socket class, 762, 796-807
connect( ) method, 804
creating and connecting to sockets, 804
display assets, loading with, 796-806
client-side receiving, 800-806
server-side sending, 796-800
ProgressEvent.SOCKET_DATA event, 804
readBytes( ) method, 804
SOCKET_DATA event, 800
socketDataListener( ) method, 804
sockets
authorizing connections with policy files, 438-444
granting local trust, 427
security, 422
SSL (Secure Sockets Layer), 412
soft wrap, 702
source code, 3
source-level functions, 91
source-path technique, 784
sparse arrays, 187
special characters, XML entities for (E4X), 395
specialize, 103
splice( ) method, 196, 199
Sprite class, 458, 461
graphics instance variable, 466
Movie Clip symbol instances and, 834
vector drawing support, 629
square brackets [ ], creating arrays using, 187
square brackets([ ]), 178
src (source), 8
stacks, 195
Stage, 822
Stage class, 207, 461, 462
focus variable, 548
stage owner, 464
stage.invalidate( ) method, 601
standard mode compilation, 135
Star class, 643
statements, 10, 172-173
conditionals (see conditional statements)
loops (see loops)
static attribute, 77
static method libraries, 113
static method scope, 298
static methods, 82-85
inheritance and, 104
limitations compared to instance methods, 83
terminology compared, C++ and Java, 86
static variables, 77-80
access-control modifiers, 77
constants, 80
inheritance and, 104
instance variables of the same name, 78
terminology compared, C++ and Java, 86
StaticText class, 460, 697
stop( ) method, 828
StorageManager class, 166
strict equality operator (===), 50
strict mode compilation, 135
compilation time ignorance of type mismatch errors, 143
operand value and datatype mismatches, 176
string comparisons, formatting of, 47
String datatypes, conversions of other datatypes to, 152
StyleSheet class, 697, 708, 726-735
CSS class selectors, 732
formatting text with externally loaded style sheets, 733-735
formatting text with programatically created style sheets, 730
formatting XML tags with CSS, 733
style sheet limitations in ActionScript, 729
supported CSS style properties, 728
subclasses, constructor methods in, 108
subinterface, 164
subtraction operator (- ), 180
subtraction reassignment operator (-=), 183
subtype inheritance, 114
subtypes, 139
SunsetViewer class, 763
createProgressIndicator( ) and load( ) methods, 772
load-error handling, 777
super keyword, 109
super operator, 107
superclass, 102
superinterface, 164
supertypes, 139
supporting display classes, 458
Sushi class code, 129
swapChildren( ) and swapChildrenAt( ) methods, 473
.swc files, 814
class libraries, distributing as, 863-867
Flash authoring tool, creating in, 865
Flash authoring tool, using in, 866
Flex Builder 2, creating in, 863
Flex Builder 2, using in, 864
SWF (Flash file format), xxv, 5
.swf files, xxv, 5
class libraries, distributing, 867-873
Flash authoring tool, creating in, 871
Flash CS3, using in, 872
Flex Builder 2, creating in, 868
Flex Builder 2, using in, 869
embedded files, accessing classes in, 814
Flash authoring tool, automated export in, 862
Flash authoring tool, creating with, 821
Flash Player security and, 411
loaded files, instantiating, 793-795
main class, 463
class extensions in ActionScript 3.0, 465
mxmlc, compiling with, 869
remote .swf files, 414
removing runtime loaded assets, 806
switch statement, 48-50
symbol instance names, collision potential with instance variables, 843
symbols, 833-848
instance names, 839
automatic declaration of stage instances, 842
matching variables for, 841-844
manually created symbol instances, accessing, 838-840
synchronous versus asynchronous program execution, 800
T[ Top ]
tab order, 548
target phase, 503
technical reviewers, xxx
ternary operators, 174
test expression, 44
text API, 696
constant-value classes, 698
core classes, 696-698
creating and displaying text, 699-705
automatic resizing, 702
border and background, 701
modifying text field content, 705-708
resizable right and bottom borders, 703
rotated, skewed, or transparent text, 705
wordwrapping, 701
embedded text rendering, normal and advanced modes, 752
FlashType renderer, tuning, 755
fonts, 735
availability, determing, 749
embedded font outlines, 737
embedded fonts, requirement for separate bold and italic fonts, 713
font outlines, embedding in the Flash authoring tool, 737
font outlines, embedding in the Flex Builder 2 and mxmlc, 738-741
glyph availability, determining, 751
loading at runtime, 745-748
missing fonts and glyphs, 748
text API (continued)
formatting text, 708-735
embedded fonts, using, 741-745
HTML (see HTML text formatting)
StyleSheet class (see StyleSheet class)
TextFormat class (see TextFormat class)
text field input, 755-759
text fields, manual creation with Flash authoring tool, 759
text field, 458
Text Tool, 844
TextColorType class, 698
TextDisplayMode class, 698
TextField class, 697
autoSize variable, 702
getTextFormat( ) method, 716
TextField objects, 699
TextFieldAutoSize class, 698
TextFieldType class, 698
TextFormat class, 697, 708, 709-718
default text format, 717
embedded fonts, requirement for separate bold and italic fonts, 713
formatting information, retrieving for one or more characters, 716
formatting variables, 711
character-level variables, 712
paragraph-level variables, 712
paragraph-level formatting, 714
setTextFormat( ) method, 710, 713
TextFormat objects, creating, 709
TextFormatAlign class, 698
text-input events, 565-580
Event.SCROLL, 571-577
TextEvent.LINK, 577-580
TextEvent.TEXT_INPUT and Event.CHANGE, 567-570
text-input-event types, 565
textInputListener( ) method, 507, 508
TextLineMetrics class, 697
TextRenderer class, 697
TextSnapshot class, 697
this keyword, 64
function closures and, 92
threshold( ) method, 687
throw statements, 241, 242
control flow changes caused by, 264
timelines, 822
main timeline, listing children of, 838
timeline scripting, 827
TimerEvent.TIMER events, 616-622
compared to ENTER_FRAME events for animation, 623
TimerEvent.updateAfterEvent( ) method, 598
ToggleEvent.TOGGLE_ATTEMPT event type, 229
toggles, 61
toString( ) method, 199
hexadecimal color values, generation with, 651
tree nodes, 353
try statements, 243
with multiple catch blocks, 245
try/catch/finally statements, 241, 243
control flow changes caused by, 264
example, 244
finally blocks, 258
nesting in other blocks, 260
two-dimensional arrays, 188
type annotations, 138, 140
type mismatch errors, 141
avoiding, 147
typeof operator, 180
U[ Top ]
UI component sets, 457
UI components example, 859
UIComponent class
animation and, 627
uint datatype, conversions of other datatypes to, 151
UML (Unified Modeling Language), 103
unary operators, 174
UNC (Universal Naming Convention) path, 413
undefined values, 153
Unified Modeling Language (UML), 103
unload( ) method, 806
unoccupied depths, 469
unreachable objects, 269
unsafe casts, 148
unshift( ) method, 199
unshift( )method, 194
untyped expressions, 142
untyped return values, 142
upcasting, 148
updateAfterEvent( ) method, 533, 597, 598
URIs (Uniform Resource Identifiers), 307
explicit versus implicit URIs, 309
URL resolution, 764
URLLoader class, 397
URLRequest class, 397
URLRequest objects, 764
use namespace directive, 334
user, 411
Uses-A relationships, 119
V[ Top ]
values, 19
variable assignment operator (=), 183
variable initializers, 19
variables, 19
accessibility of outside-of-package definitions, 302
assigning one's value to another, 28-30
copies and refernces, 29
default variable values, 153
instance variables, 20-23
local variables, 19
static variables (see static variables)
typed and untyped variables, 142
variable definitions in frame scripts, 831
vector drawing, 629
curves, 633
Graphics class (see Graphics class)
lines, 630-632
object-oriented shape library, 637
removing vector content, 636
shapes, 634
vectors, 465
velocity-based animation, 627
Venner, Bill, 120
version control, 862
Video class, 460
VirtualPet class, 11
attributes, 12
code, 126
constructor parameter name, 25
creationTime instance variable, 39
currentCalories instance variable, 32
instance variable petName, 21
parameter/variable name conflicts, 65
pet instance variable, 30
static variables, 78
with included functions, 99
VirtualPet object
creating, 17
creation time, recording, 39
local variable pet, 20
VirtualPet.as, 12
VirtualZoo
final code for, 875-890
functions, using in, 96
garbage collection in, 270
inheritance, using in, 121-125
VirtualZoo class, 8
code, 126
datatypes in, 154-158
fully-qualified class name, 11
VirtualZoo.as, 8
directory structure containing, 10
void datatype, 138
undefined value, 153
void operator, 180
W[ Top ]
W3C (World Wide Web Consortium)
Document Object Model (DOM), 202, 353
Namespaces in XML recommendation, 307
while statement, 50-52
with statement, 302
wordwrap, 701
multiline variable, compared to, 702
World Wide Web Consortium (see W3C)
X[ Top ]
XML
data structure hierarchy, 353
descendant nodes, accessing, 379-383
equality of Namspace objects, 410
equality of QName instances, 409
equality of XML instances, 407
for-each-in and for-in, processing with, 377-379
node kinds, 355
root nodes, 354
XML class, 353
ActionScript versions 1.0 and 2.0, 355
XML class and datatype, 355
accessing parent nodes, 365
as XMLList parent, 355
content-access methods, 359
XML data creation with E4X, 357
XML data, loading, 397-398
XML fragments, 353
XML namespaces, 398-404
namespace-qualified elements and attributes, accessing, 398
namespace-qualified elements and attributes, creating, 402
XML trees, traversing, 386-387
XMLDocument class, 355
XMLList class and datatype, 355, 356
content-access methods, 359
converting XMLList to a string, 404
equality of XMLList instances, 408
objects with a single XML instance, 361
treating XMLList as XML, 372
values, assigning to an XMLList, 396
(see also E4X)
Zurück zu Essential ActionScript 3.0
