|
|||||||||
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.FSWith
public class FSWith
FSWith is a stack-based action and supports the with statement from the ActionScript language.
with(_root.movieClip) { gotoAndPlay("frame"); }
Attributes | |
---|---|
type | A code identifying the action when it is encoded. Read-only. |
actions | An array of actions that will be executed for the specified movie clip. |
The FSWith action temporarily selects the movie clip allowing the following stream of actions to control the movie clip's time-line.
The ActionScript shown above is represented (compiled) into the following actions:
clipActions.add(new FSPush("frame")); clipActions.add(new FSPush(1)); clipActions.add(new FSPush("gotoAndPlay")); clipActions.add(FSAction.ExecuteFunction()); // Get the movie clip actions.add(new FSPush("_root")); actions.add(FSAction.GetVariable()); actions.add(new FSPush("movieClip")); actions.add(FSAction.GetAttribute()); actions.add(new FSWith(clipActions));
The FSWith class represents the ActionWith action in the Macromedia Flash (SWF) File Format Specification. It was introduced in Flash 5. FSWith supersedes the FSSetTarget action.
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 | |
---|---|
FSWith(java.util.ArrayList anArray)
Constructs an FSWith object with an array of actions. |
|
FSWith(FSCoder coder)
Construct an FSWith object, initialising it with values decoded from an encoded object. |
|
FSWith(FSWith obj)
Constructs an FSWith object by copying values from an existing object. |
Method Summary | |
---|---|
void |
add(FSActionObject anAction)
Adds the action object to the array of actions. |
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. |
java.lang.Object |
clone()
Creates a deep copy of the entire object. |
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
java.util.ArrayList |
getActions()
Get the array of actions that are executed for the movie clip target. |
int |
length(FSCoder coder)
|
void |
setActions(java.util.ArrayList anArray)
Set the array of actions that will be executed for the movie clip target. |
Methods inherited from class com.flagstone.transform.FSActionObject |
---|
getType, length |
Methods inherited from class com.flagstone.transform.FSTransformObject |
---|
name, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSWith(FSCoder coder)
coder
- an FSCoder containing the binary data.public FSWith(java.util.ArrayList anArray)
anArray
- the array of action objects.public FSWith(FSWith obj)
obj
- an FSGotoFrame object.Method Detail |
---|
public void add(FSActionObject anAction)
anAction
- an object belonging to a class derived from FSActionObject.public java.util.ArrayList getActions()
public void setActions(java.util.ArrayList anArray)
anArray
- the array of action objects.public java.lang.Object clone()
FSTransformObject
clone
in class FSTransformObject
public boolean equals(java.lang.Object anObject)
FSActionObject
equals
in class FSActionObject
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 |