Cover image for Flash remoting : the definitive guide
Flash remoting : the definitive guide
Muck, Tom.
Personal Author:
First edition.
Publication Information:
Sebastopol, CA : O'Reilly, [2003]

Physical Description:
xxvi, 612 pages : illustrations ; 24 cm
General Note:
"Connecting Flash applications to remote services"--Cover.
Format :


Call Number
Material Type
Home Location
Item Holds
TR897.7 .M83 2003 Adult Non-Fiction Central Closed Stacks

On Order



Flash Remoting MX lets developers easily integrate rich Macromedia Flash content with applications that are built using Macromedia ColdFusion MX, Microsoft .NET, Java, PHP, or SOAP-based web services. The result is complex client/server applications that more closely resemble desktop applications than traditional web pages. Gone is the click/wait/reload approach of HTML. Your web application uses Flash as the front end while Flash Remoting handles the communication behind the scenes with the application server. All the end user knows is that it's fast and flexible.The potential uses for Flash Remoting are endless. Flash Remoting: The Definitive Guide will help you understand this breakthrough technology and use it to build your own Rich Internet Applications (RIAs). Build applications that connect to a database, file system, or other server-side technologies. Or, use Flash Remoting to create:

online stores that feature catalogs and shopping cart systems sound and video clip libraries banner ads with built-in shopping carts, click-through tracking, and site search capabilities new controls that can be used in place of HTML extensions to Flash, Dreamweaver, Fireworks, and more front-ends to databases for administrators The book begins with Flash Remoting basics: setup, installation and an introduction to its underlying concepts. Next, you'll explore the Flash's User Interface components as they relate to Flash Remoting. Then, you'll gain insights into Flash Remoting internals and the Remoting API. The book is rich with examples that you will be able to run on your own system.The next section focuses on the server-side environment that you'll use for your applications. Individual chapters cover Flash Remoting with ColdFusion, Server-Side ActionScript, Java, ASP.NET, and PHP.The last section covers more advanced Flash Remoting techniques, such as calling web services from Flash Remoting, extending objects and UI controls, best practices, and debugging. Plus there is a detailed chapter demonstrating a real-world application. The book concludes with a Flash Remoting API reference.Developers who are looking to create Rich Internet Applications with Flash will find Flash Remoting: The Definitive Guide indispensable.

Author Notes

