|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.FrameLabel
public final class FrameLabel
FrameLabel defines a name for the current frame in a movie or movie clip.
The name can be referenced from other objects such as GotoFrame2 to simplify the creation of scripts to control movies by using a predefined name rather than the frame number. The label assigned to a particular frame should be unique. A frame cannot be referenced within a movie before the Player has loaded and displayed the frame that contains the corresponding FrameLabel object.
If a frame is defined as an anchor it may also be referenced externally when specifying the movie to play using a URL - similar to the way names links are used in HTML. When the Flash Player loads a movie it will begin playing at the frame specified in the URL.
| Constructor Summary | |
|---|---|
FrameLabel(FrameLabel object)
Creates a FrameLabel object with a copy of the label and anchor from another FrameLabel object. |
|
FrameLabel(String aString)
Creates a FrameLabel object with the specified name. |
|
FrameLabel(String aString,
boolean isAnchor)
Creates a FrameLabel object with the specified name. |
|
FrameLabel(SWFDecoder coder)
Creates and initialises a FrameLabel object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
FrameLabel |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
String |
getLabel()
Get the label for the frame. |
boolean |
isAnchor()
Is the frame name is also used as an anchor so the frame can be referenced from outside of the movie. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setAnchor(boolean anchored)
Sets the flag indicating whether the frame name is also used as an anchor so the frame can be referenced from outside of the movie. |
void |
setLabel(String aString)
Sets the label. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FrameLabel(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.public FrameLabel(String aString)
aString - the string that defines the label that will be assigned to the
current frame. Must not be null or an empty string.
public FrameLabel(String aString,
boolean isAnchor)
aString - the string that defines the label that will be assigned to the
current frame. Must not be null or an empty string.isAnchor - if true the name will be used as an anchor when referencing
the frame in a URL.public FrameLabel(FrameLabel object)
object - a FrameLabel object to copy.| Method Detail |
|---|
public String getLabel()
public void setLabel(String aString)
aString - the string that defines the label that will be assigned to the
current frame. Must not be null or an empty string.public boolean isAnchor()
public void setAnchor(boolean anchored)
anchored - true if the frame is an anchor frame, false otherwise.public FrameLabel 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 | |||||||||