150 likes | 166 Views
Learn about Flash Remoting, its technologies, benefits, server-side languages, and authoring environment. Explore examples, requirements, and more.
E N D
Flash Remoting 101 Tom Muck For latest version of sessions and example code, go tohttp://www.tom-muck.com/sessions http://www.flash-remoting.com
Introduction to Flash Remoting • What is Flash Remoting? • How Does Flash Remoting Work? • What is it Used For? http://www.flash-remoting.com
Technologies • Flash (client) • Application server • Database server • File system • Email • XML • Web services http://www.flash-remoting.com
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. http://www.flash-remoting.com
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. http://www.flash-remoting.com
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 http://www.flash-remoting.com
Benefits • Why not XML? (sample) • HTML and Server-side Code (sample) • TCP Trace demo http://www.flash-remoting.com
Flash Remoting Requirements • Compatible application server • Macromedia Flash MX • Macromedia Flash Remoting Components • Flash Remoting Adapter on the application server http://www.flash-remoting.com
The Authoring Environment • Flash Remoting Components located in Window > Other Panels > Common Libraries > Remoting • mx.remoting.* • mx.rpc.* • mx.services.Log • mx.remoting.debug.NetDebug http://www.flash-remoting.com
Flash Remoting Windows and Menu Options • NetConnection Debugger • Service Browser • Help Menu http://www.flash-remoting.com
Bottom Line: Typical Installations • http://www.flash-remoting.com/basics/options.cfm http://www.flash-remoting.com
Hello World • Flash MX ActionScript Code • ColdFusion MX • demo http://www.flash-remoting.com
The RecordSet Object • Structure of the RecordSet Object • Using the RecordSet Object • Flash Remoting Using a RecordSet • Server-side code CF C# JavaPHPSSAS • The Client-side ActionScript Code • Download .fla http://www.flash-remoting.com
DataGlue • Allows simple binding of RecordSet data to UI components • import mx.remoting.DataGlue; • Using DataGlue • Download .fla http://www.flash-remoting.com
Where to Get More Information • http://www.macromedia.com/go/flashremoting • http://www.flash-remoting.com/ • http://www.communitymx.com/ • http://www.macromedia.com/devnet/mx/flashremoting/ • Books • Flash Remoting: The Definitive Guide by Tom Muck • Complete Flash Remoting by Joey Lott http://www.flash-remoting.com