Tải bản đầy đủ (.pdf) (9 trang)

Flash Builder 4 and Flex 4 Bible- P22

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1.02 MB, 9 trang )

1021
Index
States view, Flash Builder, 54, 401, 402–403, 404–405
StateVO
class, 588
StateVO.as
file, 610
static data, 115, 538
static event name constants, 240
static
keyword, 150
static methods,
formatter
classes in, 308–310
static properties, MXML component, 150
status bar,
WindowedApplication
, 978
status
property, 978
<s:tcy>
tag, 289
Step Into tool, 193
Step Over tool, 193
Step Return tool, 193
step
value,
form
property, 672
stepSize
property, 272–273


<s:text>
tag, 254
<s:TitleWindow>
tag, 529
stopPropagation(
) method, 228
<s:TraceTarget/>
tag, 167, 178, 871
<s:Transition>
tag, 414
<s:transitions>
tag, 414
streaming channel, 853–854
String
value
parsing XML-formatted, 752
selection.value
property, 235
TextEvent
class, 232
trace()
function, 172
stringData
variable, 752
StringValidator
class, 687, 689
stroke
property, 421, 422, 424
strokeColor
property, 263

strokeWidth
property, 263
style name selectors, CSS, 346, 351–352
style name, style sheet, 343, 344
style sheet, 343–344, 453. See also CSS
style
sheet file, 356
style value, style sheet, 343, 344
StyleManager
class, 364, 365, 367–368, 454
styleManager
object, 364–365, 368–369
styleManager
property, 364
StyleManager2
interface, 364
styleName
property, 253, 346, 352
styles
control, setting, 251
data types, 362
defined, 149
encapsulation, 14
MX basic containers, 317–319
namespace, 106
overview, 6
scrollbars, 337–338
text, 253–262
visual presentation, 312
Spark theme, 342

SparkAddressRenderer.mxml
file, 627
Spark-based themes, 342
spark.components.Application
class, 128
SparkControlBarDemo.mxml
file, 330
spark.effects
package, 372
spark.effects.easing
package, 387
spark.events.IndexChangeEvent
event object, 487, 585
spark.events.TrackBaseEvent
event object, 281
spark.filters
package, 431
spark-manifest.xml
file, 108
SparkPanelDemo.mxml
file, 327
spark.primitives
package, 420–421
SparkSkin
class, 443, 444
SparkTileList.mxml
file, 641
specialized fonts, 300
Specific component option, 360–361
SpiderMonkey, 750

Sprite
class, 69
SpriteVisualElement
class, 440
SQLite database, 631
SQLiteManager
link, 915
src
(source-code root) folder, 48, 157–158
src:local
style, 298
src:url
style, 298
<s:request>
tag, 745, 797
<s:source>
tag, 554
<s:span>
tag, 256, 289
<s:State>
tag, 407
<s:states>
tag, 407–408, 414
<s:States>
tag, 600
<s:tab>
tag, 289
stageX:int
property, 220
stageY:int

property, 220
stand-alone installer, Flash Builder, 32–34
startdb.bat
batch file, 813
startdb.sh
file, 813
Startup.bat
file, 812
State
class, 400, 414
State selector, Design view, 404–405
stateful applications, 533, 556
stateGroups
attribute, 462
stateless requests, REST architecture, 708
states, skin, 447–448. See also view states
states
property, 400
41_488959-bindex.indd 102141_488959-bindex.indd 1021 3/5/10 2:50 PM3/5/10 2:50 PM
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
1022
Index
in MXML, 104
Text Layout Framework, 288–289
target
property, 217, 228–229
<target-player>
tag, 85
targets
property, 377

Task Manager, Windows, 972
TCYElement
class, 289
template, HTML wrapper. See HTML wrapper template
(
index.template.html
)
template-driven PDF documents, 809
Terminal application, Mac OS X, 813
Terminate tool, 193
Terms of Use, BlazeDS, 810
ternary expressions, 869–870
ternary operator, ActionScript 3, 119
Test Movie option, 70
testing
E4X expressions, 762–763
event declaration, 232–233
Flex applications for ColdFusion, 198–201
messaging application, 862
release build, 90–91
TestPage.cfm
ColdFusion page, 783
TestRollover.mxml
file, 413
text
advanced layout of, 288–294
fonts, 294–302
formatter
classes, 305–310
manipulating, 303–305

