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
Показать файл Открыть проект Примеры использования класса

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

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