Notes
Slide Show
Outline
1
Flash Remoting 101
  • Tom Muck


2
Introduction to Flash Remoting
  • Remoting: More than just a Name
  • What is Flash Remoting?
  • How Does Flash Remoting Work?
  • What is it Used For?
3
Technologies
  • Flash (client)
  • Application server
  • Database server
  • File system
  • Email
  • XML
  • Web services
4
Action Messaging Format (AMF)
  • Automatically handles all datatype conversions between ActionScript and server.
  • Can convert multiple complex datatypes.
  • Seamlessly supports multiple server-side technologies and application servers.
  • Allows remote services and web services to be called directly from Flash without requiring any additional server-side code to be written.
5
Action Messaging Format (cont)
  • Provides a simple and consistent API for calling remote services and web services from the Flash Player.
  • Action Message Format (AMF) to serialize data offers better performance than string-based serialization techniques (such as XML), even though it is not as widely supported as XML.
6
The Server-Side Languages
  • Macromedia ColdFusion MX (built in)
  • J2EE Application Servers and Java Servlet Engines (Tomcat, etc)
  • Macromedia
  • JRun 4 (built in)
  • Microsoft ASP.NET
  • PHP
7
Benefits
  • Why not XML? (sample)
  • HTML and Server-side Code (sample)
8
Flash Remoting Requirements
  • Compatible application server
  • Macromedia Flash MX
  • Macromedia Flash Remoting Components
  • Macromedia Flash Remoting Adapter
9
The Authoring Environment
  • Flash Remoting Components
  • NetServices class
  • RecordSet class
  • DataGlue class
  • NetDebug class


10
Flash Remoting Windows and Menu Options
  • NetConnection Debugger
  • Service Browser
  • Help Menu
11
Bottom Line:
Typical Installations
  • http://www.flash-remoting.com/basics/options.cfm
12
Hello World
  • Flash MX ActionScript Code
  • ColdFusion MX
  • ServerSide ActionScript
  • Java using JRun 4 or other J2EE Servers
  • Microsoft .NET Server
  • Web Service
  • PHP
  • Download .fla
13
The RecordSet Object
  • Structure of the RecordSet Object
  • Using the RecordSet Object
  • Flash Remoting Using a RecordSet
  • Server-side code CF C# Java PHP SSAS
  • The Client-side ActionScript Code
  • Download .fla
14
DataGlue
  • Allows simple binding of RecordSet data to UI components
  • #include “DataGlue.as”
  • Using DataGlue
  • Download .fla


15
Flash Remoting and PHP
  • Introducing AMF-PHP
  • Installing AMF PHP
  • Simple example
  • http://www.amfphp.org
16
Where to Get More Information
  • http://www.macromedia.com/go/flashremoting
  • http://www.flash-remoting.com/
  • Books
    • Complete Flash Remoting by Joey Lott
    • Flash Remoting MX: The Definitive Guide by Tom Muck