pt.tumba.parser.swf
Class MovieBuilder

java.lang.Object
  extended by pt.tumba.parser.swf.MovieBuilder
All Implemented Interfaces:
SWFHeader, SWFSpriteTagTypes, SWFTags, SWFTagTypes

public class MovieBuilder
extends java.lang.Object
implements SWFTagTypes

An implementation of the SWFTagTypes interface that builds a Movie object

Author:
unknown

Nested Class Summary
protected static class MovieBuilder.ActionsBuilder
          A SWFActions implementation that breaks multiple action arrays into separate Actions objects
protected  class MovieBuilder.ButtonActionBuilder
          Description of the Class
protected  class MovieBuilder.ClipActionBuilder
          Description of the Class
protected  class MovieBuilder.GlyphBuilder
          Description of the Class
protected  class MovieBuilder.MorphShapeBuilder
          Description of the Class
protected  class MovieBuilder.ShapeBuilder
          SWFShape implementation that builds a Shape
protected  class MovieBuilder.TextBuilder
          A SWFText implementation that builds a Text object
 
Field Summary
protected  MovieClip clip
          Description of the Field
protected  Frame frame
          Description of the Field
protected  java.util.Map instances
          Description of the Field
protected  Movie movie
          Description of the Field
protected  boolean newMovie
          Description of the Field
protected  java.util.Map symbols
          Description of the Field
protected  TimeLine timeline
          Description of the Field
 
Constructor Summary
  MovieBuilder()
          Build a new Movie
  MovieBuilder(Movie movie)
          Append to an existing movie (do not change size,rate,color,version etc)
protected MovieBuilder(MovieBuilder parent, MovieClip clip)
          Build the timeline of a MovieClip
 
Method Summary
protected  Frame currentFrame()
          Description of the Method
 java.util.Map getDefinedSymbols()
          Get the defined symbols - keyed by Integer( symbolId )
protected  Instance getInstance(int depth)
          Gets the instance attribute of the MovieBuilder object
 Movie getMovie()
          Gets the movie attribute of the MovieBuilder object
protected  Symbol getSymbol(int id)
          Gets the symbol attribute of the MovieBuilder object
 void header(int version, long length, int twipsWidth, int twipsHeight, int frameRate, int frameCount)
          SWFHeader interface.
protected  void saveInstance(int depth, Instance inst)
          Description of the Method
