|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.action.ActionObject
public final class ActionObject
ActionObject is a general-purpose class that can be used to represent any action. It allow actions not supported in the current version of Transform to be decoded and encoded from movies until direct support is provided in the framework.
Constructor Summary | |
---|---|
ActionObject(ActionObject object)
Creates an ActionObject by copying an existing one. |
|
ActionObject(int actionType)
Creates an ActionObject specifying only the type. |
|
ActionObject(int actionType,
byte[] bytes)
Creates an ActionObject specifying the type and the data that represents the body of the action encoded in the Flash binary format. |
|
ActionObject(int actionType,
SWFDecoder coder)
Creates and initialises an ActionObject using values encoded in the Flash binary format. |
Method Summary | |
---|---|
ActionObject |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
byte[] |
getData()
Returns the encoded data for the action. |
int |
getType()
Returns the type that identifies the type of action when it is encoded in the Flash binary format. |
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 ActionObject(int actionType, SWFDecoder coder) throws IOException
actionType
- the value that identifies the action when it is
encoded.coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public ActionObject(int actionType)
actionType
- the value identifying the action when it is encoded.public ActionObject(int actionType, byte[] bytes)
actionType
- the value identifying the action when it is encoded.bytes
- the body of the action when it is encoded in the Flash format.public ActionObject(ActionObject object)
object
- an ActionObject.Method Detail |
---|
public int getType()
public byte[] getData()
public ActionObject copy()
copy
in interface Copyable<Action>
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 |