overview, 287
Text
control, 253
text controls
formatters
in binding expressions, 307–308
properties of, 254–259
rotation of, 297, 303–304
text entry, 259–262
transparency, 297
text files, 10
Text Font option, 44
Text Layout Framework (TLF), 255, 288–289
text nodes, filtering with predicate expressions, 761
text
property
binding expression, 136–137
ComboBox
control, 606
custom event handler, 236
Spark text control, 254–255
TextArea
control, 262
TextEvent
class, 232
text
value,
resultFormat
property, 726
styles (continued)

overriding in view state, 409–412
versus properties, 343–344
text, 290–291
subclass, 15
subscribe()
method, 858, 859
subString()
method, 261
subtopic
property, 865, 866–871
subtopics, filtering messages with, 866–871
Sun Microsystems Web site, 811
super()
method, 237, 240, 699
_Super_Contact.as
class, 717, 718–719
_Super_ContactService
class, 712
superclass, 15, 224. See also specific superclasses by name
Superclass dialog box, 239
Suspend tool, 193
<s:VerticalLayout>
tag, 79, 702
SVG (Scalable Vector Graphics), 6
SWC files, 158, 164, 342
<s:WebService>
tag, 784, 792
SWF files, 90, 164, 282, 344, 363
SWFObject JavaScript library, 82
swfobject_modified.js

file, 96
swfobject.createCSS()
method, 85
swfobject.embedSWF()
method, 85, 130
swfobject.js
file, 82, 83
<s:WindowedApplication>
root element, 104, 977–978
switch
statement, 118
Switch Workspace option, 37, 74
switching view states at runtime, 406–407
switching workspaces, in Flash Builder, 74–75
symbolColor
style, 355
synchronous input/output, 853
system events, 207
system menu, WampServer, 915
System Preferences application, 918
system tray icon, 914–915
systemFont
attribute, 302
T
Tab
component, 485
TabBar
container, 485
TabElement
class, 289

table structure, database, 534, 935–938
TabNavigator
container, 472, 497–500, 501–502
tags. See also specific tags by name
compiler, 106
data objects, declaring separate with, 577
41_488959-bindex.indd 102241_488959-bindex.indd 1022 3/5/10 2:50 PM3/5/10 2:50 PM
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
1023
Index
sample applications, using, 813–814
starting, 811–813
tooltip
property, 253
top
property, 332, 423
topLevelApplication
property, 129
toState
property, 414
toString()
method, 761
trace()
function, 167, 172–175, 622
TRACE
method, 725
TraceTarget
component, 175, 177–179, 871
tracing
messaging traffic, 871–872

network traffic, 201–206
targets, 177–180
Transfer Object design pattern, 539, 841
transfer objects. See value objects
Transition
class, 414, 416
TransitionDemo.mxml
file, 417
transitions
declaring, 414–415
defined, 399
overview, 414–418
Parallel
effect, using in, 415
Sequence
effect, using in, 415–418
transitions
property, 414
transparency, 297, 316, 379
traversing data, with cursors, 562–564
TraversingData.mxml
file, 564
Tree
control, 573
Tree view, Network Monitor, 202
trigger events, 373, 688–692
trigger
property, 689, 691, 694
triggerEvent
property, 689, 691, 694

triggering validator objects, 692–695
true
value,
ArrayCollection
class filtering function, 557
TrueType fonts, 297
turnkey distribution, BlazeDS
configuring Proxy Service, 817–818
downloading, 810–811
JDK, 809
sample applications, using, 813–814
sample database, starting, 813
starting, 811–813
tweening, 371, 379
two-way bindings, 137
type
property, 217, 231, 233, 234, 241, 692
type selectors, CSS, 346–349
typecasting literal values, 761–762
_typewriter
font family, 297
TextArea
control, 129, 253, 254, 259, 262
TextBase
selector, 348–349
text-decoration
setting, 350
textDecoration
style, 294
TextEvent