protected  void saveSymbol(int id, Symbol s)
          Description of the Method
 void tag(int tagType, boolean longTag, byte[] contents)
          SWFTags interface
 void tagButtonCXForm(int buttonId, ColorTransform transform)
          SWFTagTypes interface
 void tagDefineBits(int id, byte[] imageData)
          Description of the Method
 void tagDefineBitsJPEG2(int id, byte[] data)
          SWFTagTypes interface
 void tagDefineBitsJPEG2(int id, java.io.InputStream jpegImage)
          SWFTagTypes interface
 void tagDefineBitsJPEG3(int id, byte[] imageData, byte[] alphaData)
          Description of the Method
 void tagDefineBitsLossless(int id, int format, int width, int height, Color[] colors, byte[] imageData)
          SWFTagTypes interface
 void tagDefineBitsLossless2(int id, int format, int width, int height, Color[] colors, byte[] imageData)
          SWFTagTypes interface
 SWFActions tagDefineButton(int id, java.util.List buttonRecords)
          SWFTagTypes interface
 SWFActions tagDefineButton2(int id, boolean trackAsMenu, java.util.List buttonRecord2s)
          SWFTagTypes interface
 void tagDefineButtonSound(int buttonId, int rollOverSoundId, SoundInfo rollOverSoundInfo, int rollOutSoundId, SoundInfo rollOutSoundInfo, int pressSoundId, SoundInfo pressSoundInfo, int releaseSoundId, SoundInfo releaseSoundInfo)
          Description of the Method
 SWFVectors tagDefineFont(int id, int numGlyphs)
          SWFTagTypes interface
 SWFVectors tagDefineFont2(int id, int flags, java.lang.String name, int numGlyphs, int ascent, int descent, int leading, int[] codes, int[] advances, Rect[] bounds, int[] kernCodes1, int[] kernCodes2, int[] kernAdjustments)
          SWFTagTypes interface
 void tagDefineFontInfo(int fontId, java.lang.String fontName, int flags, int[] codes)
          SWFTagTypes interface
 SWFShape tagDefineMorphShape(int id, Rect startBounds, Rect endBounds)
          SWFTagTypes interface
 void tagDefineQuickTimeMovie(int id, java.lang.String filename)
          SWFTagTypes interface
 SWFShape tagDefineShape(int id, Rect outline)
          SWFTagTypes interface
 SWFShape tagDefineShape2(int id, Rect outline)
          SWFTagTypes interface
 SWFShape tagDefineShape3(int id, Rect outline)
          SWFTagTypes interface
 void tagDefineSound(int id, int format, int frequency, boolean bits16, boolean stereo, int sampleCount, byte[] soundData)
          Description of the Method
 SWFTagTypes tagDefineSprite(int id)
          SWFTagTypes interface
 SWFText tagDefineText(int id, Rect bounds, Matrix matrix)
          SWFTagTypes interface
 SWFText tagDefineText2(int id, Rect bounds, Matrix matrix)
          SWFTagTypes interface
 void tagDefineTextField(int fieldId, java.lang.String fieldName, java.lang.String initialText, Rect boundary, int flags, AlphaColor textColor, int alignment, int fontId, int fontSize, int charLimit, int leftMargin, int rightMargin, int indentation, int lineSpacing)
          SWFTagTypes interface
 SWFActions tagDoAction()
          SWFTagTypes interface
 void tagEnableDebug(byte[] password)
          SWFTagTypes interface
 void tagEnd()
          SWFTagTypes interface
 void tagExport(java.lang.String[] names, int[] ids)
          SWFTagTypes interface
 void tagFrameLabel(java.lang.String label)
          SWFTagTypes interface
 void tagFreeCharacter(int charId)
          SWFTagTypes interface
 void tagGenerator(byte[] data)
          Description of the Method
 void tagGeneratorCommand(byte[] data)
          Description of the Method
 void tagGeneratorFont(byte[] data)
          Description of the Method
 void tagGeneratorText(byte[] data)
          Description of the Method
 void tagImport(java.lang.String movieName, java.lang.String[] names, int[] ids)
          SWFTagTypes interface
 void tagJPEGTables(byte[] jpegEncodingData)
          Description of the Method
 void tagNameCharacter(byte[] data)
          Description of the Method
 void tagPlaceObject(int charId, int depth, Matrix matrix, AlphaTransform cxform)
          SWFTagTypes interface
 SWFActions tagPlaceObject2(boolean isMove, int clipDepth, int depth, int charId, Matrix matrix, AlphaTransform cxform, int ratio, java.lang.String name, int clipActionFlags)
          SWFTagTypes interface
 void tagProtect(byte[] password)
          SWFTagTypes interface
 void tagRemoveObject(int charId, int depth)
          SWFTagTypes interface
 void tagRemoveObject2(int depth)
          SWFTagTypes interface
 void tagSerialNumber(java.lang.String serialNumber)
          Description of the Method
 void tagSetBackgroundColor(Color color)
          SWFTagTypes interface
 void tagShowFrame()
          SWFTagTypes interface
 void tagSoundStreamBlock(byte[] soundData)
          Description of the Method
 void tagSoundStreamHead(int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount)
          Description of the Method
 void tagSoundStreamHead2(int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount)
          Description of the Method
 void tagStartSound(int soundId, SoundInfo info)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

movie

protected Movie movie
Description of the Field


clip

protected MovieClip clip
Description of the Field


newMovie

protected boolean newMovie
Description of the Field


frame

protected Frame frame
Description of the Field


symbols

protected java.util.Map symbols
Description of the Field


timeline

protected TimeLine timeline
Description of the Field


instances

protected java.util.Map instances
Description of the Field

Constructor Detail

MovieBuilder

public MovieBuilder()
Build a new Movie


MovieBuilder

public MovieBuilder(Movie movie)
Append to an existing movie (do not change size,rate,color,version etc)

Parameters:
movie - Description of the Parameter

MovieBuilder

protected MovieBuilder(MovieBuilder parent,
                       MovieClip clip)
Build the timeline of a MovieClip

Parameters:
parent - Description of the Parameter
clip - Description of the Parameter
Method Detail

getMovie

public Movie getMovie()
Gets the movie attribute of the MovieBuilder object

Returns:
The movie value

getDefinedSymbols

public java.util.Map getDefinedSymbols()
Get the defined symbols - keyed by Integer( symbolId )

Returns:
The definedSymbols value

getSymbol

protected Symbol getSymbol(int id)
Gets the symbol attribute of the MovieBuilder object

Parameters:
id - Description of the Parameter
Returns:
The symbol value

saveSymbol

protected void saveSymbol(int id,
                          Symbol s)
Description of the Method

Parameters:
id - Description of the Parameter
s - Description of the Parameter

getInstance

protected Instance getInstance(int depth)
Gets the instance attribute of the MovieBuilder object

Parameters:
depth - Description of the Parameter
Returns:
The instance value

saveInstance

protected void saveInstance(int depth,
                            Instance inst)
Description of the Method

Parameters:
depth - Description of the Parameter
inst - Description of the Parameter

tag

public void tag(int tagType,
                boolean longTag,
                byte[] contents)
         throws java.io.IOException
SWFTags interface

Specified by:
tag in interface SWFTags
Parameters:
tagType - Description of the Parameter
longTag - Description of the Parameter
contents - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

header

public void header(int version,
                   long length,
                   int twipsWidth,
                   int twipsHeight,
                   int frameRate,
                   int frameCount)
            throws java.io.IOException
SWFHeader interface.

Specified by:
header in interface SWFHeader
Parameters:
version - Description of the Parameter
length - Description of the Parameter
twipsWidth - Description of the Parameter
twipsHeight - Description of the Parameter
frameRate - Description of the Parameter
frameCount - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagEnd

public void tagEnd()
            throws java.io.IOException
SWFTagTypes interface

Specified by:
tagEnd in interface SWFSpriteTagTypes
Throws:
java.io.IOException - Description of the Exception

tagShowFrame

public void tagShowFrame()
                  throws java.io.IOException
SWFTagTypes interface

Specified by:
tagShowFrame in interface SWFSpriteTagTypes
Throws:
java.io.IOException - Description of the Exception

currentFrame

protected Frame currentFrame()
Description of the Method

Returns:
Description of the Return Value

tagDefineSound

public void tagDefineSound(int id,
                           int format,
                           int frequency,
                           boolean bits16,
                           boolean stereo,
                           int sampleCount,
                           byte[] soundData)
                    throws java.io.IOException
Description of the Method

Specified by:
tagDefineSound in interface SWFTagTypes
Parameters:
id - Description of the Parameter
format - Description of the Parameter
frequency - Description of the Parameter
bits16 - Description of the Parameter
stereo - Description of the Parameter
sampleCount - Description of the Parameter
soundData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineButtonSound

public void tagDefineButtonSound(int buttonId,
                                 int rollOverSoundId,
                                 SoundInfo rollOverSoundInfo,
                                 int rollOutSoundId,
                                 SoundInfo rollOutSoundInfo,
                                 int pressSoundId,
                                 SoundInfo pressSoundInfo,
                                 int releaseSoundId,
                                 SoundInfo releaseSoundInfo)
                          throws java.io.IOException
Description of the Method

Specified by:
tagDefineButtonSound in interface SWFTagTypes
Parameters:
buttonId - Description of the Parameter
rollOverSoundId - Description of the Parameter
rollOverSoundInfo - Description of the Parameter
rollOutSoundId - Description of the Parameter
rollOutSoundInfo - Description of the Parameter
pressSoundId - Description of the Parameter
pressSoundInfo - Description of the Parameter
releaseSoundId - Description of the Parameter
releaseSoundInfo - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagStartSound

public void tagStartSound(int soundId,
                          SoundInfo info)
                   throws java.io.IOException
Description of the Method

