|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSTransformObject
com.flagstone.transform.FSActionObject
com.flagstone.transform.FSJump
public class FSJump
The FSJump action performs an unconditional branch to control the actions executed by the Flash Player.
When executed the FSJump action adds an offset to the instruction pointer and execution of the stream of actions continues from that address.
Although the Flash Player contains an instruction pointer it does not support an explicit address space. The instruction pointer is used to reference actions within the current stream of actions being executed whether they are associated with a given frame, button or movie clip. The value contained in the instruction pointer is the address relative to the start of the current stream.
Attributes | |
---|---|
type | Identifies the action when it is encoded. Read-only. |
offset | The offset, relative to the current instruction pointer, to jump to. |
The offset is a signed number allowing branches up to -32768 to 32767 bytes. The instruction pointer points to the next instruction so specifying an offset of zero will have no effect on the sequence of instructions executed.
FSDoAction actions = new FSDoAction(); actions.add(new FSJump(32));
The FSJump class represents the ActionJump action of the Macromedia Flash (SWF) File Format Specification. It was introduced in Flash 4.
Field Summary |
---|
Fields inherited from class com.flagstone.transform.FSActionObject |
---|
Call, ExceptionHandler, GetUrl, GetUrl2, GotoFrame, GotoFrame2, GotoLabel, If, Jump, length, NewFunction, NewFunction2, Push, RegisterCopy, SetTarget, Table, type, WaitForFrame, WaitForFrame2, With |
Constructor Summary | |
---|---|
FSJump(FSCoder coder)
Construct an FSJump object, initialising it with values decoded from an encoded object. |
|
FSJump(FSJump obj)
Constructs an FSJump object by copying values from an existing object. |
|
FSJump(int anOffset)
Constructs an FSJump action with the specified offset. |
Method Summary | |
---|---|
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
AppendDescription is used to present a string description of the object including all nested objects up to a specified depth. |
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
int |
getOffset()
Gets the offset that will be added to the instruction pointer. |
int |
length(FSCoder coder)
|
void |
setOffset(int anOffset)
Sets the offset to add to the instruction pointer. |
Methods inherited from class com.flagstone.transform.FSActionObject |
---|
getType, length |
Methods inherited from class com.flagstone.transform.FSTransformObject |
---|
clone, name, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSJump(FSCoder coder)
coder
- an FSCoder containing the binary data.public FSJump(int anOffset)
anOffset
- the number of bytes to add to the instruction pointer.public FSJump(FSJump obj)
obj
- an FSJump object.Method Detail |
---|
public int getOffset()
public void setOffset(int anOffset)
anOffset
- the number of bytes to add to the instruction pointer.public boolean equals(java.lang.Object anObject)
FSActionObject
equals
in class FSActionObject
public void appendDescription(java.lang.StringBuffer buffer, int depth)
FSTransformObject
appendDescription
in class FSTransformObject
buffer
- a StringBuffer to which the description of each object is
appended.depth
- the maximum level of nesting up to which objects will be
displayed.public int length(FSCoder coder)
length
in class FSActionObject
public void encode(FSCoder coder)
encode
in class FSActionObject
public void decode(FSCoder coder)
decode
in class FSActionObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |