|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.tumba.parser.swf.Frame
public class Frame
A Movie or Movie Clip frame
| Field Summary | |
|---|---|
protected Actions |
actions
Description of the Field |
protected int |
frameNumber
Description of the Field |
protected java.lang.String |
label
Description of the Field |
protected java.util.List |
placements
Description of the Field |
protected boolean |
stop
Description of the Field |
protected TimeLine |
timeline
Description of the Field |
| Constructor Summary | |
|---|---|
protected |
Frame(int number,
TimeLine timeline)
Constructor for the Frame object |
| Method Summary | |
|---|---|
Actions |
actions(int flashVersion)
Reset the frame actions (if any) and return the new empty Actions object |
void |
alter(Instance instance,
int x,
int y)
Alter the symbol instance by moving it to the new coordinates. |
void |
alter(Instance instance,
Transform matrix,
AlphaTransform cxform)
Alter the symbol instance by applying the given transform and/or color transform. |
void |
alter(Instance instance,
Transform matrix,
AlphaTransform cxform,
int ratio)
Alter the symbol instance by applying the given properties. |
protected void |
flushDefinitions(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
Description of the Method |
Actions |
getActions()
Get the frame actions |
int |
getFrameNumber()
Get the frame number |
java.lang.String |
getLabel()
Get the frame label |
Placement[] |
getPlacements()
Get the placements in this frame |
Instance |
placeMovieClip(Symbol symbol,
Transform matrix2,
AlphaTransform cxform,
java.lang.String name,
Actions[] clipActions)
Place a Movie Clip at the next available depth with the given properties. |
Instance |
placeSymbol(Symbol symbol,
int x,
int y)
Place a symbol at the given coordinates at the next available depth. |
Instance |
placeSymbol(Symbol symbol,
Transform matrix,
AlphaTransform cxform)
Place a symbol at the next available depth with the given matrix transform and color transform. |
Instance |
placeSymbol(Symbol symbol,
Transform matrix2,
AlphaTransform cxform,
int ratio,
int clipDepth)
Place a symbol at the next available depth with the given properties. |
void |
remove(Instance instance)
Remove the symbol instance from the stage |
Instance |
replaceMovieClip(Symbol symbol,
int depth,
Transform matrix2,
AlphaTransform cxform,
java.lang.String name,
Actions[] clipActions)
Replace the Symbol at the given depth with the new MovieClip |
Instance |
replaceSymbol(Symbol symbol,
int depth,
Transform matrix2,
AlphaTransform cxform,
int ratio,
int clipDepth)
Replace the symbol at the given depth with the new symbol |
void |
setActions(Actions actions)
Set the frame actions (or null them out) |
void |
setLabel(java.lang.String label)
Set the frame label - set to null to clear any label |
void |
stop()
Set the stop flag - if true then the movie will stop at this frame. |
protected void |
write(Movie movie,
SWFTagTypes movieTagWriter,
SWFTagTypes timelineTagWriter)
Write the frame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int frameNumber
protected java.lang.String label
protected java.util.List placements
protected boolean stop
protected TimeLine timeline
protected Actions actions
| Constructor Detail |
|---|
protected Frame(int number,
TimeLine timeline)
number - Description of the Parametertimeline - Description of the Parameter| Method Detail |
|---|
public Actions getActions()
public void setActions(Actions actions)
actions - The new actions valuepublic Actions actions(int flashVersion)
flashVersion - Description of the Parameter
public int getFrameNumber()
public Placement[] getPlacements()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - The new label valuepublic void stop()
public Instance placeSymbol(Symbol symbol,
int x,
int y)
symbol - Description of the Parameterx - Description of the Parametery - Description of the Parameter
public Instance placeSymbol(Symbol symbol,
Transform matrix,
AlphaTransform cxform)
matrix - may be null to place the symbol at (0,0)cxform - may be null if no color transform is requiredsymbol - Description of the Parameter
public Instance placeSymbol(Symbol symbol,
Transform matrix2,
AlphaTransform cxform,
int ratio,
int clipDepth)
matrix - may be null to place the symbol at (0,0)cxform - may be null if no color transform is requiredratio - only for a MorphShape - the morph ratio from 0 to
65535, should be -1 for a non-MorphShapeclipDepth - the top depth that will be clipped by the symbol,
should be -1 if this is not a clipping symbolsymbol - Description of the Parameter
public Instance replaceSymbol(Symbol symbol,
int depth,
Transform matrix2,
AlphaTransform cxform,
int ratio,
int clipDepth)
matrix - may be null to place the symbol at (0,0)cxform - may be null if no color transform is requiredratio - only for a MorphShape - the morph ratio from 0 to
65535, should be -1 for a non-MorphShapeclipDepth - the top depth that will be clipped by the symbol,
should be -1 if this is not a clipping symbolsymbol - Description of the Parameterdepth - Description of the Parameter
public Instance placeMovieClip(Symbol symbol,
Transform matrix2,
AlphaTransform cxform,
java.lang.String name,
Actions[] clipActions)
matrix - may be null to place the symbol at (0,0)cxform - may be null if no color transform is requiredname - the instance name of a MovieClip - should be null if
this is not a MovieClipsymbol - Description of the ParameterclipActions - Description of the Parameter
public Instance replaceMovieClip(Symbol symbol,
int depth,
Transform matrix2,
AlphaTransform cxform,
java.lang.String name,
Actions[] clipActions)
matrix - may be null to place the symbol at (0,0)cxform - may be null if no color transform is requiredname - the instance name of a MovieClip - should be null if
this is not a MovieClipsymbol - Description of the Parameterdepth - Description of the ParameterclipActions - Description of the Parameter
public void remove(Instance instance)
instance - Description of the Parameter
public void alter(Instance instance,
int x,
int y)
instance - Description of the Parameterx - Description of the Parametery - Description of the Parameter
public void alter(Instance instance,
Transform matrix,
AlphaTransform cxform)
matrix - may be null if no positional change is to be made.cxform - may be null if no color change is required.instance - Description of the Parameter
public void alter(Instance instance,
Transform matrix,
AlphaTransform cxform,
int ratio)
matrix - may be null if no positional change is to be made.cxform - may be null if no color change is required.ratio - only for a MorphShape - the morph ratio from 0 to 65535,
should be -1 for a non-MorphShapeinstance - Description of the Parameter
protected void flushDefinitions(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
throws java.io.IOException
movie - Description of the ParametertimelineWriter - Description of the ParameterdefinitionWriter - Description of the Parameter
java.io.IOException - Description of the Exception
protected void write(Movie movie,
SWFTagTypes movieTagWriter,
SWFTagTypes timelineTagWriter)
throws java.io.IOException
movie - Description of the ParametermovieTagWriter - Description of the ParametertimelineTagWriter - Description of the Parameter
java.io.IOException - Description of the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||