|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.action.WaitForFrame2
public final class WaitForFrame2
The WaitForFrame2 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 WaitForFrame2 action extends the WaitForFrame action by allowing the name of a frame to be specified.
WaitForFrame2 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. Note however that 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 If action is now preferred.
Push,
If| Constructor Summary | |
|---|---|
WaitForFrame2(int count)
Creates a WaitForFrame2 object with the number of actions to execute if the frame has been loaded. |
|
WaitForFrame2(SWFDecoder coder)
Creates and initialises a WaitForFrame2 action using values encoded in the Flash binary format. |
|
WaitForFrame2(WaitForFrame2 object)
Creates and initialises a WaitForFrame2 action using the values copied from another WaitForFrame2 action. |
|
| Method Summary | |
|---|---|
WaitForFrame2 |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
int |
getActionCount()
Returns the number of actions to execute. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WaitForFrame2(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.public WaitForFrame2(int count)
count - the number of actions to execute. Must be in the range 0..255.public WaitForFrame2(WaitForFrame2 object)
object - a WaitForFrame2 action from which the values will be
copied.| Method Detail |
|---|
public int getActionCount()
public WaitForFrame2 copy()
copy in interface Copyable<Action>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||