|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSTransformObject
com.flagstone.transform.FSActionObject
public abstract class FSActionObject
The FSActionObject is a base class for the classes that represent the different types of actions defined in the Flash file format specification. The function of the class is the same as the FSMovieObject class however the format of the encoded binary data is different. This class is primarily used internally in the library however the getType() method is useful when manipulating decoded Flash files. Rather than use run-time type inspection provided by the programming environment the method can be used to identify the action that a given object represents. The getType() method is essential when examining FSAction objects which represent a large number byte-codes which perform stack-based operations such as add, subtract, etc.
Field Summary | |
---|---|
static int |
Call
Type identifying a Call action. |
static int |
ExceptionHandler
Type identifying a ExceptionHandler action. |
static int |
GetUrl
Type identifying a GetUrl action. |
static int |
GetUrl2
Type identifying a GetUrl2 action. |
static int |
GotoFrame
Type identifying a GotoFrame action. |
static int |
GotoFrame2
Type identifying a GotoFrame2 action. |
static int |
GotoLabel
Type identifying a GotoLabel action. |
static int |
If
Type identifying an If action. |
static int |
Jump
Type identifying a Jump action. |
protected int |
length
|
static int |
NewFunction
Type identifying a NewFunction action. |
static int |
NewFunction2
Type identifying a NewFunction2 action. |
static int |
Push
Type identifying a Push action. |
static int |
RegisterCopy
Type identifying a RegisterCopy action. |
static int |
SetTarget
Type identifying a SetTarget action. |
static int |
Table
Type identifying a Table action. |
protected int |
type
|
static int |
WaitForFrame
Type identifying a WaitForFrame action. |
static int |
WaitForFrame2
Type identifying a WaitForFrame2 action. |
static int |
With
Type identifying a With action. |
Constructor Summary | |
---|---|
protected |
FSActionObject(FSActionObject obj)
|
protected |
FSActionObject(int aType)
|
Method Summary | |
---|---|
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
int |
getType()
Gets the code used that identifies the type of the action when it is encoded. |
int |
length()
Length is used to calculate the then of the action when it is encoded to the binary Flash file format. |
int |
length(FSCoder coder)
|
Methods inherited from class com.flagstone.transform.FSTransformObject |
---|
appendDescription, clone, name, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GotoFrame
public static final int GetUrl
public static final int WaitForFrame
public static final int SetTarget
public static final int GotoLabel
public static final int WaitForFrame2
public static final int Push
public static final int Jump
public static final int GetUrl2
public static final int If
public static final int Call
public static final int GotoFrame2
public static final int RegisterCopy
public static final int Table
public static final int With
public static final int NewFunction
public static final int NewFunction2
public static final int ExceptionHandler
protected int type
protected int length
Constructor Detail |
---|
protected FSActionObject(int aType)
protected FSActionObject(FSActionObject obj)
Method Detail |
---|
public int getType()
public int length()
public boolean equals(java.lang.Object anObject)
equals
in class FSTransformObject
public int length(FSCoder coder)
length
in class FSTransformObject
public void encode(FSCoder coder)
encode
in class FSTransformObject
public void decode(FSCoder coder)
decode
in class FSTransformObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |