-
Remoting Fundamentals
-
Chapter 1 Introduction to Flash Remoting
- What Is Flash Remoting?
- How Does Flash Remoting Work?
- Benefits
- Flash Remoting Requirements
- Supported Platforms
- Hello World
- Workflow Example
- Architecture for Flash Remoting Applications
- Wrapping Up
-
Chapter 2 Installing, Configuring, and Using Flash Remoting
- Installing Flash Remoting
- Naming Your Services
- The Authoring Environment
- Sequence of Events in Flash
- Making a Remote Call
- Wrapping Up
-
Chapter 3 Client/Server Interaction, UI Components, and RecordSets
- User Interface Components
- Flash UI Components Set 2 and Flash Charting Controls
- Macromedia's DRK
- Text Objects
- Building Forms in Flash MX
- The RecordSet Class
- DataGlue
- Wrapping Up
-
Chapter 4 Flash Remoting Internals
- The NetConnection Class
- Using NetServices
- Creating Responder Functions
- RecordSet Object
- The Timeline
- Catching Errors
- Registering Objects
- Wrapping Up
-
-
The Server-Side Languages
-
Chapter 5 Flash Remoting and ColdFusion MX
- Introduction to ColdFusion MX
- How ColdFusion Fits into Flash Applications
- Service Name Mappings
- ColdFusion Pages Versus ColdFusion Components
- Loading Query Data Incrementally
- ColdFusion Security: Authenticating Users
- Updating Data on the Server
- Wrapping Up
-
Chapter 6 Server-Side ActionScript
- What Is Server-Side ActionScript?
- The CF Object
- When to Use Server-Side ActionScript
- Datatype Conversions
- Handling Errors with try/catch
- Extending Server-Side ActionScript with Java
- Wrapping Up
-
Chapter 7 Flash Remoting and Java
- The Flash Remoting Gateway
- Supported Platforms
- Setting Up Flash Remoting for J2EE
- Service Types
- Datatype Conversions
- Service Lookup
- Invoking Service Methods
- Architecture and Design
- Referencing the Request and Session
- Saving and Sharing State
- Databinding
- Security
- OpenAMF
- Wrapping Up
-
Chapter 8 Flash Remoting and .NET
- Overview of .NET
- Connecting to .NET
- Datatype Conversions
- Database Access with ADO.NET
- State Management
- Error Handling in Flash Remoting with .NET
- Wrapping Up
-
Chapter 9 Flash Remoting and PHP
- Introduction to PHP
- Installing AMFPHP
- Datatype Conversions
- Using AMFPHP with Web Services
- Using AMFPHP with PHP Classes
- Working with a Database
- Wrapping Up
-
-
Advanced Flash Remoting
-
Chapter 10 Calling Web Services from Flash Remoting
- What Is a Web Service?
- Why Use Flash Remoting?
- Web Services from a ColdFusion Server
- Web Services from an ASP.NET Server
- Wrapping J2EE and JRun Web Services
- Web Services from PHP
- BabelFish Web Service
- Datatype Conversions
- Creating a Flash MX Web Service Extension
- Wrapping Up
-
Chapter 11 Extending Objects and UI Controls
- Principles Behind UI Components
- DataProviderClass and DataGlue
- Enhancing a Standard Control
- Enhancing the RecordSet Class for Interactivity
- Adding Validation to a TextField
- Wrapping Up
-
Chapter 12 Flash Remoting Best Practices
- Separation of Tasks
- Separation of Functionality
- Server-Proofing the Application
- Component Use
- Clean API
- Loops and Repeated Operations
- OOP or Not OOP
- ColdFusion RecordSets
- Implementing Caching
- What to Walk Away With
- Wrapping Up
-
Chapter 13 Testing and Debugging
- Debugging Flash Remoting Applications
- Trapping Errors
- The Flash ActionScript Debugger
- NetConnection Debugger
- NetDebug.as
- Trace Debugging
- Testing Server-Side Code
- Using a TCP Trace Utility
- Debugging SQL Code
- Wrapping Up
-
Chapter 14 Real-World Application
- General Considerations
- Requirements
- Specifications
- The Modules
- Flash Remoting Code
- Testing and Debugging
- Completed Application
- Future Expansion
- Wrapping Up
-
Chapter 15 Flash Remoting API
- Entry Headings
- DataGlue Object
- DataGlue.bindFormatFunction( ) Method
- DataGlue.bindFormatStrings( ) Method
- NetConnection Class
- NetConnection.addHeader( ) Method
- NetConnection.call( ) Method
- NetConnection.clone( ) Method
- NetConnection.close( ) Method
- NetConnection.connect( ) Method
- NetConnection.getDebugConfig( ) Method
- NetConnection.getDebugId( ) Method
- NetConnection.getService( ) Method
- NetConnection.ReplaceGatewayUrl( ) Method
- NetConnection.RequestPersistentHeader( ) Method
- NetConnection.setCredentials( ) Method
- NetConnection.setDebugId( ) Method
- NetConnection.trace( ) Method
- NetDebug Object
- NetDebug.trace( ) Method
- NetDebugConfig Class
- NetDebugConfig.getDebug( ) Method
- NetDebugConfig.setDebug( ) Method
- NetServices Object
- NetServices.createGatewayConnection( ) Method
- NetServices.getVersion( ) Method
- NetServices.setDefaultGateway( ) Method
- RecordSet Class
- RecordSet.addItem( ) Method
- RecordSet.addItemAt( ) Method
- RecordSet.addView( ) Method
- RecordSet.filter( ) Method
- RecordSet.getColumnNames( ) Method
- RecordSet.getItemAt( ) Method
- RecordSet.getItemID( ) Method
- RecordSet.getLength( ) Method
- RecordSet.getNumberAvailable( ) Method
- RecordSet.isFullyPopulated( ) Method
- RecordSet.isLocal( ) Method
- RecordSet.removeAll( ) Method
- RecordSet.removeItemAt( ) Method
- RecordSet.replaceItemAt( ) Method
- RecordSet.setDeliveryMode( ) Method
- RecordSet.setField( ) Method
- RecordSet.sort( ) Method
- RecordSet.sortItemsBy( ) Method
-
-
Appendixes
-
Appendix A ActionScript Datatype Conversion
- ColdFusion Datatype Conversion
- Java Datatype Conversion
- C# Datatype Conversion
- Visual Basic Datatype Conversion
- PHP Datatype Conversion
- SOAP Datatype Conversion
-
Appendix B Books and Online Resources
- Flash Remoting Resources
- Flash and ActionScript Resources
- Other Books of Interest
- Other Links of Interest
-
Appendix C Specification and Implementation for a Real-World Application
- Notes from the Designer
-
-
Colophon
- Title:
- Flash Remoting: The Definitive Guide
- By:
- Tom Muck
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- September 2003
- Ebook Release:
- June 2009
- Pages:
- 640
- Print ISBN:
- 978-0-596-00401-9
- | ISBN 10:
- 0-596-00401-X
- Ebook ISBN:
- 978-0-596-10390-3
- | ISBN 10:
- 0-596-10390-5
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal featured on the cover of Flash Remoting: The Definitive Guide is a cuttlefish. Cuttlefish (Sepia officinalis) are commonly found in the eastern Atlantic from England to North Africa and throughout the Mediterranean Sea. This softbodied marine creature belongs to the Cephalopoda class and, like all cephalopods, has a large head ringed by arms. Cuttlefish have eight arms, plus two long tentacles with suckers on their ends. Cuttlefish are usually about a foot long, and they move through the water by rippling a skirt of fins. They are sometimes called the chameleons of the sea because they can easily change their striped skin color to hide from predators or communicate with other cuttlefish.
In addition to the camouflage offered by their ability to change color, threatened cuttlefish use ink to defend themselves. Their ink glands produce a foul-smelling dark brown ink that distracts enemies such as sharks, larger fish, and even other cuttlefish. They can then fill the ink funnel with water, expel it, and propel themselves to safety. Cuttlefish ink (also called sepia) was once used to color photographs; however, they are no longer fished for this purpose, and cuttlefish caught in trawl nets usually wind up on a dinner table.
Cuttlefish are also well-known for the one bone in their body, called the cuttlebone. This bone is made up of porous calcium carbonate that allows the cuttlefish to control its buoyancy by changing the proportions of liquid to air within chambers of the bone. Cuttlebones often wash ashore and are the only remains of a cuttlefish after its death. These bones are often sold as bill-sharpeners for captive birds or are ground up and offered as a source of calcium for other pets. Genevieve d'Entremont was the production editor for Flash Remoting: The Definitive Guide. Brian Sawyer proofread the book. Emily Quill and Claire Cloutier provided quality control. Mary Agner, Jamie Peppard, and James Quill provided production assistance. Octal Publishing, Inc. wrote the index.
Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from Cuvier's Animals. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout. This book was converted by Andrew Savikas and Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Philip Dangler.