class, 232, 234, 235
TextFlow
class, 256
textFlow
property, 256–257
TextFlowUtil
class, 256–258
TextFlowXMLDemo.mxml
file, 258
TextIndentDemo.mxml
file, 291
TextInput
control
ComboBox
control, nested in, 605, 606
Form
component, adding to, 685
frameRate
, 129
as item editor for
DataGrid
control, 627–628
MX, 253
overview, 259–260
restrict
property, 260
selected text, working with, 261
Spark, 254
validator object, creating, 688
textLayout.swc

file, 288
Thawte certificate authority, 968
themes, Flex, 342
this
item, 8, 187, 412, 552, 594
throwCFCFault(
) function, 901
thumb icon,
Slider
control, 279
thumbDrag
event, 281
thumbPress
event, 281
thumbRelease
event, 281
tile layout, list controls with, 635–641
TileLayout
layout class, 131, 326–327
TileList
control, 573, 635–641
timeline, Flash, 9, 10, 69, 371
timeout value, 736
title
property, 327, 564
<title>
tag, HTML wrapper template, 83
TitleWindow
container, 327, 505, 513, 521, 527–529
TLF (Text Layout Framework), 255, 288–289

TODO
comment, 218
Toggle Breakpoint option, 180–181
toggle
property, 267, 268
Toggle Watchpoint option, 190
ToggleButton
control, 267
ToggleButtonBar
container, 485, 487–488, 489
token
property, 737, 794
Tomcat 6, Apache
configuring Proxy Service, 817–818
overview, 809
41_488959-bindex.indd 102341_488959-bindex.indd 1023 3/5/10 2:50 PM3/5/10 2:50 PM
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
1024
Index
user profile, ColdFusion, 905–906
username
property, 240
userNameInput
property, 243
UseValueObject.mxml
file, 551
UseWatchpoint.mxml
file, 190
Using Flash Builder 4 heading, 55
UsingAddEventListener.mxml

file, 225
UsingComponentRenderers.mxml
file, 600
UsingConstraintsComplete.mxml
file, 331
UsingLabelField.mxml
file, 582
UsingLabelFunction.mxml
file, 583
UsingOverridesBegin.mxml
file, 410
UsingOverridesComplete.mxml
file, 412
UsingRenderersWithViewStates.mxml
file, 601
V
V command, 424
VALID
constant, 692
Validate Configuration button, 198, 815, 856, 876, 921
validate()
method, 692, 693
validateAll()
method, 693, 694
validating data entry
ActionScript, controlling with, 691–695
error messages, 695–697
overview, 687–688
rules, 695–697
trigger events, controlling with, 688–691

validator object, creating, 688
validation interface, visual components, 704
ValidationDemo.mxml
file, 690
ValidationResultEvent
class, 692, 693, 694
Validator
class, 694
validator objects, 688, 692–695
ValidatorDemo.mxml
file, 694, 697
value, style, 343, 344
Value Object design pattern, 588, 698, 841, 894
value objects
ColdFusion, 894–900
Form
container, modeling data with, 697–699
generating, 714–717
HTTPService
component, 741–744
instantiating, 549–552
New ActionScript Class wizard, 540–541
overview, 539
RemoteObject
component, 841–845
reviewing code, 717–719
syntax, 541–549
value
property, 272, 273, 278, 280, 596
valueCommitted

event, 689, 692
U
UIComponent
class, 251–253, 368, 444, 517, 521
UML (Unified Modeling Language) diagram
class with data structure, 535
Event
class inheritance, 219
event object properties, 216–217
inheritance, 15
MXML components, 140
vertical and horizontal layout containers, 312–313
Unexpected character
error, 347
Unicode, 301–302
unicodeRange
attribute, 301, 302
Uniform Resource Identifier (URI), 105–106, 771
uninstalling
Adobe AIR, 958–959
desktop application, 971
Flash Player, 23
unique identifier. See
id
units of measurement, 344
update()
method, 948
updateHTML()
function, 978
updatePerson()

function, 937
updateSelection()
method, 608, 609
upgrade installer, Flash Player, 83
Upload Service, ColdFusion, 905
URI (Uniform Resource Identifier), 105–106, 771
URI Reference, 105
URL column, Connect to Data/Service dialog box, 711
url
property
Application
component, 129
<endpoint>
element, 979
HTTPService
component, 722, 723, 724, 923
navigator bar container, 486
WebService
or
HTTPService
object, 824
<url>
tag, 822–824
URLs, 91, 708
useAppserverSecurity
parameter, 846
UseComponent.mxml
file, 146
UseComponentWithAS.mxml
file, 149

UseComponentWithMethod.mxml
file, 154
UseCustomPopUp.mxml
file, 527
UseDataConnection.mxml
application, 711, 719
UseExternalResourceBundles.mxml
file, 953
-use-network
compiler argument, 730, 731
useProxy
property, 820, 822, 823
user data selections, handling, 585–590
user events, 207
user interface, Flash Builder, 49–55
User Manager screen, 905–906
41_488959-bindex.indd 102441_488959-bindex.indd 1024 3/5/10 2:50 PM3/5/10 2:50 PM
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
1025
Index
switching at runtime, 406–407
transitions, 414–418
viewport,
Scroller
object, 337, 338
views. See also MXML components; navigation, application
defined, 469
Eclipse, 38–40
Flash Builder, 51–55
in model-view-controller architecture, 139

views/Authors.mxml
file, 473
ViewStack
container
in ActionScript, 477–482
ButtonBar
control, 613
creating in Design mode, 473–477
declaring in MXML, 472
handling menu events, 493
menu data providers, 492
overview, 471
using as
dataProvider
, 487–488
ViewState
architecture, ASP.NET, 470
ViewStatesBegin.mxml
file, 402, 404
ViewStatesComplete.mxml
file, 406
visible
property, 253, 373
<visible>
tag, 973
visual controls. See also custom item renderers; specific
controls by name
binding returned data to, 719–722
binding Web service data connection data to, 803–805
BitmapImage

, 281–286
button, 266–271
Canvas
container, 315
data entry, 271–277
GraphicElement
, 251–253
Image
, 281–286
instantiating, 250–251
interactive, 277–281
layout, 263–266
overview, 249–250
properties, setting, 251
styles, setting, 251
text, 253–262
UIComponent
, 251–253
visual effects, FXG
filters, applying, 431–432
gradient fills, 425–428
overview, 425
reusing graphic elements, 428–430
scaling graphic elements, 430
visual objects, 110–112, 133, 449–451
void
return datatype, 213
valueObjects
package, 540
valueToDisplay

variable, 150–151
var
keyword, 114–115, 150
variableRowHeight
property, 592, 624
variables. See also specific variables by name
access modifiers, 115–116
counter, in
for
loop, 119
data collection, 553
debugging tools, 167
declaring in ActionScript 3, 114–117
inspecting with breakpoints, 187–192
names, event object, 213
refactoring names, 61–62
Variables view, Flash Builder, 55, 187–188, 189, 220–221,
733–734
variations, font, 298–300
VBox
container, 227–228, 312–314, 316–319, 328, 334–335
VBoxDemo.mxml
file, 313
VBoxGapAndPadding.mxml
file, 318
vector graphics, 430, 433–434, 437–438. See also FXG
VeriSign certificate authority, 968
version, Flash Player, 83–85, 96
version
property, 963

version_major
parameter, 84
version_minor
parameter, 84
version_revision
parameter, 84
vertical layout, 78, 131–133
vertical layout container, 312–315
vertical navigator bars, 488–491
vertical scrollbar,
TextArea
control, 262
vertical
value,
form
property, 672
verticalAlign
style, 132, 317, 321
verticalAxis
declaration, 667
verticalCenter
property, 332, 423
verticalGap
style, 317, 319
VerticalLayout
class, 80, 131–133, 143, 146
VGroup
component, 111, 113, 228, 319–323, 337–338
VGroupDemo.mxml
file, 323

view
attribute, XML node, 493
View Menu button, 52
View source option, 967
view states
components, managing in, 412–413
Design view, defining in, 401–406
for Flex navigation, 471
item renderers, customizing with, 600–602
MXML, declaring in, 407–412
overview, 399–401
skin states, matching required, 447
41_488959-bindex.indd 102541_488959-bindex.indd 1025 3/5/10 2:50 PM3/5/10 2:50 PM
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.

×