|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.action.GotoFrame
public final class GotoFrame
The GotoFrame action instructs the player to move to the specified frame number in the current movie's main time-line.
GotoFrame is only used to control the main time-line of a movie. Controlling how an individual movie clip is played is handled by a different mechanism. From Flash 5 onward movie clips are defined as objects and the ExecuteMethod action is used to execute the gotoAndPlay() or gotoAndStop() which start and stop playing a movie clip.
GotoFrame2| Constructor Summary | |
|---|---|
GotoFrame(GotoFrame object)
Creates and initialises a GotoFrame action using the values copied from another GotoFrame action. |
|
GotoFrame(int number)
Creates a GotoFrame with the specified frame number. |
|
GotoFrame(SWFDecoder coder)
Creates and initialises an GotoFrame action using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
GotoFrame |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
int |
getFrameNumber()
Returns the number of the frame to move the main time-line to. |
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 GotoFrame(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.public GotoFrame(int number)
number - the number of the frame. Must be in the range 0..65535.public GotoFrame(GotoFrame object)
object - a GotoFrame action from which the values will be
copied.| Method Detail |
|---|
public int getFrameNumber()
public GotoFrame 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 | |||||||||