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
파일 보기 프로젝트 열기: bladecoding/SwfExport 1 사용 예제들

공개 메소드들

메소드 설명
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