
42
Description
Method (global); loads an ActionScript file inside the main.asc file. This method executes only
when the ActionScript file is first loaded. The loaded file is compiled and executed after the
main.asc file is successfully loaded, compiled, and executed, and before
application.onAppStart is executed. The path of the specified file is resolved relative to
main.asc. This method is useful for loading ActionScript libraries.
Note: For security reasons, your server-side applications directory, which contains ASC files, audio/video FLV files,
and ActionScript FLA source files, should not be accessible to a user browsing your website.
Example
The following example loads the myLoadedFile.as file:
load("myLoadedFile.as");
NetConnection (object)
The server-side NetConnection object lets you create a two-way connection between a Flash
Communication Server application instance and an application server, another Flash
Communication Server, or another Flash Communication Server application instance on the
same server. You can use NetConnection objects to create powerful applications; for example, you
can get weather information from an application server or share an application load with other
Flash Communication Servers or application instances.
You can use Macromedia Flash Remoting with the Flash Communication Server to communicate
with application servers such as Macromedia ColdFusion MX, Macromedia JRun, Microsoft
.NET, and J2EE servers using Action Message Format (AMF) over HTTP. AMF lets you transfer
light-weight binary data between a Flash Communication Server or a Flash client and a web
application server. For more information, see www.macromedia.com/go/flashremoting.
You can also connect to an application server for server-to-server interactions using standard
protocols (such as HTTP) or connect to another Flash Communication Server for sharing audio,
video, and data using the Macromedia Real-Time Messaging Protocol (RTMP).
To create a NetConnection object, use the constructor function described below.
Komentáře k této Příručce