The System class
55
Accept some changes and reject others
Some applications can accept changes on a “first
come, first served” basis. This works best when users can resolve conflicts by reapplying a
change if someone else’s change preceded theirs.
Use the SharedObject.send()
method to increase your level of control over changes to
objects
Rather than relying completely on
SharedObject.onSync
to manage
synchronization activities, use the
SharedObject.send()
method as appropriate. The
SharedObject.send()
method broadcasts a message to all clients connected to a remote
shared object, including the client that sent the message.
The Stream class
If you want to delete the FLV and IDX files associated with a recorded stream, you must use
server-side code like the following:
s = Stream.get("foo");
if (s)
{
s.clear();
}
The System class
Macromedia Flash Media Server sends text in UTF-8 format. If you set the
System.useCodepage
to a value of
true
in your ActionScript code, your media application
might not work properly. A value of
true
causes Flash Player to treat all text based on the end
user’s code page, as in early versions of Flash Player. Flash Player, however, will still send UTF-
8 encoded text to Flash Media Server and all text received from the server will be UTF-8
encoded as well. Setting
System.useCodepage = true
in a Flash Media Server application
will likely result in unexpected behavior and is strongly discouraged. For example, text may
not be sent and received from the server properly. For more information on
System.useCodepage
, see the
ActionScript 2.0 Language Reference
or the article “Unicode in
Macromedia Flash” on the
Macromedia website.
Summary of Contents for FLASH MEDIA SERVER 2-DEVELOPING MEDIA
Page 1: ...Developing Media Applications ...
Page 6: ...6 ...
Page 10: ...10 About This Manual ...
Page 36: ...36 Flash Media Server Architecture ...
Page 80: ...80 Debugging and Monitoring Applications ...
Page 106: ...106 Application Development Tips and Tricks ...
Page 114: ...114 ...