C# 클래스 SwfDotNet.IO.Tags.DefineSpriteTag

DefineSpriteTag defines a movie clip that animates shapes within a movie.

It contains an array of movie objects that define the placement of shapes, buttons, text and images and the order in which they are displayed through a time-line that is separate from the parent movie.

Although a movie clip contains the commands that instructs the Flash Player on how to animate the clip it cannot contain any new definitions of objects. All definitions must be in the main movie. All objects referred to by the movie clip must be also defined in the main movie before they can be used.

When using the DefineSpriteTag object can only contain objects from the following classes: ShowFrameTag, PlaceObjectTag, PlaceObject2Tag, RemoveObjectTag, RemoveObject2Tag, DoActionTag, StartSoundTag, FrameLabelTag, SoundStreamHeadTag, SoundStreamHead2Tag, SoundStreamBlockTag or VideoFrameTag. Other objects are not allowed.

This tag was introduced in Flash 3.

상속: BaseTag, DefineTag, IBaseTagContainer
파일 보기 프로젝트 열기: bladecoding/SwfExport 1 사용 예제들

공개 메소드들

메소드 설명
Add ( BaseTag childTag ) : void

Adds the specified child tag.

DefineSpriteTag ( ) : System

Creates a new DefineSpriteTag instance.

DefineSpriteTag ( ushort spriteId, ushort frameCount, BaseTagCollection tags ) : System

Creates a new DefineSpriteTag 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

this ( int index ) : byte[]

see base class

보호된 메소드들

메소드 설명
Init ( ) : void

Inits this instance.

메소드 상세

Add() 공개 메소드

Adds the specified child tag.
public Add ( BaseTag childTag ) : void
childTag BaseTag Child tag.
리턴 void

DefineSpriteTag() 공개 메소드

Creates a new DefineSpriteTag instance.
public DefineSpriteTag ( ) : System
리턴 System

DefineSpriteTag() 공개 메소드

Creates a new DefineSpriteTag instance.
public DefineSpriteTag ( ushort spriteId, ushort frameCount, BaseTagCollection tags ) : System
spriteId ushort Sprite id. That's a unique identifier, in the range 1..65535, for the movie clip.
frameCount ushort Frame count.
tags BaseTagCollection Tags. That's an array of BaseTag objects that define the commands that are executed by the Flash Player to animate the movie clip.
리턴 System

Init() 보호된 메소드

Inits this instance.
protected Init ( ) : void
리턴 void

ReadData() 공개 메소드

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
리턴 void

Serialize() 공개 메소드

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
리턴 void

UpdateData() 공개 메소드

see base class
public UpdateData ( byte version ) : void
version byte
리턴 void

this() 공개 메소드

see base class
public this ( int index ) : byte[]
index int
리턴 byte[]