Sas Jacobs9781590598948, 1590598946
Table of contents :
Foundation Flex for Developers……Page 1
CONTENTS AT A GLANCE……Page 7
CONTENTS……Page 9
ABOUT THE AUTHORS……Page 21
ABOUT THE TECHNICAL REVIEWER……Page 23
ABOUT THE COVER IMAGE DESIGNER……Page 25
ACKNOWLEDGMENTS……Page 27
INTRODUCTION……Page 29
FLEX APPLICATION BASICS……Page 31
INTRODUCTION TO FLEX……Page 33
Understanding web applications……Page 34
Understanding the role of Flex……Page 35
Understanding the role of MXML and ActionScript 3.0……Page 36
Understanding MXML……Page 37
Understanding ActionScript 3.0……Page 38
Understanding the major changes in ActionScript 3.0……Page 39
Working with applications in Flex……Page 41
Flex tools for working with data……Page 42
Useful resources……Page 43
Summary……Page 44
WORKING WITH ACTIONSCRIPT 3.0 IN FLEX 3……Page 47
Working with ActionScript 3.0 in Flex applications……Page 48
Using inline ActionScript statements……Page 49
Using the element……Page 52
Using include inside an element……Page 57
Creating custom class files……Page 58
Creating ActionScript projects……Page 66
Working with a minimal Flex interface……Page 67
Understanding ActionScript 3.0 events……Page 70
What happened to trace?……Page 72
Importing classes……Page 73
Summary……Page 74
CREATING CUSTOM COMPONENTS……Page 77
Creating components using MXML……Page 78
Example: Creating a country ComboBox component……Page 79
Passing a value to the component……Page 81
Binding a property in the component……Page 84
Dispatching events……Page 85
Creating a custom event class……Page 86
Creating a composite component……Page 89
Working through examples……Page 93
Passing values to ActionScript components……Page 95
Dispatching custom events in ActionScript components……Page 96
Deciding on MXML or ActionScript……Page 97
Using the code-behind approach……Page 98
Sharing components……Page 99
Distributing SWC files……Page 100
Using SWC files……Page 101
Summary……Page 102
INTERACTING WITH USERS……Page 105
Adding a message and title……Page 106
Adding a closeHandler method……Page 107
A simple example……Page 108
Changing the appearance of the alert……Page 112
Working with pop-ups……Page 114
A simple example……Page 115
Passing values from the pop-up……Page 119
Passing values to the pop-up……Page 122
Responding to pop-up events……Page 123
Understanding the Form container……Page 126
Working with a data model……Page 127
Determining required values……Page 131
Validating user input……Page 132
Working with the DateValidator……Page 134
Working with the NumberValidator……Page 135
Working with the StringValidator……Page 136
Adding validation to a form……Page 137
Validating with validator events……Page 139
Validating with ActionScript……Page 140
Using the DateFormatter……Page 143
Using the PhoneFormatter……Page 144
Applying the formatter……Page 145
Adding formatters to a form……Page 146
Summary……Page 147
INTERACTING WITH THE WEB BROWSER……Page 149
Loading a web page from Flex……Page 150
Calling JavaScript with navigateToURL……Page 151
Working through a simple example……Page 152
Sending variables into a SWF file……Page 154
Using querystring parameters……Page 155
Using flashVars……Page 158
Understanding the External API……Page 160
Calling a JavaScript function using ActionScript……Page 161
Calling an ActionScript function with JavaScript……Page 165
Working through a two-way communication example……Page 169
Limitations of the External API……Page 173
Understanding Flash Player security……Page 174
Summary……Page 175
WORKING WITH DATA IN FLEX APPLICATIONS……Page 177
Working with the HTTPService class……Page 178
Receiving a response……Page 179
Accessing loaded content……Page 180
Properties of the HTTPService class……Page 181
Understanding the URLLoader class……Page 183
Specifying a return type……Page 184
Methods of the URLLoader class……Page 185
Comparing the HTTPService and URLLoader……Page 186
Using the tag……Page 187
Using the HTTPService class with ActionScript……Page 189
Using the URLLoader class……Page 190
Using variable pairs with the HTTPService class……Page 191
Using the tag……Page 192
Using the HTTPService class with ActionScript……Page 194
Using the URLLoader class……Page 195
Sending variables with the URLLoader……Page 196
Updating content with the HTTPService class……Page 197
Updating content with the URLLoader class……Page 202
Understanding security sandboxes……Page 204
Proxying data locally……Page 205
Separating data from presentation……Page 206
Working with the tag……Page 207
Using ActionScript to work with complex data structures……Page 209
Understanding data binding……Page 217
Binding with curly braces syntax……Page 218
Binding with the tag……Page 219
Binding with ActionScript……Page 225
Working through a scripted binding example……Page 228
Understanding validators……Page 231
Understanding formatters……Page 234
Summary……Page 237
INTRODUCTION TO XML……Page 239
Understanding the XML framework……Page 240
A brief history……Page 241
Understanding why you should use XML……Page 242
Using XML information……Page 243
The document prolog……Page 244
The document tree……Page 246
Namespaces……Page 250
A simple MXML document……Page 251
Element structure……Page 252
Elements must nest correctly……Page 253
Summary……Page 254
USING XML IN FLEX BUILDER……Page 257
Understanding E4X expressions……Page 258
Understanding the XML and XMLList classes……Page 261
Manipulating XML content……Page 266
Working with the tag……Page 268
Using the tag……Page 270
Using the HTTPService class with ActionScript……Page 272
Using the URLLoader class……Page 273
Binding XML content with E4X expressions……Page 274
Working through an example……Page 275
Working with the WebService class……Page 283
Consuming a web service with the tag……Page 289
Consuming a web service with ActionScript……Page 293
Summary……Page 295
FLEX DATA-DRIVEN CONTROLS……Page 297
Working with a dataProvider……Page 298
Setting the dataProvider……Page 299
Using XML as a dataProvider……Page 300
Iterating through controls in a Repeater……Page 301
Working through a simple example……Page 302
Displaying images in a TileList……Page 306
Changing the direction……Page 308
Using a custom item renderer……Page 309
Working through an example……Page 311
Using the DataGrid……Page 314
Specifying column settings……Page 315
Reordering columns……Page 317
Setting the display of data within a column……Page 318
Using renderers……Page 319
Editing content……Page 323
Working with rows……Page 327
Using common DataGrid events……Page 328
Working through a DataGrid example……Page 331
Summary……Page 339
DEBUGGING FLEX APPLICATIONS……Page 341
Working with the trace method……Page 342
Logging to a text file……Page 343
Working with the tag……Page 344
Compiler warning messages……Page 345
Compiler errors……Page 346
Run-time errors……Page 347
Using ActionScript to catch run-time errors……Page 348
Using the debugger……Page 353
Adding breakpoints……Page 355
Viewing variable values……Page 356
Changing the value of a variable……Page 358
Watching a variable……Page 359
Summary……Page 360
PART 2 DATA-DRIVEN APPLICATIONS……Page 361
XML CASE STUDY……Page 363
The application interface……Page 364
Structuring the application……Page 366
Creating the interface……Page 367
Creating the custom class……Page 368
Writing the custom class……Page 369
Creating the constructor method……Page 370
Loading the XML document……Page 371
Creating the GalleryLoader object……Page 372
Processing the loaded XML content……Page 373
Populating the ComboBox with galleries……Page 375
Creating the interface……Page 376
Configuring the component……Page 377
Displaying the first image……Page 379
Displaying the other images……Page 382
Summary……Page 385
COLDFUSION PROJECT……Page 387
Understanding the application……Page 388
The application data source……Page 390
Connecting to the ColdFusion server……Page 391
Creating the ColdFusion page……Page 394
Creating the Flex application……Page 396
Creating the Flex interface……Page 397
Summary……Page 403
ASP.NET CASE STUDY……Page 405
The application interface……Page 406
The application data source……Page 408
Structuring the application……Page 411
Creating the application……Page 413
Creating the Flex application interface……Page 414
Creating the ASP.NET pages to generate XML content for the application……Page 416
Creating the custom class……Page 421
Loading the events for a specific date……Page 423
Populating the interface with the events……Page 425
Creating a custom component for event details……Page 429
Showing details of the selected event……Page 436
Updating the selected event……Page 437
Adding a new event……Page 445
Deleting an event……Page 446
Summary……Page 449
PHP CASE STUDY……Page 451
The application interface……Page 452
The application data source……Page 456
Structuring the application……Page 458
Creating the application……Page 459
Creating the Flex application interface……Page 460
Creating the PHP pages to generate the XML content……Page 463
Creating the custom ActionScript class to load the content……Page 466
Loading the XML content……Page 468
Creating custom events……Page 469
Displaying the current posts……Page 472
Displaying the archive posts……Page 475
Coding the login form……Page 478
Creating a custom component for post details……Page 482
Updating the selected post……Page 484
Adding a new post……Page 493
Deleting an existing post……Page 494
Summary……Page 496
LIVECYCLE DATA SERVICES……Page 497
INTRODUCTION TO LIVECYCLE DATA SERVICES……Page 499
LiveCycle Data Services features……Page 500
Installing LiveCycle Data Services ES……Page 501
Set up a Flex application for use with LiveCycle Data Services ES……Page 504
Using LiveCycle Data Services……Page 505
Building a basic chat application……Page 506
Exploring web and HTTP services……Page 511
Exploring the remote object service……Page 519
Data Management Services……Page 527
Using DMS with SQLAssembler……Page 529
Summary……Page 539
LIVECYCLE DATA SERVICES CASE STUDY……Page 541
The book admin application……Page 542
The book viewer application……Page 543
The server-side configuration……Page 544
Creating the book admin application……Page 546
Showing the selected book details……Page 547
Updating the selected book details……Page 551
Deleting a Book object……Page 552
Uploading a book cover to the server……Page 553
Adding an application ControlBar……Page 558
Setting up the Flex DataService……Page 559
Building the custom item renderer……Page 560
Showing the books in a TileList……Page 561
Showing the details of each book……Page 562
Summary……Page 563
INDEX……Page 565
Reviews
There are no reviews yet.