
This is the Title of the Book, eMatter Edition
Copyright © 2003 O’Reilly & Associates, Inc. All rights reserved.
Flash Remoting Requirements
|
15
an art form for the application developer, as there are no sure-fire, out-of-the-box
methods to maintain state in most application servers.
Typically, in a web application, you use cookies in conjunction with session vari-
ables to maintain state. This method won’t work if cookies are turned off on the cli-
ent’s browser; therefore, you must store the information in a database or text file for
100% reliability. Furthermore, session management and variables eat up server mem-
ory. In an ASP application, for example, each typical user session consumes at least
4.5 KB, unless sessions are explicitly turned off. Also, unless a server application is
cluster-aware, managing session state across a cluster can become complicated
(because different servers in the cluster might handle successive requests).
Flash Remoting handles session state through means that are invisible to both the
user and the server. Session information is sent with each and every AMF packet
between the client and the server. No manual session management is required. In a
rich client implementation, the Flash movie is loaded into the user’s browser only
once, so session state is maintained automatically with every call to the server. In
addition, because the session state is maintained within the Flash movie in the user’s
browser, it makes little difference if the application server is clustered.
Flash Remoting Requirements
To develop Flash applications that use Flash Remoting, you must have:
• Macromedia Flash MX or later
• The Macromedia Flash Remoting components
• A server that has the Flash Remoting gateway or the equivalent (such as
AMFPHP, FLAP, or OpenAMF)
Macromedia Flash Authoring Tool
The Flash authoring environment is used to create Flash files (.fla and .swf files) and
applications. Flash MX was a substantial upgrade to previous versions of Flash. In
addition to cosmetic interface changes, the way in which Flash applications are
developed has changed. Flash MX or later is required to develop Flash Remoting
applications. A fully functional trial version is available from Macromedia at:
http://www.macromedia.com/software/flash/download/
You can find more information on Flash at:
http://www.macromedia.com/software/flash/
As of Flash MX, Macromedia abandoned a consistent version-
numbering scheme for the authoring tool, but the Flash Player is still
assigned a numeric version. Flash Remoting requires that you publish
your .swf files in Flash 6 format or later.
Kommentare zu diesen Handbüchern