C# Class 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.

Inheritance: BaseTag, DefineTag, IBaseTagContainer
显示文件 Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
Init ( ) : void

Inits this instance.

Method Details

Add() public method

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

DefineSpriteTag() public method

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

DefineSpriteTag() public method

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.
return System

Init() protected method

Inits this instance.
protected Init ( ) : void
return void

ReadData() public method

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

Serialize() public method

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

UpdateData() public method

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

this() public method

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