| Preface |
|
xiii | |
| Part I. Remoting Fundamentals |
|
|
1. Introduction to Flash Remoting |
|
|
3 | (36) |
|
|
|
3 | (2) |
|
How Does Flash Remoting Work? |
|
|
5 | (5) |
|
|
|
10 | (5) |
|
Flash Remoting Requirements |
|
|
15 | (2) |
|
|
|
17 | (2) |
|
|
|
19 | (13) |
|
|
|
32 | (1) |
|
Architecture for Flash Remoting Applications |
|
|
33 | (6) |
|
2. Installing, Configuring, and Using Flash Remoting |
|
|
39 | (40) |
|
Installing Flash Remoting |
|
|
39 | (12) |
|
|
|
51 | (4) |
|
The Authoring Environment |
|
|
55 | (12) |
|
Sequence of Events in Flash |
|
|
67 | (2) |
|
|
|
69 | (10) |
|
3. Client/Server Interaction, UI Components, and RecordSets |
|
|
79 | (34) |
|
User Interface Components |
|
|
79 | (4) |
|
Flash UI Components Set 2 and Flash Charting Controls |
|
|
83 | (2) |
|
|
|
85 | (2) |
|
|
|
87 | (3) |
|
Building Forms in Flash MX |
|
|
90 | (2) |
|
|
|
92 | (13) |
|
|
|
105 | (8) |
|
4. Flash Remoting internals |
|
|
113 | (48) |
|
|
|
114 | (1) |
|
|
|
114 | (6) |
|
Creating Responder Functions |
|
|
120 | (9) |
|
|
|
129 | (13) |
|
|
|
142 | (1) |
|
|
|
143 | (4) |
|
|
|
147 | (14) |
| Part II. The Server-Side Languages |
|
|
5. Flash Remoting and ColdFusion MX |
|
|
161 | (56) |
|
Introduction to ColdFusion MX |
|
|
161 | (1) |
|
How ColdFusion Fits into Flash Applications |
|
|
162 | (4) |
|
|
|
166 | (20) |
|
ColdFusion Pages Versus ColdFusion Components |
|
|
186 | (1) |
|
Loading Query Data Incrementally |
|
|
187 | (7) |
|
ColdFusion Security: Authenticating Users |
|
|
194 | (6) |
|
Updating Data on the Server |
|
|
200 | (17) |
|
6. Server-Side ActionScript |
|
|
217 | (32) |
|
What Is Server-Side ActionScript? |
|
|
217 | (2) |
|
|
|
219 | (10) |
|
When to Use Server-Side ActionScript |
|
|
229 | (1) |
|
|
|
229 | (1) |
|
Handling Errors with try/catch |
|
|
230 | (3) |
|
Extending Server-Side ActionScript with Java |
|
|
233 | (16) |
|
7. Flash Remoting and Java |
|
|
249 | (44) |
|
The Flash Remoting Gateway |
|
|
249 | (1) |
|
|
|
250 | (1) |
|
Setting Up Flash Remoting for J2EE |
|
|
250 | (2) |
|
|
|
252 | (5) |
|
|
|
257 | (9) |
|
|
|
266 | (3) |
|
|
|
269 | (3) |
|
|
|
272 | (4) |
|
Referencing the Request and Session |
|
|
276 | (3) |
|
|
|
279 | (4) |
|
|
|
283 | (2) |
|
|
|
285 | (7) |
|
|
|
292 | (1) |
|
8. Flash Remoting and .NET |
|
|
293 | (31) |
|
|
|
293 | (1) |
|
|
|
294 | (8) |
|
|
|
302 | (8) |
|
Database Access with ADO.NET |
|
|
310 | (8) |
|
|
|
318 | (3) |
|
Error Handling in Flash Remoting with NET |
|
|
321 | (3) |
|
9. Flash Remoting and PHP |
|
|
324 | (19) |
|
|
|
324 | (2) |
|
|
|
326 | (2) |
|
|
|
328 | (1) |
|
Using AMFPHP with Web Services |
|
|
329 | (1) |
|
Using AMFPHP with PHP Classes |
|
|
330 | (3) |
|
|
|
333 | (10) |
| Part III. Advanced Flash Remoting |
|
|
10. Calling Web Services from Flash Remoting |
|
|
343 | (30) |
|
|
|
343 | (5) |
|
|
|
348 | (4) |
|
Web Services from a ColdFusion Server |
|
|
352 | (1) |
|
Web Services from an ASP.NET Server |
|
|
353 | (4) |
|
Wrapping J2EE and JRun Web Services |
|
|
357 | (2) |
|
|
|
359 | (1) |
|
|
|
359 | (3) |
|
|
|
362 | (7) |
|
Creating a Flash MX Web Service Extension |
|
|
369 | (4) |
|
11. Extending Objects and UI Controls |
|
|
373 | (26) |
|
Principles Behind UI Components |
|
|
373 | (1) |
|
DataProviderClass and DataGlue |
|
|
374 | (4) |
|
Enhancing a Standard Control |
|
|
378 | (9) |
|
Enhancing the RecordSet Class for Interactivity |
|
|
387 | (9) |
|
Adding Validation to a TextField |
|
|
396 | (3) |
|
12. Flash Remoting Best Practices |
|
|
399 | (31) |
|
|
|
399 | (2) |
|
Separation of Functionality |
|
|
401 | (2) |
|
Server-Proofing the Application |
|
|
403 | (1) |
|
|
|
404 | (3) |
|
|
|
407 | (1) |
|
Loops and Repeated Operations |
|
|
408 | (3) |
|
|
|
411 | (16) |
|
|
|
427 | (1) |
|
|
|
427 | (2) |
|
|
|
429 | (1) |
|
13. Testing and Debugging |
|
|
430 | (37) |
|
Debugging Flash Remoting Applications |
|
|
430 | (5) |
|
|
|
435 | (2) |
|
The Flash ActionScript Debugger |
|
|
437 | (6) |
|
|
|
443 | (6) |
|
|
|
449 | (1) |
|
|
|
450 | (2) |
|
|
|
452 | (8) |
|
Using a TCP Trace Utility |
|
|
460 | (4) |
|
|
|
464 | (3) |
|
14. Real-World Application |
|
|
467 | (58) |
|
|
|
467 | (1) |
|
|
|
468 | (1) |
|
|
|
468 | (2) |
|
|
|
470 | (30) |
|
|
|
500 | (22) |
|
|
|
522 | (1) |
|
|
|
523 | (1) |
|
|
|
523 | (2) |
|
|
|
525 | (50) |
| Part IV. Appendixes |
|
|
A. ActionScript Datatype Conversion |
|
|
575 | (7) |
|
B. Books and Online Resources |
|
|
582 | (7) |
|
C. Specification and Implementation for a Real-World Application |
|
|
589 | (4) |
| Index |
|
593 | |