C# Class SwfDotNet.IO.Tags.PlaceObjectTag

PlaceObjectTag is used to add an object (shape, button, etc.) to the Flash Player's display list.

Every class that defines a shape, button etc. is assigned a unique identifier. This is an integer in the range 1..65535 and is used to refer to objects when performing actions such as adding or removing them from the display list.

The display list contains all the objects that are currently visible on the Flash Player's screen. The display list is ordered in layers, with one (and only one) object displayed on each layer. The Layer defines the order in which objects are displayed. Objects with a higher layer number are displayed in front of objects on a lower layer.

The coordinate transform is principally used to specify the location of the object when it is drawn on the screen however more complex coordinate transforms can also be specified such as rotating or scaling the object without changing the original definition.

Similarly the color transform allows the color of the object to be changed when it is displayed without changing the original definition. The PlaceObjectTag class only supports opaque colors so although the CXForm supports transparent colors this information is ignored by the Flash Player. The color transform is optional and may be set to the null object.

This tag was introduced in Flash 1 and is superceded by the PlaceObject2 tag which was added in Flash 3.

Inheritance: BaseTag, DefineTargetTag
Datei anzeigen Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
GetSizeOf ( ) : int

Gets the size of.

PlaceObjectTag ( ) : System

Creates a new PlaceObjectTag instance.

PlaceObjectTag ( ushort characterId, ushort depth, Matrix matrix ) : System

Creates a new PlaceObjectTag instance.

PlaceObjectTag ( ushort characterId, ushort depth, Matrix matrix, CXForm colorTransform ) : System

Creates a new PlaceObjectTag instance.

PlaceObjectTag ( ushort characterId, ushort depth, int xLocation, int yLocation ) : System

Creates a new PlaceObjectTag instance.

ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

see base class

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

UpdateData ( byte version ) : void

see base class

Method Details

GetSizeOf() public method

Gets the size of.
public GetSizeOf ( ) : int
return int

PlaceObjectTag() public method

Creates a new PlaceObjectTag instance.
public PlaceObjectTag ( ) : System
return System

PlaceObjectTag() public method

Creates a new PlaceObjectTag instance.
public PlaceObjectTag ( ushort characterId, ushort depth, Matrix matrix ) : System
characterId ushort Character id.
depth ushort Depth.
matrix Matrix Matrix.
return System

PlaceObjectTag() public method

Creates a new PlaceObjectTag instance.
public PlaceObjectTag ( ushort characterId, ushort depth, Matrix matrix, CXForm colorTransform ) : System
characterId ushort Character id.
depth ushort Depth.
matrix Matrix Matrix.
colorTransform CXForm Color transform.
return System

PlaceObjectTag() public method

Creates a new PlaceObjectTag instance.
public PlaceObjectTag ( ushort characterId, ushort depth, int xLocation, int yLocation ) : System
characterId ushort Character id.
depth ushort Depth.
xLocation int X location.
yLocation int Y location.
return System

ReadData() public method

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader BufferedBinaryReader
return void

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer XmlWriter Writer.
return void

UpdateData() public method

see base class
public UpdateData ( byte version ) : void
version byte
return void