|
|||||||||
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.FSWaitForFrame2
public class FSWaitForFrame2
The FSWaitForFrame2 action instructs the player to wait until the specified frame number or named frame has been loaded.
If the frame has been loaded then the following n actions are executed. The FSWaitForFrame2 action extends the FSWaitForFrame action by allowing the name of a frame to be specified.
Attributes | |
---|---|
type | Identifies the data structure when it is encoded. Read-only. |
actionCount | The number of actions following that will be executed when the frame of interest has been loaded. |
FSWaitForFrame2 is a stack-based action. The frame number or frame name which should be loaded to trigger execution of the following actions is popped from the Flash Player's stack.
actions.add(new FSPush("frame")); actions.add(new FSWaitForFrame2(1)); actions.add(new FSGotoFrame2("frame"));
This method of waiting until a frame has been loaded is considered obsolete. Determining the number of frames loaded using the FramesLoaded property of the Flash player in combination with an FSIf action is now the preferred mechanism:
FSDoAction actions = new FSDoAction(); actions.add(new FSPush("_root")); actions.add(FSAction.GetVariable()); actions.add(new FSPush(FSPush.FramesLoaded)); actions.add(FSAction.GetProperty()); actions.add(new FSPush(8)); actions.add(FSAction.Less()); actions.add(new FSIf(-29)); actions.add(new FSGotoFrame(8));
The FSWaitForFrame2 class represents the ActionWaitForFrame2 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 | |
---|---|
FSWaitForFrame2(FSCoder coder)
Construct an FSWaitForFrame2 object, initialising it with values decoded from an encoded object. |
|
FSWaitForFrame2(FSWaitForFrame2 obj)
Constructs an FSWaitForFrame2 object by copying values from an existing object. |
|
FSWaitForFrame2(int aNumber)
Constructs an FSWaitForFrame2 object with the number of actions to execute if the frame has been loaded. |
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)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
int |
getActionCount()
Gets the number of actions to execute. |
int |
length(FSCoder coder)
|
void |
setActionCount(int aNumber)
Sets the number of actions to execute. |
Methods inherited from class com.flagstone.transform.FSActionObject |
---|
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 FSWaitForFrame2(FSCoder coder)
coder
- an FSCoder containing the binary data.public FSWaitForFrame2(int aNumber)
aNumber
- the number of actions to execute.public FSWaitForFrame2(FSWaitForFrame2 obj)
obj
- an FSWaitForFrame2 object.Method Detail |
---|
public int getActionCount()
public void setActionCount(int aNumber)
aNumber
- the number of actions to execute.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 |