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
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Init ( ) : void

Inits this instance.

Method Details

Add() public méthode

Adds the specified child tag.
public Add ( BaseTag childTag ) : void
childTag BaseTag Child tag.
Résultat void

DefineSpriteTag() public méthode

Creates a new DefineSpriteTag instance.
public DefineSpriteTag ( ) : System
Résultat System

DefineSpriteTag() public méthode

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.
Résultat System

Init() protected méthode

Inits this instance.
protected Init ( ) : void
Résultat void

ReadData() public méthode

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

Serialize() public méthode

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Résultat void

UpdateData() public méthode

see base class
public UpdateData ( byte version ) : void
version byte
Résultat void

this() public méthode

see base class
public this ( int index ) : byte[]
index int
Résultat byte[]