ActionScript 3.0 Language and Components Reference | All Packages | All Classes | Language Elements | Index | Appendixes | Conventions | Frames No Frames |
IDynamicPropertyOutput

Package | flash.net
Interface | public interface IDynamicPropertyOutput

Language Version : | ActionScript 3.0

Player Version : | Flash Player 9

This interface controls the serialization of dynamic properties of dynamic objects. You use this interface with the IDynamicPropertyWriter interface and the `ObjectEncoding.dynamicPropertyWriter` property.

See also

IDynamicPropertyWriter
ObjectEncoding.dynamicPropertyWriter

Public Methods

| Method | Defined By
--- | --- | ---
|  | writeDynamicProperty(name:String, value:*):void Adds a dynamic property to the binary output of a serialized object. | IDynamicPropertyOutput

Method Detail

writeDynamicProperty | () | method

`public function writeDynamicProperty(name:String, value:*):void`

Language Version : | ActionScript 3.0

Player Version : | Flash Player 9

Adds a dynamic property to the binary output of a serialized object. When the object is subsequently read (using a method such as `readObject`), it contains the new property. You can use this method to exclude properties of dynamic objects from serialization; to write values to properties of dynamic objects; or to create new properties for dynamic objects.

Parameters

| `name:String` — The name of the property. You can use this parameter either to specify the name of an existing property of the dynamic object or to create a new property.
| `value:*` — The value to write to the specified property.

See also

IDynamicPropertyWriter
ObjectEncoding.dynamicPropertyWriter

Submit Feedback on LiveDocs
© 2004-2008 Adobe Systems Incorporated. All rights reserved.
Tue May 20 2008, 04:02 AM -07:00