Adobe 65029121 - Flash Media Streaming Server Developer's Manual page 10

Developer's guide
Hide thumbs Also See for 65029121 - Flash Media Streaming Server:
Table of Contents

Advertisement

import flash.display.MovieClip;
public class MyClass extends MovieClip {
}
}
The class name should match the filename without the .as extension. Your class might import or extend other
ActionScript 3.0 classes, such as MovieClip.
You are now ready to start writing ActionScript code for Flash Media Interactive Server.
Create an ActionScript 3.0 class in Flex
1
Start Adobe Flex Builder.
Create a new project. Choose File > New > ActionScript Project and follow the wizard.
2
If you created an ActionScript project, an ActionScript 3.0 file opens, with package and class declarations already
filled in:
package {
import flash.display.Sprite;
public class Test extends Sprite
{
public function TestAs()
{
}
}
}
3
(Optional) If you created a Flex project, choose File > New > ActionScript Class.
Writing server-side code
In general, applications require server-side code written in Server-Side ActionScript if they need to do any of the
following:
By user name and password, or by credentials stored in an application server or database.
Authenticate clients
Implement connection logic
By calling remote methods on clients or updating shared objects that affect all connected clients.
Update clients
By allowing you to play, record, and manage streams sent to and from the server.
Handle streams
By calling a web service or creating a network socket to an application server or database.
Connect to other servers
Using the access, authorization, or file adaptors.
Extend the server
Place the server-side code in a file named main.asc or yourApplicationName.asc, where yourApplicationName is a
registered application name with Flash Media Interactive Server. To register an application with the server, create a
folder in the RootInstall/applications folder with the application name. For example, to register an application called
skatingClips, create the folder RootInstall/applications/skatingClips. The server-side code would be in a file called
main.asc or skatingClips.asc in the skatingClips folder.
To configure the location of the applications directory, edit the fms.ini or the Vhost.xml configuration file; see Adobe
Flash Media Server Configuration and Administration Guide.
The server-side code goes at the top level of the application directory, or in its scripts subdirectory. For example, you
can use either of these locations:
By taking some action when a client connects or disconnects.
FLASH MEDIA SERVER
7
Developer Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 65029121 - Flash Media Streaming Server and is the answer not in the manual?

This manual is also suitable for:

Flash media server

Table of Contents