Tom Muck is coauthor of six Macromedia-related books including O'Reilly's Flash Remoting: The Definitive Guide, and the bestseller, Dreamweaver UltraDev 4: The Complete Reference. He is an extensibility expert focused on the integration of Macromedia products with ColdFusion, ASP, PHP, and other languages, applications, and technologies and is a founding member of Community MX ( When not in front of the computer, Tom works on his Hong Kong movie collection. Once an aspiring heavy-metal musician, Tom is now content in his old age to sit on the porch playing the blues on his harmonica and banging out Robert Johnson songs on his beat-up acoustic guitar.

Table of Contents

Prefacep. xiii
Part I. Remoting Fundamentals
1. Introduction to Flash Remotingp. 3
What Is Flash Remoting?p. 3
How Does Flash Remoting Work?p. 5
Benefitsp. 10
Flash Remoting Requirementsp. 15
Supported Platformsp. 17
Hello Worldp. 19
Workflow Examplep. 32
Architecture for Flash Remoting Applicationsp. 33
2. Installing, Configuring, and Using Flash Remotingp. 39
Installing Flash Remotingp. 39
Naming Your Servicesp. 51
The Authoring Environmentp. 55
Sequence of Events in Flashp. 67
Making a Remote Callp. 69
3. Client/Server Interaction, UI Components, and RecordSetsp. 79
User Interface Componentsp. 79
Flash UI Components Set 2 and Flash Charting Controlsp. 83
Macromedia's DRKp. 85
Text Objectsp. 87
Building Forms in Flash MXp. 90
The RecordSet Classp. 92
DataGluep. 105
4. Flash Remoting Internalsp. 113
The NetConnection Classp. 114
Using NetServicesp. 114
Creating Responder Functionsp. 120
RecordSet Objectp. 129
The Timelinep. 142
Catching Errorsp. 143
Registering Objectsp. 147
Part II. The Server-Side Languages
5. Flash Remoting and ColdFusion MXp. 161
Introduction to ColdFusion MXp. 161
How ColdFusion Fits into Flash Applicationsp. 162
Service Name Mappingsp. 166
ColdFusion Pages Versus ColdFusion Componentsp. 186
Loading Query Data Incrementallyp. 187
ColdFusion Security: Authenticating Usersp. 194
Updating Data on the Serverp. 200
6. Server-Side ActionScriptp. 217
What Is Server-Side ActionScript?p. 217
The CF Objectp. 219
When to Use Server-Side ActionScriptp. 229
Datatype Conversionsp. 229
Handling Errors with try/catchp. 230
Extending Server-Side ActionScript with Javap. 233
7. Flash Remoting and Javap. 249
The Flash Remoting Gatewayp. 249
Supported Platformsp. 250
Setting Up Flash Remoting for J2EEp. 250
Service Typesp. 252
Datatype Conversionsp. 257
Service Lookupp. 266
Invoking Service Methodsp. 269
Architecture and Designp. 272
Referencing the Request and Sessionp. 276
Saving and Sharing Statep. 279
Databindingp. 283
Securityp. 285
OpenAMFp. 292
8. Flash Remoting and .NETp. 293
Overview of .NETp. 293
Connecting to .NETp. 294
Datatype Conversionsp. 302
Database Access with ADO.NETp. 310
State Managementp. 318
Error Handling in Flash Remoting with .NETp. 321
9. Flash Remoting and PHPp. 324
Introduction to PHPp. 324
Installing AMFPHPp. 326
Datatype Conversionsp. 328
Using AMFPHP with Web Servicesp. 329
Using AMFPHP with PHP Classesp. 330
Working with a Databasep. 333
Part III. Advanced Flash Remoting
10. Calling Web Services from Flash Remotingp. 343
What Is a Web Service?p. 343
Why Use Flash Remoting?p. 348
Web Services from a ColdFusion Serverp. 352
Web Services from an ASP.NET Serverp. 353
Wrapping J2EE and JRun Web Servicesp. 357
Web Services from PHPp. 359
BabelFish Web Servicep. 359
Datatype Conversionsp. 362
Creating a Flash MX Web Service Extensionp. 369
11. Extending Objects and UI Controlsp. 373
Principles Behind UI Componentsp. 373
DataProviderClass and DataGluep. 374
Enhancing a Standard Controlp. 378
Enhancing the RecordSet Class for Interactivityp. 387
Adding Validation to a TextFieldp. 396
12. Flash Remoting Best Practicesp. 399
Separation of Tasksp. 399
Separation of Functionalityp. 401
Server-Proofing the Applicationp. 403
Component Usep. 404
Clean APIp. 407
Loops and Repeated Operationsp. 408
OOP or Not OOPp. 411
ColdFusion RecordSetsp. 427
Implementing Cachingp. 427
What to Walk Away Withp. 429
13. Testing and Debuggingp. 430
Debugging Flash Remoting Applicationsp. 430
Trapping Errorsp. 435
The Flash ActionScript Debuggerp. 437
NetConnection Debuggerp. 443
NetDebug.asp. 449
Trace Debuggingp. 450
Testing Server-Side Codep. 452
Using a TCP Trace Utilityp. 460
Debugging SQL Codep. 464
14. Real-World Applicationp. 467
General Considerationsp. 467
Requirementsp. 468
Specificationsp. 468
The Modulesp. 470
Flash Remoting Codep. 500
Testing and Debuggingp. 522
Completed Applicationp. 523
Future Expansionp. 523
15. Flash Remoting APIp. 525
Part IV. Appendixes
A. ActionScript Datatype Conversionp. 575
B. Books and Online Resourcesp. 582
C. Specification and Implementation for a Real-World Applicationp. 589
Indexp. 593