org.concord.flash.player
Class FMovieBuilder

java.lang.Object
  |
  +--org.concord.flash.player.FMovieBuilder
All Implemented Interfaces:
com.anotherbigidea.flash.interfaces.SWFHeader, com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes, com.anotherbigidea.flash.interfaces.SWFTags, com.anotherbigidea.flash.interfaces.SWFTagTypes

public class FMovieBuilder
extends java.lang.Object
implements com.anotherbigidea.flash.interfaces.SWFTagTypes

An implementation of the SWFTagTypes interface that builds a Movie object


Inner Class Summary
protected static class FMovieBuilder.ActionsBuilder
          A SWFActions implementation that breaks multiple action arrays into separate Actions objects
protected  class FMovieBuilder.ButtonActionBuilder
           
protected  class FMovieBuilder.ClipActionBuilder
           
protected  class FMovieBuilder.GlyphBuilder
           
protected  class FMovieBuilder.MorphShapeBuilder
           
protected  class FMovieBuilder.ShapeBuilder
          SWFShape implementation that builds a Shape
protected  class FMovieBuilder.TextBuilder
          A SWFText implementation that builds a Text object
 
Field Summary
protected  com.anotherbigidea.flash.movie.MovieClip clip
           
protected  com.anotherbigidea.flash.movie.Frame frame
           
protected  java.util.Map instances
           
protected  com.anotherbigidea.flash.movie.Movie movie
           
protected  boolean newMovie
           
static java.util.Hashtable pendingsImages
           
protected  java.util.Map symbols
           
protected  com.anotherbigidea.flash.movie.TimeLine timeline
           
 
Constructor Summary
  FMovieBuilder()
          Build a new Movie
protected FMovieBuilder(FMovieBuilder parent, com.anotherbigidea.flash.movie.MovieClip clip)
          Build the timeline of a MovieClip
  FMovieBuilder(com.anotherbigidea.flash.movie.Movie movie)
          Append to an existing movie (do not change size,rate,color,version etc)
 
Method Summary
protected  com.anotherbigidea.flash.movie.Frame currentFrame()
           
 void finishShapes()
           
 java.util.Map getDefinedSymbols()
          Get the defined symbols - keyed by Integer( symbolId )
protected  com.anotherbigidea.flash.movie.Instance getInstance(int depth)
           
 com.anotherbigidea.flash.movie.Movie getMovie()
           
protected  com.anotherbigidea.flash.movie.Symbol getSymbol(int id)
           
 void header(int version, long length, int twipsWidth, int twipsHeight, float frameRate, int frameCount)
          SWFHeader interface.
protected  void saveInstance(int depth, com.anotherbigidea.flash.movie.Instance inst)
           
protected  void saveSymbol(int id, com.anotherbigidea.flash.movie.Symbol s)
           
 void tag(int tagType, boolean longTag, byte[] contents)
          SWFTags interface
 void tagButtonCXForm(int buttonId, com.anotherbigidea.flash.structs.ColorTransform transform)
          SWFTagTypes interface
 void tagDefineBits(int id, byte[] imageData)
          JPEG image data only - header/encoding data is in tagJPEGTables tag
 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)
          JPEG image and encoding data with alpha channel bitmap
 void tagDefineBitsLossless(int id, int format, int width, int height, com.anotherbigidea.flash.structs.Color[] colors, byte[] imageData)
          SWFTagTypes interface
 void tagDefineBitsLossless2(int id, int format, int width, int height, com.anotherbigidea.flash.structs.Color[] colors, byte[] imageData)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFActions tagDefineButton(int id, java.util.Vector buttonRecords)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFActions tagDefineButton2(int id, boolean trackAsMenu, java.util.Vector buttonRecord2s)
          SWFTagTypes interface
 void tagDefineButtonSound(int buttonId, int rollOverSoundId, com.anotherbigidea.flash.structs.SoundInfo rollOverSoundInfo, int rollOutSoundId, com.anotherbigidea.flash.structs.SoundInfo rollOutSoundInfo, int pressSoundId, com.anotherbigidea.flash.structs.SoundInfo pressSoundInfo, int releaseSoundId, com.anotherbigidea.flash.structs.SoundInfo releaseSoundInfo)
          Define the sound for a button
 com.anotherbigidea.flash.interfaces.SWFVectors tagDefineFont(int id, int numGlyphs)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFVectors tagDefineFont2(int id, int flags, java.lang.String name, int numGlyphs, int ascent, int descent, int leading, int[] codes, int[] advances, com.anotherbigidea.flash.structs.Rect[] bounds, int[] kernCodes1, int[] kernCodes2, int[] kernAdjustments)
          SWFTagTypes interface
 void tagDefineFontInfo(int fontId, java.lang.String fontName, int flags, int[] codes)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFShape tagDefineMorphShape(int id, com.anotherbigidea.flash.structs.Rect startBounds, com.anotherbigidea.flash.structs.Rect endBounds)
          SWFTagTypes interface
 void tagDefineQuickTimeMovie(int id, java.lang.String filename)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFShape tagDefineShape(int id, com.anotherbigidea.flash.structs.Rect outline)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFShape tagDefineShape2(int id, com.anotherbigidea.flash.structs.Rect outline)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFShape tagDefineShape3(int id, com.anotherbigidea.flash.structs.Rect outline)
          SWFTagTypes interface
 void tagDefineSound(int id, int format, int frequency, boolean bits16, boolean stereo, int sampleCount, byte[] soundData)
           
 com.anotherbigidea.flash.interfaces.SWFTagTypes tagDefineSprite(int id)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFText tagDefineText(int id, com.anotherbigidea.flash.structs.Rect bounds, com.anotherbigidea.flash.structs.Matrix matrix)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFText tagDefineText2(int id, com.anotherbigidea.flash.structs.Rect bounds, com.anotherbigidea.flash.structs.Matrix matrix)
          SWFTagTypes interface
 void tagDefineTextField(int fieldId, java.lang.String fieldName, java.lang.String initialText, com.anotherbigidea.flash.structs.Rect boundary, int flags, com.anotherbigidea.flash.structs.AlphaColor textColor, int alignment, int fontId, int fontSize, int charLimit, int leftMargin, int rightMargin, int indentation, int lineSpacing)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.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)
          In Generator templates.
 void tagGeneratorCommand(byte[] data)
          In Generator templates.
 void tagGeneratorFont(byte[] data)
          In Generator templates.
 void tagGeneratorText(byte[] data)
          In Generator templates.
 void tagImport(java.lang.String movieName, java.lang.String[] names, int[] ids)
          SWFTagTypes interface
 void tagJPEGTables(byte[] jpegEncodingData)
          Only one tag per SWF - holds common JPEG encoding data
 void tagNameCharacter(byte[] data)
          In Generator templates.
 void tagPlaceObject(int charId, int depth, com.anotherbigidea.flash.structs.Matrix matrix, com.anotherbigidea.flash.structs.AlphaTransform cxform)
          SWFTagTypes interface
 com.anotherbigidea.flash.interfaces.SWFActions tagPlaceObject2(boolean isMove, int clipDepth, int depth, int charId, com.anotherbigidea.flash.structs.Matrix matrix, com.anotherbigidea.flash.structs.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)
          In files produced by Generator...
 void tagSetBackgroundColor(com.anotherbigidea.flash.structs.Color color)
          SWFTagTypes interface
 void tagShowFrame()
          SWFTagTypes interface
 void tagSoundStreamBlock(byte[] soundData)
           
 void tagSoundStreamHead(int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount)
          Only allows ADPCM encoding.
 void tagSoundStreamHead2(int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount)
          Allows any encoding.
 void tagStartSound(int soundId, com.anotherbigidea.flash.structs.SoundInfo info)
          Start/stop playing a sound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

movie

protected com.anotherbigidea.flash.movie.Movie movie

clip

protected com.anotherbigidea.flash.movie.MovieClip clip

newMovie

protected boolean newMovie

frame

protected com.anotherbigidea.flash.movie.Frame frame

symbols

protected java.util.Map symbols

timeline

protected com.anotherbigidea.flash.movie.TimeLine timeline

instances

protected java.util.Map instances

pendingsImages

public static java.util.Hashtable pendingsImages
Constructor Detail

FMovieBuilder

public FMovieBuilder()
Build a new Movie

FMovieBuilder

public FMovieBuilder(com.anotherbigidea.flash.movie.Movie movie)
Append to an existing movie (do not change size,rate,color,version etc)

FMovieBuilder

protected FMovieBuilder(FMovieBuilder parent,
                        com.anotherbigidea.flash.movie.MovieClip clip)
Build the timeline of a MovieClip
Method Detail

finishShapes

public void finishShapes()

getMovie

public com.anotherbigidea.flash.movie.Movie getMovie()

getDefinedSymbols

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

getSymbol

protected com.anotherbigidea.flash.movie.Symbol getSymbol(int id)

saveSymbol

protected void saveSymbol(int id,
                          com.anotherbigidea.flash.movie.Symbol s)

getInstance

protected com.anotherbigidea.flash.movie.Instance getInstance(int depth)

saveInstance

protected void saveInstance(int depth,
                            com.anotherbigidea.flash.movie.Instance inst)

tag

public void tag(int tagType,
                boolean longTag,
                byte[] contents)
         throws java.io.IOException
SWFTags interface
Specified by:
tag in interface com.anotherbigidea.flash.interfaces.SWFTags
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTags
Parameters:
tagType - a type of zero (TAG_END) denotes the end of the tags
longTag - true if the tag header is forced into the long form
contents - may be null

header

public void header(int version,
                   long length,
                   int twipsWidth,
                   int twipsHeight,
                   float frameRate,
                   int frameCount)
            throws java.io.IOException
SWFHeader interface.
Specified by:
header in interface com.anotherbigidea.flash.interfaces.SWFHeader
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFHeader
Parameters:
length - -1 if the length is unknown and must be inferred
frameCount - -1 if the framecount is unknown and must be inferred

tagEnd

public void tagEnd()
            throws java.io.IOException
SWFTagTypes interface
Specified by:
tagEnd in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes

tagShowFrame

public void tagShowFrame()
                  throws java.io.IOException
SWFTagTypes interface
Specified by:
tagShowFrame in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes

currentFrame

protected com.anotherbigidea.flash.movie.Frame currentFrame()

tagDefineSound

public void tagDefineSound(int id,
                           int format,
                           int frequency,
                           boolean bits16,
                           boolean stereo,
                           int sampleCount,
                           byte[] soundData)
                    throws java.io.IOException
Specified by:
tagDefineSound in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
format - one of the SWFConstants.SOUND_FORMAT_* constants
frequency - one of the SWFConstants.SOUND_FREQ_* constants
soundData - format-dependent sound data

tagDefineButtonSound

public void tagDefineButtonSound(int buttonId,
                                 int rollOverSoundId,
                                 com.anotherbigidea.flash.structs.SoundInfo rollOverSoundInfo,
                                 int rollOutSoundId,
                                 com.anotherbigidea.flash.structs.SoundInfo rollOutSoundInfo,
                                 int pressSoundId,
                                 com.anotherbigidea.flash.structs.SoundInfo pressSoundInfo,
                                 int releaseSoundId,
                                 com.anotherbigidea.flash.structs.SoundInfo releaseSoundInfo)
                          throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Define the sound for a button
Specified by:
tagDefineButtonSound in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagStartSound

public void tagStartSound(int soundId,
                          com.anotherbigidea.flash.structs.SoundInfo info)
                   throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Start/stop playing a sound
Specified by:
tagStartSound in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes

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 copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Only allows ADPCM encoding.
Specified by:
tagSoundStreamHead in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Parameters:
streamFormat - must be SWFConstants.SOUND_FORMAT_ADPCM
playbackFrequency - one of the SWFConstants.SOUND_FREQ_* constants
streamFrequency - one of the SWFConstants.SOUND_FREQ_* constants

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 copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Allows any encoding.
Specified by:
tagSoundStreamHead2 in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Parameters:
streamFormat - one of the SWFConstants.SOUND_FORMAT_* constants
playbackFrequency - one of the SWFConstants.SOUND_FREQ_* constants
streamFrequency - one of the SWFConstants.SOUND_FREQ_* constants

tagSoundStreamBlock

public void tagSoundStreamBlock(byte[] soundData)
                         throws java.io.IOException
Specified by:
tagSoundStreamBlock in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Parameters:
soundData - format-dependent sound data

tagSerialNumber

public void tagSerialNumber(java.lang.String serialNumber)
                     throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
In files produced by Generator...
Specified by:
tagSerialNumber in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagGenerator

public void tagGenerator(byte[] data)
                  throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
In Generator templates. Data is not parsed.
Specified by:
tagGenerator in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagGeneratorText

public void tagGeneratorText(byte[] data)
                      throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
In Generator templates. Data is not parsed.
Specified by:
tagGeneratorText in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagGeneratorCommand

public void tagGeneratorCommand(byte[] data)
                         throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
In Generator templates. Data is not parsed.
Specified by:
tagGeneratorCommand in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagGeneratorFont

public void tagGeneratorFont(byte[] data)
                      throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
In Generator templates. Data is not parsed.
Specified by:
tagGeneratorFont in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagNameCharacter

public void tagNameCharacter(byte[] data)
                      throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
In Generator templates. Data is not parsed.
Specified by:
tagNameCharacter in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagDefineBitsJPEG3

public void tagDefineBitsJPEG3(int id,
                               byte[] imageData,
                               byte[] alphaData)
                        throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
JPEG image and encoding data with alpha channel bitmap
Specified by:
tagDefineBitsJPEG3 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
alphaData - is zlib compressed

tagDoAction

public com.anotherbigidea.flash.interfaces.SWFActions tagDoAction()
                                                           throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDoAction in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Returns:
SWFActions to receive actions - or null to skip the data

tagDefineShape

public com.anotherbigidea.flash.interfaces.SWFShape tagDefineShape(int id,
                                                                   com.anotherbigidea.flash.structs.Rect outline)
                                                            throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineShape in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Returns:
SWFShape to receive shape info - or null to skip the data

tagDefineShape2

public com.anotherbigidea.flash.interfaces.SWFShape tagDefineShape2(int id,
                                                                    com.anotherbigidea.flash.structs.Rect outline)
                                                             throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineShape2 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Returns:
SWFShape to receive shape info - or null to skip the data

tagDefineShape3

public com.anotherbigidea.flash.interfaces.SWFShape tagDefineShape3(int id,
                                                                    com.anotherbigidea.flash.structs.Rect outline)
                                                             throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineShape3 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Returns:
SWFShape to receive shape info - or null to skip the data

tagFreeCharacter

public void tagFreeCharacter(int charId)
                      throws java.io.IOException
SWFTagTypes interface
Specified by:
tagFreeCharacter in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes

tagPlaceObject

public void tagPlaceObject(int charId,
                           int depth,
                           com.anotherbigidea.flash.structs.Matrix matrix,
                           com.anotherbigidea.flash.structs.AlphaTransform cxform)
                    throws java.io.IOException
SWFTagTypes interface
Specified by:
tagPlaceObject in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Parameters:
cxform - may be null

tagPlaceObject2

public com.anotherbigidea.flash.interfaces.SWFActions tagPlaceObject2(boolean isMove,
                                                                      int clipDepth,
                                                                      int depth,
                                                                      int charId,
                                                                      com.anotherbigidea.flash.structs.Matrix matrix,
                                                                      com.anotherbigidea.flash.structs.AlphaTransform cxform,
                                                                      int ratio,
                                                                      java.lang.String name,
                                                                      int clipActionFlags)
                                                               throws java.io.IOException
SWFTagTypes interface
Specified by:
tagPlaceObject2 in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes
Parameters:
clipDepth - < 1 if not relevant
charId - < 1 if not relevant
name - of sprite instance - null if not relevant
ratio - < 0 if not relevant
matrix - null if not relevant
cxform - null if not relevant
clipActionFlags - == 0 if there are no clip actions - otherwise this is the OR of the condition flags on all the clip action blocks
Returns:
null if there are no clip actions or they are irrelevant

tagRemoveObject

public void tagRemoveObject(int charId,
                            int depth)
                     throws java.io.IOException
SWFTagTypes interface
Specified by:
tagRemoveObject in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes

tagRemoveObject2

public void tagRemoveObject2(int depth)
                      throws java.io.IOException
SWFTagTypes interface
Specified by:
tagRemoveObject2 in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes

tagSetBackgroundColor

public void tagSetBackgroundColor(com.anotherbigidea.flash.structs.Color color)
                           throws java.io.IOException
SWFTagTypes interface
Specified by:
tagSetBackgroundColor in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagFrameLabel

public void tagFrameLabel(java.lang.String label)
                   throws java.io.IOException
SWFTagTypes interface
Specified by:
tagFrameLabel in interface com.anotherbigidea.flash.interfaces.SWFSpriteTagTypes

tagDefineSprite

public com.anotherbigidea.flash.interfaces.SWFTagTypes tagDefineSprite(int id)
                                                                throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineSprite in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagProtect

public void tagProtect(byte[] password)
                throws java.io.IOException
SWFTagTypes interface
Specified by:
tagProtect in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
password - may be null

tagEnableDebug

public void tagEnableDebug(byte[] password)
                    throws java.io.IOException
SWFTagTypes interface
Specified by:
tagEnableDebug in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagDefineFont

public com.anotherbigidea.flash.interfaces.SWFVectors tagDefineFont(int id,
                                                                    int numGlyphs)
                                                             throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineFont in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

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 com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
flags - see FONT_* constants in SWFConstants.java

tagDefineFont2

public com.anotherbigidea.flash.interfaces.SWFVectors tagDefineFont2(int id,
                                                                     int flags,
                                                                     java.lang.String name,
                                                                     int numGlyphs,
                                                                     int ascent,
                                                                     int descent,
                                                                     int leading,
                                                                     int[] codes,
                                                                     int[] advances,
                                                                     com.anotherbigidea.flash.structs.Rect[] bounds,
                                                                     int[] kernCodes1,
                                                                     int[] kernCodes2,
                                                                     int[] kernAdjustments)
                                                              throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineFont2 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagDefineTextField

public void tagDefineTextField(int fieldId,
                               java.lang.String fieldName,
                               java.lang.String initialText,
                               com.anotherbigidea.flash.structs.Rect boundary,
                               int flags,
                               com.anotherbigidea.flash.structs.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 com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
flags - see TEXTFIELD_* constants in SWFConstants.java

tagDefineText

public com.anotherbigidea.flash.interfaces.SWFText tagDefineText(int id,
                                                                 com.anotherbigidea.flash.structs.Rect bounds,
                                                                 com.anotherbigidea.flash.structs.Matrix matrix)
                                                          throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineText in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Returns:
SWFText object to receive the text style and glyph information - this may be null if the info is not required

tagDefineText2

public com.anotherbigidea.flash.interfaces.SWFText tagDefineText2(int id,
                                                                  com.anotherbigidea.flash.structs.Rect bounds,
                                                                  com.anotherbigidea.flash.structs.Matrix matrix)
                                                           throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineText2 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Returns:
SWFText object to receive the text style and glyph information - this may be null if the info is not required

tagDefineButton

public com.anotherbigidea.flash.interfaces.SWFActions tagDefineButton(int id,
                                                                      java.util.Vector buttonRecords)
                                                               throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineButton in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
buttonRecords - contains ButtonRecord objects
Returns:
SWFActions object (may be null) to receive button actions - there is only one action array (with no conditions).
See Also:
ButtonRecord

tagButtonCXForm

public void tagButtonCXForm(int buttonId,
                            com.anotherbigidea.flash.structs.ColorTransform transform)
                     throws java.io.IOException
SWFTagTypes interface
Specified by:
tagButtonCXForm in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagDefineButton2

public com.anotherbigidea.flash.interfaces.SWFActions tagDefineButton2(int id,
                                                                       boolean trackAsMenu,
                                                                       java.util.Vector buttonRecord2s)
                                                                throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineButton2 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
buttonRecord2s - contains ButtonRecord2 objects
Returns:
SWFActions object (may be null) to receive button actions - there may be multiple action arrays - each one is conditional, using the BUTTON2_* condition flags defined in SWFConstants.java
See Also:
ButtonRecord2

tagExport

public void tagExport(java.lang.String[] names,
                      int[] ids)
               throws java.io.IOException
SWFTagTypes interface
Specified by:
tagExport in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

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 com.anotherbigidea.flash.interfaces.SWFTagTypes

tagDefineQuickTimeMovie

public void tagDefineQuickTimeMovie(int id,
                                    java.lang.String filename)
                             throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineQuickTimeMovie in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagJPEGTables

public void tagJPEGTables(byte[] jpegEncodingData)
                   throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Only one tag per SWF - holds common JPEG encoding data
Specified by:
tagJPEGTables in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagDefineBits

public void tagDefineBits(int id,
                          byte[] imageData)
                   throws java.io.IOException
Description copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
JPEG image data only - header/encoding data is in tagJPEGTables tag
Specified by:
tagDefineBits in interface com.anotherbigidea.flash.interfaces.SWFTagTypes

tagDefineBitsJPEG2

public void tagDefineBitsJPEG2(int id,
                               byte[] data)
                        throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineBitsJPEG2 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
data - must contain the header data - use the InputStream version when using an external JPEG

tagDefineBitsJPEG2

public void tagDefineBitsJPEG2(int id,
                               java.io.InputStream jpegImage)
                        throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineBitsJPEG2 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
jpegImage - must be a baseline JPEG (not a progressive JPEG)

tagDefineBitsLossless

public void tagDefineBitsLossless(int id,
                                  int format,
                                  int width,
                                  int height,
                                  com.anotherbigidea.flash.structs.Color[] colors,
                                  byte[] imageData)
                           throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineBitsLossless in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
format - one of the SWFConstants.BITMAP_FORMAT_n_BIT constants

tagDefineBitsLossless2

public void tagDefineBitsLossless2(int id,
                                   int format,
                                   int width,
                                   int height,
                                   com.anotherbigidea.flash.structs.Color[] colors,
                                   byte[] imageData)
                            throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineBitsLossless2 in interface com.anotherbigidea.flash.interfaces.SWFTagTypes
Following copied from interface: com.anotherbigidea.flash.interfaces.SWFTagTypes
Parameters:
format - one of the SWFConstants.BITMAP_FORMAT_n_BIT constants

tagDefineMorphShape

public com.anotherbigidea.flash.interfaces.SWFShape tagDefineMorphShape(int id,
                                                                        com.anotherbigidea.flash.structs.Rect startBounds,
                                                                        com.anotherbigidea.flash.structs.Rect endBounds)
                                                                 throws java.io.IOException
SWFTagTypes interface
Specified by:
tagDefineMorphShape in interface com.anotherbigidea.flash.interfaces.SWFTagTypes