|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.Remove
public final class Remove
RemoveObject removes an object from the Flash Player's Display List.
An object placed on the display list is displayed in every frame of a movie until it is explicitly removed. Objects must also be removed if its location or appearance is changed using PlaceObject.
Although only one object can be placed on any layer in the display list both the object's unique identifier and the layer number must be specified. The RemoveObject class is superseded in Flash 3 by the RemoveObject2 class which lifts this requirement allowing an object to be referenced by the layer number it occupies in the display list.
Remove2
,
Place
,
Place2
Constructor Summary | |
---|---|
Remove(int uid,
int level)
Creates a RemoveObject object that will remove an object with the specified identifier from the given layer in the display list. |
|
Remove(Remove object)
Creates and initialises a Remove object using the values copied from another Remove object. |
|
Remove(SWFDecoder coder)
Creates and initialises a Remove object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
Remove |
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 identifier of the object to be removed from the display list. |
int |
getLayer()
Get the layer in the display list where the object will be displayed. |
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 identifier of the object to be removed. |
void |
setLayer(int aLayer)
Sets the layer in the display list where the object will be displayed. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Remove(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public Remove(int uid, int level)
uid
- the unique identifier for the object currently on the display
list. Must be in the range 1.65535.level
- the layer in the display list where the object is being
displayed. Must be in the range 1.65535.public Remove(Remove object)
object
- a Remove object from which the values will be
copied.Method Detail |
---|
public int getIdentifier()
public void setIdentifier(int uid)
uid
- the unique identifier for the object currently on the display
list. Must be in the range 1.65535.public int getLayer()
public void setLayer(int aLayer)
aLayer
- the layer in the display list where the object is being
displayed. Must be in the range 1.65535.public Remove copy()
copy
in interface Copyable<MovieTag>
public String toString()
toString
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- 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 SWFEncodeable
coder
- 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 |