Specified by:
tagStartSound in interface SWFSpriteTagTypes
Parameters:
soundId - Description of the Parameter
info - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSoundStreamHead

public void tagSoundStreamHead(int playbackFrequency,
                               boolean playback16bit,
                               boolean playbackStereo,
                               int streamFormat,
                               int streamFrequency,
                               boolean stream16bit,
                               boolean streamStereo,
                               int averageSampleCount)
                        throws java.io.IOException
Description of the Method

Specified by:
tagSoundStreamHead in interface SWFSpriteTagTypes
Parameters:
playbackFrequency - Description of the Parameter
playback16bit - Description of the Parameter
playbackStereo - Description of the Parameter
streamFormat - Description of the Parameter
streamFrequency - Description of the Parameter
stream16bit - Description of the Parameter
streamStereo - Description of the Parameter
averageSampleCount - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSoundStreamHead2

public void tagSoundStreamHead2(int playbackFrequency,
                                boolean playback16bit,
                                boolean playbackStereo,
                                int streamFormat,
                                int streamFrequency,
                                boolean stream16bit,
                                boolean streamStereo,
                                int averageSampleCount)
                         throws java.io.IOException
Description of the Method

Specified by:
tagSoundStreamHead2 in interface SWFSpriteTagTypes
Parameters:
playbackFrequency - Description of the Parameter
playback16bit - Description of the Parameter
playbackStereo - Description of the Parameter
streamFormat - Description of the Parameter
streamFrequency - Description of the Parameter
stream16bit - Description of the Parameter
streamStereo - Description of the Parameter
averageSampleCount - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSoundStreamBlock

public void tagSoundStreamBlock(byte[] soundData)
                         throws java.io.IOException
Description of the Method

Specified by:
tagSoundStreamBlock in interface SWFSpriteTagTypes
Parameters:
soundData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSerialNumber

public void tagSerialNumber(java.lang.String serialNumber)
                     throws java.io.IOException
Description of the Method

Specified by:
tagSerialNumber in interface SWFTagTypes
Parameters:
serialNumber - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagGenerator

public void tagGenerator(byte[] data)
                  throws java.io.IOException
Description of the Method

Specified by:
tagGenerator in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagGeneratorText

public void tagGeneratorText(byte[] data)
                      throws java.io.IOException
Description of the Method

Specified by:
tagGeneratorText in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagGeneratorCommand

public void tagGeneratorCommand(byte[] data)
                         throws java.io.IOException
Description of the Method

Specified by:
tagGeneratorCommand in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagGeneratorFont

public void tagGeneratorFont(byte[] data)
                      throws java.io.IOException
Description of the Method

Specified by:
tagGeneratorFont in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagNameCharacter

public void tagNameCharacter(byte[] data)
                      throws java.io.IOException
Description of the Method

Specified by:
tagNameCharacter in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBits

public void tagDefineBits(int id,
                          byte[] imageData)
                   throws java.io.IOException
Description of the Method

Specified by:
tagDefineBits in interface SWFTagTypes
Parameters:
id - Description of the Parameter
imageData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagJPEGTables

public void tagJPEGTables(byte[] jpegEncodingData)
                   throws java.io.IOException
Description of the Method

Specified by:
tagJPEGTables in interface SWFTagTypes
Parameters:
jpegEncodingData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsJPEG3

public void tagDefineBitsJPEG3(int id,
                               byte[] imageData,
                               byte[] alphaData)
                        throws java.io.IOException
Description of the Method

Specified by:
tagDefineBitsJPEG3 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
imageData - Description of the Parameter
alphaData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDoAction

public SWFActions tagDoAction()
                       throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDoAction in interface SWFSpriteTagTypes
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineShape

public SWFShape tagDefineShape(int id,
                               Rect outline)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineShape in interface SWFTagTypes
Parameters:
id - Description of the Parameter
outline - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineShape2

public SWFShape tagDefineShape2(int id,
                                Rect outline)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineShape2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
outline - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineShape3

public SWFShape tagDefineShape3(int id,
                                Rect outline)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineShape3 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
outline - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagFreeCharacter

