| Package | flash.net |
| Class | public final class ObjectEncoding |
| Inheritance | ObjectEncoding Object |
Object encoding controls how objects are represented in Action Message Format (AMF). Flash Player uses AMF to enable efficient communication between a Flash application and a remote server. AMF encodes remote procedure calls into a compact binary representation that can be transferred over HTTP/HTTPS or the RTMP/RTMPS protocol used by Flash Media Server. ActionScript objects and data values are serialized into this binary format, which is generally more compact than other representations, such as XML.
ByteArray, NetConnection, NetStream, SharedObject, Socket, and URLStream
all contain an objectEncoding property that is assigned
a constant from the ObjectEncoding class.
The behavior of the objectEncoding property differs depending
on the object; each class's objectEncoding property
description explains the behavior more thoroughly.
| Property | Defined by | ||
|---|---|---|---|
| AMF0 : uint = 0 [static]
Specifies that objects are serialized using the AMF format for ActionScript 1.0 and 2.0.
| ObjectEncoding | ||
| AMF3 : uint = 3 [static]
Specifies that objects are serialized using the AMF format for ActionScript 3.0.
| ObjectEncoding | ||
| DEFAULT : uint = 3 [static]
Specifies the default (latest) format for the current player.
| ObjectEncoding | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
| dynamicPropertyWriter : IDynamicPropertyWriter
[static]
Documentation is forthcoming.
| ObjectEncoding | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
public static const AMF0:uint = 0
public static const AMF3:uint = 3
public static const DEFAULT:uint = 3
For example, if an object has the objectEncoding property set to
flash.net.ObjectEncoding.DEFAULT, Flash Player uses AMF3 encoding.
If, in the future, a later version of the Flash Player introduces a new AMF version
and you republish your content, the player will use that new AMF version.
You can use this constant only if you're not concerned at all about interoperability
with previous versions of Flash Player.
dynamicPropertyWriter:IDynamicPropertyWriter [read-write] public static function get dynamicPropertyWriter():IDynamicPropertyWriter
public function set dynamicPropertyWriter(value:IDynamicPropertyWriter):void
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/flashauthoringpreview/flash/net/ObjectEncoding.html