MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Specifications Page 21

  • Download
  • Add to my manuals
  • Print
  • Page
    / 40
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 20
This is the Title of the Book, eMatter Edition
Copyright © 2003 O’Reilly & Associates, Inc. All rights reserved.
Hello World
|
19
Microsoft ASP.NET Servers
Flash Remoting is available as a standalone product for Microsoft ASP.NET servers.
It allows remote services to be deployed as:
ASP.NET pages (.aspx pages)
DLL libraries (in the local assembly cache)
.NET executables
SOAP-based web services
Flash Remoting does not work with “classic” ASP pages. You must
have the ASP.NET framework running on your server. To run the
ASP.NET framework you need IIS 5.0 or later, running on Windows
2000 Professional, Windows 2000 Server, Windows XP Professional,
or Windows Server 2003 (a.k.a. Windows .NET Server).
Hello World
An introduction to any technology would not be complete without a “Hello World”
example. This will give you some hands-on experience with the client-side and
server-side code before diving into details. It also provides a sound basis for explor-
ing Flash Remoting on your own.
First, we will look at the Flash code necessary to call the remote service, which is vir-
tually the same regardless of which server-side technology implements the service.
We will then look at the server-side code implemented in ColdFusion, Server-Side
ActionScript, Java, ASP.NET, PHP, and as a SOAP-based web service.
The examples throughout the book assume that you have Flash
Remoting installed and configured on your server, and that you have
installed the Flash Remoting components for Flash MX. Chapter 2
covers Flash Remoting installation and configuration in more detail.
Flash ActionScript Code
The client-side ActionScript is virtually the same for each server-side service exam-
ple. The only things that change are the path to the remote service when it is imple-
mented as a web service and the path to the Flash Remoting gateway, which varies
depending on the server implementation.
The client-side ActionScript code shown in Example 1-1 should be inserted on the
first frame of the main timeline of a Flash movie, as shown in Figure 1-4.
Page view 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 39 40

Comments to this Manuals

No comments