|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.movieclip.InitializeMovieClip
public final class InitializeMovieClip
Initialize is used to specify a sequence of actions that are executed to initialise a movie clip before it is displayed.
Initialize implements the #initclip pragma defined in the ActionScript language.
Unlike the DoAction class which specifies the actions that are executed when a particular frame is displayed the actions contained in an Initialize object are executed only once, regardless of where the object is included in a movie. If a frame containing the Initialize object is played again the actions are skipped. Also there can only be one Initialize object for each movie clip defined in the movie.
| Constructor Summary | |
|---|---|
InitializeMovieClip(InitializeMovieClip object)
Creates and initialises an InitializeMovieClip object using the values copied from another InitializeMovieClip object. |
|
InitializeMovieClip(int uid,
List<Action> list)
Creates a Initialize object that will initialise the movie clip with the specified identifier with the actions in the list. |
|
InitializeMovieClip(SWFDecoder coder,
Context context)
Creates and initialises an InitializeMovieClip object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
InitializeMovieClip |
add(Action anAction)
Adds the action object to the list of actions. |
InitializeMovieClip |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
List<Action> |
getActions()
Get the list of actions that are used to initialise the movie clip. |
int |
getIdentifier()
Get the identifier of the movie clip that will be initialised. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setActions(List<Action> list)
Set the list of actions of the movie clip that will be initialised. |
void |
setIdentifier(int uid)
Sets the identifier of the movie clip that will be initialised. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InitializeMovieClip(SWFDecoder coder,
Context context)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.context - a Context object used to manage the decoders for different
type of object and to pass information on how objects are
decoded.
IOException - if an error occurs while decoding the data.
public InitializeMovieClip(int uid,
List<Action> list)
uid - the identifier of the movie clip to initialise. Must be in the
range 1..65535.list - the list of action objects. Must not be null.public InitializeMovieClip(InitializeMovieClip object)
object - an InitializeMovieClip object from which the values will be
copied.| Method Detail |
|---|
public int getIdentifier()
public void setIdentifier(int uid)
uid - the identifier of the movie clip. The value must be in the
range 1..65535.public InitializeMovieClip add(Action anAction)
anAction - an object belonging to a class derived from Action. Must not
be null.
public List<Action> getActions()
public void setActions(List<Action> list)
list - the list of action objects. Must not be null.public InitializeMovieClip copy()
copy in interface Copyable<MovieTag>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 | |||||||||