public TagDefineMovie(Flash flash, byte[] data, Cursor cursor) : base(flash, data, cursor)
{
int tagsCount = Utils.ReadInt32(data, cursor);
_tags = new ITag[tagsCount];
for (int i = 0; i < tagsCount; i++)
{
byte type = Utils.ReadByte(data, cursor);
if (type == TagPlaceObject.TYPE)
{
ITag tag = new TagPlaceObject(this.flash, data, cursor);
_tags[i] = tag;
}
else if (type == TagRemoveObject.TYPE)
{
ITag tag = new TagRemoveObject(this.flash, data, cursor);
_tags[i] = tag;
}
}
_maxDepth = Utils.ReadInt32(data, cursor);
int framesCount = Utils.ReadInt32(data, cursor);
_frames = new Frame[framesCount];
for (int i = 0; i < framesCount; i++)
{
Frame frame = new Frame(i, data, cursor);
_frames[i] = frame;
}
}