C# Класс 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.

Наследование: BaseTag, DefineTargetTag
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetSizeOf() публичный Метод

Gets the size of.
public GetSizeOf ( ) : int
Результат int

PlaceObjectTag() публичный Метод

Creates a new PlaceObjectTag instance.
public PlaceObjectTag ( ) : System
Результат System

PlaceObjectTag() публичный Метод

Creates a new PlaceObjectTag instance.
public PlaceObjectTag ( ushort characterId, ushort depth, Matrix matrix ) : System
characterId ushort Character id.
depth ushort Depth.
matrix Matrix Matrix.
Результат System

PlaceObjectTag() публичный Метод

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.
Результат System

PlaceObjectTag() публичный Метод

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.
Результат System

ReadData() публичный Метод

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader BufferedBinaryReader
Результат void

Serialize() публичный Метод

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer XmlWriter Writer.
Результат void

UpdateData() публичный Метод

see base class
public UpdateData ( byte version ) : void
version byte
Результат void