|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.action.WaitForFrame
public final class WaitForFrame
The WaitForFrame action instructs the player to wait until the specified frame number has been loaded.
If the frame has been loaded then the actions in the following n actions are executed. This action is most often used to execute a short animation loop that plays until the main part of a movie has been loaded.
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 the preferred mechanism.
Push,
If| Constructor Summary | |
|---|---|
WaitForFrame(int frame,
int count)
Creates a WaitForFrame object with the specified frame number and the number of actions that will be executed when the frame is loaded. |
|
WaitForFrame(SWFDecoder coder)
Creates and initialises a WaitForFrame action using values encoded in the Flash binary format. |
|
WaitForFrame(WaitForFrame object)
Creates and initialises a WaitForFrame action using the values copied from another WaitForFrame action. |
|
| Method Summary | |
|---|---|
WaitForFrame |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
int |
getActionCount()
Get the number of actions that will be executed when the specified frame is loaded. |
int |
getFrameNumber()
Get the frame number to test to see if has been loaded. |
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 WaitForFrame(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.
public WaitForFrame(int frame,
int count)
frame - the number of the frame to wait for. Must be in the range
1..65535.count - the number (not bytes) of actions to execute. Must be in the
range 0..255.public WaitForFrame(WaitForFrame object)
object - a WaitForFrame action from which the values will be
copied.| Method Detail |
|---|
public int getFrameNumber()
public int getActionCount()
public WaitForFrame 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 | |||||||||