|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.movieclip.DefineMovieClip
public final class DefineMovieClip
DefineMovieClip defines a movie clip that animates shapes within a movie. It contains an list of movie objects that define the placement of shapes, buttons, text and images and the order in which they are displayed through a time-line that is separate from the parent movie.
Although a movie clip contains the commands that instructs the Flash Player on how to animate the clip it cannot contain any new definitions of objects. All definitions must be in the main movie. All objects referred to by the movie clip must be also defined in the main movie before they can be used.
When using the DefineMovieClip object can only contain objects from the following classes: ShowFrame, Place, Place2, Place3, Remove, Remove2 DoAction, StartSound, StartSound2, FrameLabel, SoundStreamHead, SoundStreamHead2 or SoundStreamBlock. Other objects are not allowed.
| Constructor Summary | |
|---|---|
DefineMovieClip(DefineMovieClip object)
Creates and initialises a DefineMovieClip object using the values copied from another DefineMovieClip object. |
|
DefineMovieClip(int uid,
List<MovieTag> list)
Creates a DefineMovieClip object with the unique identifier and list of movie objects. |
|
DefineMovieClip(SWFDecoder coder,
Context context)
Creates and initialises a DefineMovieClip object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
DefineMovieClip |
add(MovieTag obj)
Adds the movie object to the list of objects that update the display list. |
DefineMovieClip |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
int |
getIdentifier()
Get the unique identifier assigned to this object. |
List<MovieTag> |
getObjects()
Get the list of movie objects that describe how the movie clip is animated. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setIdentifier(int uid)
Sets the unique identifier for an object within a given Movie. |
void |
setObjects(List<MovieTag> list)
Sets the list of movie objects. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefineMovieClip(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 DefineMovieClip(int uid,
List<MovieTag> list)
uid - a unique identifier for the movie clip. Must be in the range
1..65535,list - the list of movie objects. Must not be null.public DefineMovieClip(DefineMovieClip object)
object - a DefineMovieClip object from which the values will be
copied.| Method Detail |
|---|
public int getIdentifier()
getIdentifier in interface DefineTagpublic void setIdentifier(int uid)
setIdentifier in interface DefineTaguid - a unique identifier for the object. Must be in the range
1..65535.public DefineMovieClip add(MovieTag obj)
obj - a Movie object. Must not be null
public List<MovieTag> getObjects()
public void setObjects(List<MovieTag> list)
list - the list of movie objects. Must not be null.public DefineMovieClip 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 | |||||||||