public void tagFreeCharacter(int charId)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagFreeCharacter in interface SWFSpriteTagTypes
Parameters:
charId - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagPlaceObject

public void tagPlaceObject(int charId,
                           int depth,
                           Matrix matrix,
                           AlphaTransform cxform)
                    throws java.io.IOException
SWFTagTypes interface

Specified by:
tagPlaceObject in interface SWFSpriteTagTypes
Parameters:
charId - Description of the Parameter
depth - Description of the Parameter
matrix - Description of the Parameter
cxform - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagPlaceObject2

public SWFActions tagPlaceObject2(boolean isMove,
                                  int clipDepth,
                                  int depth,
                                  int charId,
                                  Matrix matrix,
                                  AlphaTransform cxform,
                                  int ratio,
                                  java.lang.String name,
                                  int clipActionFlags)
                           throws java.io.IOException
SWFTagTypes interface

Specified by:
tagPlaceObject2 in interface SWFSpriteTagTypes
Parameters:
isMove - Description of the Parameter
clipDepth - Description of the Parameter
depth - Description of the Parameter
charId - Description of the Parameter
matrix - Description of the Parameter
cxform - Description of the Parameter
ratio - Description of the Parameter
name - Description of the Parameter
clipActionFlags - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagRemoveObject

public void tagRemoveObject(int charId,
                            int depth)
                     throws java.io.IOException
SWFTagTypes interface

Specified by:
tagRemoveObject in interface SWFSpriteTagTypes
Parameters:
charId - Description of the Parameter
depth - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagRemoveObject2

public void tagRemoveObject2(int depth)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagRemoveObject2 in interface SWFSpriteTagTypes
Parameters:
depth - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSetBackgroundColor

public void tagSetBackgroundColor(Color color)
                           throws java.io.IOException
SWFTagTypes interface

Specified by:
tagSetBackgroundColor in interface SWFTagTypes
Parameters:
color - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagFrameLabel

public void tagFrameLabel(java.lang.String label)
                   throws java.io.IOException
SWFTagTypes interface

Specified by:
tagFrameLabel in interface SWFSpriteTagTypes
Parameters:
label - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineSprite

public SWFTagTypes tagDefineSprite(int id)
                            throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineSprite in interface SWFTagTypes
Parameters:
id - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagProtect

public void tagProtect(byte[] password)
                throws java.io.IOException
SWFTagTypes interface

Specified by:
tagProtect in interface SWFTagTypes
Parameters:
password - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagEnableDebug

public void tagEnableDebug(byte[] password)
                    throws java.io.IOException
SWFTagTypes interface

Specified by:
tagEnableDebug in interface SWFTagTypes
Parameters:
password - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineFont

public SWFVectors tagDefineFont(int id,
                                int numGlyphs)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineFont in interface SWFTagTypes
Parameters:
id - Description of the Parameter
numGlyphs - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineFontInfo

public void tagDefineFontInfo(int fontId,
                              java.lang.String fontName,
                              int flags,
                              int[] codes)
                       throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineFontInfo in interface SWFTagTypes
Parameters:
fontId - Description of the Parameter
fontName - Description of the Parameter
flags - Description of the Parameter
codes - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineFont2

public SWFVectors tagDefineFont2(int id,
                                 int flags,
                                 java.lang.String name,
                                 int numGlyphs,
                                 int ascent,
                                 int descent,
                                 int leading,
                                 int[] codes,
                                 int[] advances,
                                 Rect[] bounds,
                                 int[] kernCodes1,
                                 int[] kernCodes2,
                                 int[] kernAdjustments)
                          throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineFont2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
flags - Description of the Parameter
name - Description of the Parameter
numGlyphs - Description of the Parameter
ascent - Description of the Parameter
descent - Description of the Parameter
leading - Description of the Parameter
codes - Description of the Parameter
advances - Description of the Parameter
bounds - Description of the Parameter
kernCodes1 - Description of the Parameter
kernCodes2 - Description of the Parameter
kernAdjustments - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineTextField

public void tagDefineTextField(int fieldId,
                               java.lang.String fieldName,
                               java.lang.String initialText,
                               Rect boundary,
                               int flags,
                               AlphaColor textColor,
                               int alignment,
                               int fontId,
                               int fontSize,
                               int charLimit,
                               int leftMargin,
                               int rightMargin,
                               int indentation,
                               int lineSpacing)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineTextField in interface SWFTagTypes
Parameters:
fieldId - Description of the Parameter
fieldName - Description of the Parameter
initialText - Description of the Parameter
boundary - Description of the Parameter
flags - Description of the Parameter
textColor - Description of the Parameter
alignment - Description of the Parameter
fontId - Description of the Parameter
fontSize - Description of the Parameter
charLimit - Description of the Parameter
leftMargin - Description of the Parameter
rightMargin - Description of the Parameter
indentation - Description of the Parameter
lineSpacing - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineText

public SWFText tagDefineText(int id,
                             Rect bounds,
                             Matrix matrix)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineText in interface SWFTagTypes
Parameters:
id - Description of the Parameter
bounds - Description of the Parameter
matrix - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineText2

public SWFText tagDefineText2(int id,
                              Rect bounds,
                              Matrix matrix)
                       throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineText2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
bounds - Description of the Parameter
matrix - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineButton

public SWFActions tagDefineButton(int id,
                                  java.util.List buttonRecords)
                           throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineButton in interface SWFTagTypes
Parameters:
id - Description of the Parameter
buttonRecords - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception
See Also:
com.anotherbigidea.flash.structs.ButtonRecord

tagButtonCXForm

public void tagButtonCXForm(int buttonId,
                            ColorTransform transform)
                     throws java.io.IOException
SWFTagTypes interface

Specified by:
tagButtonCXForm in interface SWFTagTypes
Parameters:
buttonId - Description of the Parameter
transform - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineButton2

public SWFActions tagDefineButton2(int id,
                                   boolean trackAsMenu,
                                   java.util.List buttonRecord2s)
                            throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineButton2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
trackAsMenu - Description of the Parameter
buttonRecord2s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception
See Also:
com.anotherbigidea.flash.structs.ButtonRecord2

tagExport

public void tagExport(java.lang.String[] names,
                      int[] ids)
               throws java.io.IOException
SWFTagTypes interface

Specified by:
tagExport in interface SWFTagTypes
Parameters:
names - Description of the Parameter
ids - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagImport

public void tagImport(java.lang.String movieName,
                      java.lang.String[] names,
                      int[] ids)
               throws java.io.IOException
SWFTagTypes interface

Specified by:
tagImport in interface SWFTagTypes
Parameters:
movieName - Description of the Parameter
names - Description of the Parameter
ids - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineQuickTimeMovie

public void tagDefineQuickTimeMovie(int id,
                                    java.lang.String filename)
                             throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineQuickTimeMovie in interface SWFTagTypes
Parameters:
id - Description of the Parameter
filename - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsJPEG2

public void tagDefineBitsJPEG2(int id,
                               byte[] data)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsJPEG2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsJPEG2

public void tagDefineBitsJPEG2(int id,
                               java.io.InputStream jpegImage)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsJPEG2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
jpegImage - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsLossless

public void tagDefineBitsLossless(int id,
                                  int format,
                                  int width,
                                  int height,
                                  Color[] colors,
                                  byte[] imageData)
                           throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsLossless in interface SWFTagTypes
Parameters:
id - Description of the Parameter
format - Description of the Parameter
width - Description of the Parameter
height - Description of the Parameter
colors - Description of the Parameter
imageData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsLossless2

public void tagDefineBitsLossless2(int id,
                                   int format,
                                   int width,
                                   int height,
                                   Color[] colors,
                                   byte[] imageData)
                            throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsLossless2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
format - Description of the Parameter
width - Description of the Parameter
height - Description of the Parameter
colors - Description of the Parameter
imageData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineMorphShape

public SWFShape tagDefineMorphShape(int id,
                                    Rect startBounds,
                                    Rect endBounds)
                             throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineMorphShape in interface SWFTagTypes
Parameters:
id - Description of the Parameter
startBounds - Description of the Parameter
endBounds - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception