|
|||||||||
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
com.flagstone.transform.FSCall
public class FSCall
FSCall is used to execute the actions previously assigned to a given frame with an FSDoAction object.
Attributes | |
---|---|
type | Identifies the action when it is encoded. Read-only. |
FSCall is a stack-based action, the value for the frame name or frame number is retrieved from the top of the stack when it is executed.
The following code fragment show how to execute the actions associated with a given frame number from a Flash movie:
actions.add(new FSPush(12)); actions.add(new FSCall());
Alternatively if the frame has been assigned a name using an FSFrameLabel object then the associated actions may be executed by using the name as a reference:
movie.add(new FSFrameLabel("FirstFrame")); ... actions.add(new FSPush("FirstFrame")); actions.add(new FSCall());
The FSCall class represents the ActionCall action of the Macromedia Flash (SWF) File Format Specification. It was introduced in Flash 4.
Field Summary |
---|
Fields inherited from class com.flagstone.transform.FSActionObject |
---|
Call, ExceptionHandler, GetUrl, GetUrl2, GotoFrame, GotoFrame2, GotoLabel, If, Jump, length, NewFunction, NewFunction2, Push, RegisterCopy, SetTarget, Table, type, WaitForFrame, WaitForFrame2, With |
Constructor Summary | |
---|---|
FSCall()
Constructs an FSCall object. |
|
FSCall(FSCall obj)
Constructs an FSCall object by copying values from an existing object. |
|
FSCall(FSCoder coder)
Construct an FSCall object, initialising it with values decoded from an encoded object. |
Method Summary | |
---|---|
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
AppendDescription is used to present a string description of the object including all nested objects up to a specified depth. |
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
static FSCall |
getInstance()
Returns a canonical FSCall object. |
int |
length(FSCoder coder)
|
Methods inherited from class com.flagstone.transform.FSActionObject |
---|
equals, getType, length |
Methods inherited from class com.flagstone.transform.FSTransformObject |
---|
clone, name, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSCall(FSCoder coder)
coder
- an FSCoder containing the binary data.public FSCall()
public FSCall(FSCall obj)
obj
- an FSCall object.Method Detail |
---|
public static FSCall getInstance()
public void appendDescription(java.lang.StringBuffer buffer, int depth)
FSTransformObject
appendDescription
in class FSTransformObject
buffer
- a StringBuffer to which the description of each object is
appended.depth
- the maximum level of nesting up to which objects will be
displayed.public int length(FSCoder coder)
length
in class FSActionObject
public void encode(FSCoder coder)
encode
in class FSActionObject
public void decode(FSCoder coder)
decode
in class FSActionObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |