Cover | Table of Contents | Colophon
http://www.amfphp.org) and Perl (the FLAP
project at http://www.simonf.com/flap). There is
also an open source Flash Remoting for Java implementation (OpenAMF
at http://www.openamf.org).
http://www.macromedia.com/software/flash/download/
http://www.macromedia.com/software/flash/
http://www.macromedia.com/go/flashremoting
http://www.macromedia.com/software/coldfusion/
/*** Section 1 ***/
#include "NetServices.as"
/*** Section 2 ***/
// Assign myURL so it points to your Flash Remoting installation.
var myURL = "http://localhost/flashservices/gateway";
var myServicePath = "com.oreilly.frdg.HelloWorld";
/*** Section 3 ***/
myResult = new Object( );
myResult.onResult = function (data) {
trace("Data received from Server : " + data);
};
myResult.onStatus = function (info) {
trace("An error occurred : " + info.description);
};
System.onStatus = myResult.onStatus;
/*** Section 4 ***/
var myServer = NetServices.createGatewayConnection(myURL);
var myService = myServer.getService(myServicePath, myResult);
myService.sayHello( );POST.
|
Flash Remoting installation
|
Languages
|
|---|---|
|
ColdFusion MX or later
|
CFMLServer-Side ActionScriptJavaCFScript
|
|
JRun 4
|
JavaServer-Side ActionScript
|
|
J2EE
|
Java
|
|
ASP.NET
|
VBC#JScript .NetC++Any other ASP.NET language
|
|
Flash Remoting installation
|
Languages
|
|---|---|
|
ColdFusion MX or later
|
CFMLServer-Side ActionScriptJavaCFScript
|
|
JRun 4
|
JavaServer-Side ActionScript
|
|
J2EE
|
Java
|
|
ASP.NET
|
VBC#JScript .NetC++Any other ASP.NET language
|
|
Project name
|
Language
|
URL
|
|---|---|---|
|
AMFPHP
|
_mc suffix in the names
of movie clip instances.myService = myConnection_conn.getService(serviceName[, responderObject]);
http://www.macromedia.com/exchange, and also on
the Studio MX CD-ROM in the \Flash MX\Extending Flash
MX folder. Once installed, the UI Components Set 2 and
Flash Charting Controls are fully documented under Window →
Component Help - UI Set 2 and Window → Component Help -
Charts, and within the Reference panel (Window → Reference)
in Flash MX and under the Help panel in Flash 2004 and Flash Pro.|
Component
|
Object type
|
Code hints suffix
|
|---|---|---|
|
BarChart
|
FBarChart
|
_bc
|
http://www.macromedia.com/go/drk
|
Component
|
Object type
|
Code hints suffix
|
|---|---|---|
|
AdvancedMessageBox
|
FAdvancedMessageBox
|
None available
|
|
LoadingBox
|
FLoadingBox
|
_txt.text property of a
field named myTextField_txt:<FORM> tag
surrounding form elements. In Flash, there is no encompassing form
tag. The form elements can be text fields, UI
components, or other Flash objects and can reside anywhere in the
movie. Because Flash is an object-oriented interface, you need only
reference the objects by name to access their properties and methods.
You can utilize the text property of a
TextField object in your Flash Remoting service
calls like this:myService.myMethod(somefield_txt.text);
somefield_txt to the remote service. This is
equivalent to sending a form and the contents of a form field to a
server-side page. Because your remote services are expecting the
argument, they don't need to process and parse a
form field—they need only access the value.