java.lang.Object
com.anotherbigidea.flash.writers.ActionTextWriter
- All Implemented Interfaces:
- com.anotherbigidea.flash.SWFActionCodes, com.anotherbigidea.flash.interfaces.SWFActions
- public class ActionTextWriter
- extends java.lang.Object
- implements com.anotherbigidea.flash.interfaces.SWFActions, com.anotherbigidea.flash.SWFActionCodes
A writer that implements the SWFActions interface and writes
actions to a text format
| Fields inherited from interface com.anotherbigidea.flash.SWFActionCodes |
ADD, AND, ASCII_TO_CHAR, BIT_AND, BIT_OR, BIT_XOR, CALL, CALL_FUNCTION, CALL_METHOD, CALL_NEW_METHOD, CHAR_TO_ASCII, CLONE_SPRITE, CONVERT_TO_NUMBER, CONVERT_TO_STRING, DECREMENT, DEFINE_FUNCTION, DEFINE_LOCAL, DEFINE_LOCAL_VAL, DEL_THREAD_VARS, DEL_VAR, DIVIDE, DUPLICATE, END_DRAG, ENUMERATE, ENUMERATE_OBJECT, EQUALS, GET_MEMBER, GET_PROPERTY, GET_TARGET_PATH, GET_TIME, GET_URL, GET_URL_2, GET_VARIABLE, GOTO_FRAME, GOTO_FRAME_2, GOTO_LABEL, GREATER, IF, INCREMENT, INIT_ARRAY, INIT_OBJECT, INSTANCE_OF, JUMP, LESS, LOOKUP_TABLE, MB_ASCII_TO_CHAR, MB_CHAR_TO_ASCII, MB_STRING_EXTRACT, MB_STRING_LENGTH, MODULO, MULTIPLY, NEW_OBJECT, NEXT_FRAME, NOT, OR, PLAY, POP, PREVIOUS_FRAME, PROP_ALPHA, PROP_CURRENTFRAME, PROP_DROPTARGET, PROP_FOCUSRECT, PROP_FRAMESLOADED, PROP_HEIGHT, PROP_HIGHQUALITY, PROP_NAME, PROP_QUALITY, PROP_ROTATION, PROP_SOUNDBUFTIME, PROP_TARGET, PROP_TOTALFRAMES, PROP_URL, PROP_VISIBLE, PROP_WIDTH, PROP_X, PROP_XMOUSE, PROP_XSCALE, PROP_Y, PROP_YMOUSE, PROP_YSCALE, PUSH, PUSHTYPE_03, PUSHTYPE_BOOLEAN, PUSHTYPE_DOUBLE, PUSHTYPE_FLOAT, PUSHTYPE_INTEGER, PUSHTYPE_LOOKUP, PUSHTYPE_NULL, PUSHTYPE_REGISTER, PUSHTYPE_STRING, RANDOM_NUMBER, REGISTER, REMOVE_SPRITE, RETURN, SET_MEMBER, SET_PROPERTY, SET_TARGET, SET_TARGET_2, SET_VARIABLE, SHIFT_LEFT, SHIFT_RIGHT, SHIFT_UNSIGNED, START_DRAG, STOP, STOP_SOUNDS, STRICT_EQUALS, STRING_ADD, STRING_EQUALS, STRING_EXTRACT, STRING_GREATER, STRING_LENGTH, STRING_LESS, SUBTRACT, SWAP, TO_INTEGER, TOGGLE_QUALITY, TRACE, TYPED_ADD, TYPED_EQUALS, TYPED_LESS_THAN, TYPEOF, TYPEOF_BOOLEAN, TYPEOF_FUNCTION, TYPEOF_MOVIECLIP, TYPEOF_NULL, TYPEOF_NUMBER, TYPEOF_OBJECT, TYPEOF_STRING, TYPEOF_UNDEFINED, WAIT_FOR_FRAME, WAIT_FOR_FRAME_2, WITH |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
printer
protected java.io.PrintWriter printer
indent
protected java.lang.String indent
ActionTextWriter
public ActionTextWriter(java.io.PrintWriter printer)
print
protected void print(java.lang.String mnemonic,
java.lang.String[] args)
writePaddedString
protected void writePaddedString(java.lang.String s,
int length)
start
public void start(int conditions)
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFActions
- Start of actions
- Specified by:
start in interface com.anotherbigidea.flash.interfaces.SWFActions
end
public void end()
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFActions
- End of actions
- Specified by:
end in interface com.anotherbigidea.flash.interfaces.SWFActions
done
public void done()
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFActions
- End of all action blocks
- Specified by:
done in interface com.anotherbigidea.flash.interfaces.SWFActions
blob
public void blob(byte[] blob)
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFActions
- Pass through a blob of actions
- Specified by:
blob in interface com.anotherbigidea.flash.interfaces.SWFActions
unknown
public void unknown(int code,
byte[] data)
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFActions
- Unrecognized action code
- Specified by:
unknown in interface com.anotherbigidea.flash.interfaces.SWFActions
initArray
public void initArray()
throws java.io.IOException
- Specified by:
initArray in interface com.anotherbigidea.flash.interfaces.SWFActions
jumpLabel
public void jumpLabel(java.lang.String label)
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFActions
- Target label for a jump - this method call immediately precedes the
target action.
- Specified by:
jumpLabel in interface com.anotherbigidea.flash.interfaces.SWFActions
gotoFrame
public void gotoFrame(int frameNumber)
throws java.io.IOException
- Specified by:
gotoFrame in interface com.anotherbigidea.flash.interfaces.SWFActions
gotoFrame
public void gotoFrame(java.lang.String label)
throws java.io.IOException
- Specified by:
gotoFrame in interface com.anotherbigidea.flash.interfaces.SWFActions
getURL
public void getURL(java.lang.String url,
java.lang.String target)
throws java.io.IOException
- Specified by:
getURL in interface com.anotherbigidea.flash.interfaces.SWFActions
nextFrame
public void nextFrame()
throws java.io.IOException
- Specified by:
nextFrame in interface com.anotherbigidea.flash.interfaces.SWFActions
prevFrame
public void prevFrame()
throws java.io.IOException
- Specified by:
prevFrame in interface com.anotherbigidea.flash.interfaces.SWFActions
play
public void play()
throws java.io.IOException
- Specified by:
play in interface com.anotherbigidea.flash.interfaces.SWFActions
stop
public void stop()
throws java.io.IOException
- Specified by:
stop in interface com.anotherbigidea.flash.interfaces.SWFActions
toggleQuality
public void toggleQuality()
throws java.io.IOException
- Specified by:
toggleQuality in interface com.anotherbigidea.flash.interfaces.SWFActions
stopSounds
public void stopSounds()
throws java.io.IOException
- Specified by:
stopSounds in interface com.anotherbigidea.flash.interfaces.SWFActions
setTarget
public void setTarget(java.lang.String target)
throws java.io.IOException
- Specified by:
setTarget in interface com.anotherbigidea.flash.interfaces.SWFActions
jump
public void jump(java.lang.String jumpLabel)
throws java.io.IOException
- Specified by:
jump in interface com.anotherbigidea.flash.interfaces.SWFActions
ifJump
public void ifJump(java.lang.String jumpLabel)
throws java.io.IOException
- Specified by:
ifJump in interface com.anotherbigidea.flash.interfaces.SWFActions
waitForFrame
public void waitForFrame(int frameNumber,
java.lang.String jumpLabel)
throws java.io.IOException
- Specified by:
waitForFrame in interface com.anotherbigidea.flash.interfaces.SWFActions
waitForFrame
public void waitForFrame(java.lang.String jumpLabel)
throws java.io.IOException
- Specified by:
waitForFrame in interface com.anotherbigidea.flash.interfaces.SWFActions
pop
public void pop()
throws java.io.IOException
- Specified by:
pop in interface com.anotherbigidea.flash.interfaces.SWFActions
push
public void push(java.lang.String value)
throws java.io.IOException
- Specified by:
push in interface com.anotherbigidea.flash.interfaces.SWFActions
push
public void push(float value)
throws java.io.IOException
- Specified by:
push in interface com.anotherbigidea.flash.interfaces.SWFActions
push
public void push(double value)
throws java.io.IOException
- Specified by:
push in interface com.anotherbigidea.flash.interfaces.SWFActions
pushNull
public void pushNull()
throws java.io.IOException
- Specified by:
pushNull in interface com.anotherbigidea.flash.interfaces.SWFActions
pushRegister
public void pushRegister(int registerNumber)
throws java.io.IOException
- Specified by:
pushRegister in interface com.anotherbigidea.flash.interfaces.SWFActions
push
public void push(boolean value)
throws java.io.IOException
- Specified by:
push in interface com.anotherbigidea.flash.interfaces.SWFActions
push
public void push(int value)
throws java.io.IOException
- Specified by:
push in interface com.anotherbigidea.flash.interfaces.SWFActions
lookup
public void lookup(int dictionaryIndex)
throws java.io.IOException
- Specified by:
lookup in interface com.anotherbigidea.flash.interfaces.SWFActions
add
public void add()
throws java.io.IOException
- Specified by:
add in interface com.anotherbigidea.flash.interfaces.SWFActions
substract
public void substract()
throws java.io.IOException
- Specified by:
substract in interface com.anotherbigidea.flash.interfaces.SWFActions
multiply
public void multiply()
throws java.io.IOException
- Specified by:
multiply in interface com.anotherbigidea.flash.interfaces.SWFActions
divide
public void divide()
throws java.io.IOException
- Specified by:
divide in interface com.anotherbigidea.flash.interfaces.SWFActions
equals
public void equals()
throws java.io.IOException
- Specified by:
equals in interface com.anotherbigidea.flash.interfaces.SWFActions
lessThan
public void lessThan()
throws java.io.IOException
- Specified by:
lessThan in interface com.anotherbigidea.flash.interfaces.SWFActions
and
public void and()
throws java.io.IOException
- Specified by:
and in interface com.anotherbigidea.flash.interfaces.SWFActions
or
public void or()
throws java.io.IOException
- Specified by:
or in interface com.anotherbigidea.flash.interfaces.SWFActions
not
public void not()
throws java.io.IOException
- Specified by:
not in interface com.anotherbigidea.flash.interfaces.SWFActions
stringEquals
public void stringEquals()
throws java.io.IOException
- Specified by:
stringEquals in interface com.anotherbigidea.flash.interfaces.SWFActions
stringLength
public void stringLength()
throws java.io.IOException
- Specified by:
stringLength in interface com.anotherbigidea.flash.interfaces.SWFActions
concat
public void concat()
throws java.io.IOException
- Specified by:
concat in interface com.anotherbigidea.flash.interfaces.SWFActions
substring
public void substring()
throws java.io.IOException
- Specified by:
substring in interface com.anotherbigidea.flash.interfaces.SWFActions
stringLessThan
public void stringLessThan()
throws java.io.IOException
- Specified by:
stringLessThan in interface com.anotherbigidea.flash.interfaces.SWFActions
stringLengthMB
public void stringLengthMB()
throws java.io.IOException
- Specified by:
stringLengthMB in interface com.anotherbigidea.flash.interfaces.SWFActions
substringMB
public void substringMB()
throws java.io.IOException
- Specified by:
substringMB in interface com.anotherbigidea.flash.interfaces.SWFActions
toInteger
public void toInteger()
throws java.io.IOException
- Specified by:
toInteger in interface com.anotherbigidea.flash.interfaces.SWFActions
charToAscii
public void charToAscii()
throws java.io.IOException
- Specified by:
charToAscii in interface com.anotherbigidea.flash.interfaces.SWFActions
asciiToChar
public void asciiToChar()
throws java.io.IOException
- Specified by:
asciiToChar in interface com.anotherbigidea.flash.interfaces.SWFActions
charMBToAscii
public void charMBToAscii()
throws java.io.IOException
- Specified by:
charMBToAscii in interface com.anotherbigidea.flash.interfaces.SWFActions
asciiToCharMB
public void asciiToCharMB()
throws java.io.IOException
- Specified by:
asciiToCharMB in interface com.anotherbigidea.flash.interfaces.SWFActions
call
public void call()
throws java.io.IOException
- Specified by:
call in interface com.anotherbigidea.flash.interfaces.SWFActions
getVariable
public void getVariable()
throws java.io.IOException
- Specified by:
getVariable in interface com.anotherbigidea.flash.interfaces.SWFActions
setVariable
public void setVariable()
throws java.io.IOException
- Specified by:
setVariable in interface com.anotherbigidea.flash.interfaces.SWFActions
getURL
public void getURL(int sendVars,
int loadMode)
throws java.io.IOException
- Specified by:
getURL in interface com.anotherbigidea.flash.interfaces.SWFActions
gotoFrame
public void gotoFrame(boolean play)
throws java.io.IOException
- Specified by:
gotoFrame in interface com.anotherbigidea.flash.interfaces.SWFActions
setTarget
public void setTarget()
throws java.io.IOException
- Specified by:
setTarget in interface com.anotherbigidea.flash.interfaces.SWFActions
getProperty
public void getProperty()
throws java.io.IOException
- Specified by:
getProperty in interface com.anotherbigidea.flash.interfaces.SWFActions
setProperty
public void setProperty()
throws java.io.IOException
- Specified by:
setProperty in interface com.anotherbigidea.flash.interfaces.SWFActions
cloneSprite
public void cloneSprite()
throws java.io.IOException
- Specified by:
cloneSprite in interface com.anotherbigidea.flash.interfaces.SWFActions
removeSprite
public void removeSprite()
throws java.io.IOException
- Specified by:
removeSprite in interface com.anotherbigidea.flash.interfaces.SWFActions
startDrag
public void startDrag()
throws java.io.IOException
- Specified by:
startDrag in interface com.anotherbigidea.flash.interfaces.SWFActions
endDrag
public void endDrag()
throws java.io.IOException
- Specified by:
endDrag in interface com.anotherbigidea.flash.interfaces.SWFActions
trace
public void trace()
throws java.io.IOException
- Specified by:
trace in interface com.anotherbigidea.flash.interfaces.SWFActions
getTime
public void getTime()
throws java.io.IOException
- Specified by:
getTime in interface com.anotherbigidea.flash.interfaces.SWFActions
randomNumber
public void randomNumber()
throws java.io.IOException
- Specified by:
randomNumber in interface com.anotherbigidea.flash.interfaces.SWFActions
lookupTable
public void lookupTable(java.lang.String[] values)
throws java.io.IOException
- Specified by:
lookupTable in interface com.anotherbigidea.flash.interfaces.SWFActions
callFunction
public void callFunction()
throws java.io.IOException
- Specified by:
callFunction in interface com.anotherbigidea.flash.interfaces.SWFActions
callMethod
public void callMethod()
throws java.io.IOException
- Specified by:
callMethod in interface com.anotherbigidea.flash.interfaces.SWFActions
startFunction
public void startFunction(java.lang.String name,
java.lang.String[] paramNames)
throws java.io.IOException
- Specified by:
startFunction in interface com.anotherbigidea.flash.interfaces.SWFActions
endBlock
public void endBlock()
throws java.io.IOException
- Specified by:
endBlock in interface com.anotherbigidea.flash.interfaces.SWFActions
comment
public void comment(java.lang.String comment)
throws java.io.IOException
- Description copied from interface:
com.anotherbigidea.flash.interfaces.SWFActions
- Comment Text - useful for debugging purposes
- Specified by:
comment in interface com.anotherbigidea.flash.interfaces.SWFActions
defineLocalValue
public void defineLocalValue()
throws java.io.IOException
- Specified by:
defineLocalValue in interface com.anotherbigidea.flash.interfaces.SWFActions
defineLocal
public void defineLocal()
throws java.io.IOException
- Specified by:
defineLocal in interface com.anotherbigidea.flash.interfaces.SWFActions
deleteProperty
public void deleteProperty()
throws java.io.IOException
- Specified by:
deleteProperty in interface com.anotherbigidea.flash.interfaces.SWFActions
deleteThreadVars
public void deleteThreadVars()
throws java.io.IOException
- Specified by:
deleteThreadVars in interface com.anotherbigidea.flash.interfaces.SWFActions
enumerate
public void enumerate()
throws java.io.IOException
- Specified by:
enumerate in interface com.anotherbigidea.flash.interfaces.SWFActions
typedEquals
public void typedEquals()
throws java.io.IOException
- Specified by:
typedEquals in interface com.anotherbigidea.flash.interfaces.SWFActions
getMember
public void getMember()
throws java.io.IOException
- Specified by:
getMember in interface com.anotherbigidea.flash.interfaces.SWFActions
initObject
public void initObject()
throws java.io.IOException
- Specified by:
initObject in interface com.anotherbigidea.flash.interfaces.SWFActions
newMethod
public void newMethod()
throws java.io.IOException
- Specified by:
newMethod in interface com.anotherbigidea.flash.interfaces.SWFActions
newObject
public void newObject()
throws java.io.IOException
- Specified by:
newObject in interface com.anotherbigidea.flash.interfaces.SWFActions
setMember
public void setMember()
throws java.io.IOException
- Specified by:
setMember in interface com.anotherbigidea.flash.interfaces.SWFActions
getTargetPath
public void getTargetPath()
throws java.io.IOException
- Specified by:
getTargetPath in interface com.anotherbigidea.flash.interfaces.SWFActions
startWith
public void startWith()
throws java.io.IOException
- Specified by:
startWith in interface com.anotherbigidea.flash.interfaces.SWFActions
duplicate
public void duplicate()
throws java.io.IOException
- Specified by:
duplicate in interface com.anotherbigidea.flash.interfaces.SWFActions
returnValue
public void returnValue()
throws java.io.IOException
- Specified by:
returnValue in interface com.anotherbigidea.flash.interfaces.SWFActions
swap
public void swap()
throws java.io.IOException
- Specified by:
swap in interface com.anotherbigidea.flash.interfaces.SWFActions
storeInRegister
public void storeInRegister(int registerNumber)
throws java.io.IOException
- Specified by:
storeInRegister in interface com.anotherbigidea.flash.interfaces.SWFActions
convertToNumber
public void convertToNumber()
throws java.io.IOException
- Specified by:
convertToNumber in interface com.anotherbigidea.flash.interfaces.SWFActions
convertToString
public void convertToString()
throws java.io.IOException
- Specified by:
convertToString in interface com.anotherbigidea.flash.interfaces.SWFActions
typeOf
public void typeOf()
throws java.io.IOException
- Specified by:
typeOf in interface com.anotherbigidea.flash.interfaces.SWFActions
typedAdd
public void typedAdd()
throws java.io.IOException
- Specified by:
typedAdd in interface com.anotherbigidea.flash.interfaces.SWFActions
typedLessThan
public void typedLessThan()
throws java.io.IOException
- Specified by:
typedLessThan in interface com.anotherbigidea.flash.interfaces.SWFActions
modulo
public void modulo()
throws java.io.IOException
- Specified by:
modulo in interface com.anotherbigidea.flash.interfaces.SWFActions
bitAnd
public void bitAnd()
throws java.io.IOException
- Specified by:
bitAnd in interface com.anotherbigidea.flash.interfaces.SWFActions
bitOr
public void bitOr()
throws java.io.IOException
- Specified by:
bitOr in interface com.anotherbigidea.flash.interfaces.SWFActions
bitXor
public void bitXor()
throws java.io.IOException
- Specified by:
bitXor in interface com.anotherbigidea.flash.interfaces.SWFActions
shiftLeft
public void shiftLeft()
throws java.io.IOException
- Specified by:
shiftLeft in interface com.anotherbigidea.flash.interfaces.SWFActions
shiftRight
public void shiftRight()
throws java.io.IOException
- Specified by:
shiftRight in interface com.anotherbigidea.flash.interfaces.SWFActions
shiftRightUnsigned
public void shiftRightUnsigned()
throws java.io.IOException
- Specified by:
shiftRightUnsigned in interface com.anotherbigidea.flash.interfaces.SWFActions
decrement
public void decrement()
throws java.io.IOException
- Specified by:
decrement in interface com.anotherbigidea.flash.interfaces.SWFActions
increment
public void increment()
throws java.io.IOException
- Specified by:
increment in interface com.anotherbigidea.flash.interfaces.SWFActions
enumerateObject
public void enumerateObject()
throws java.io.IOException
- Specified by:
enumerateObject in interface com.anotherbigidea.flash.interfaces.SWFActions
greaterThan
public void greaterThan()
throws java.io.IOException
- Specified by:
greaterThan in interface com.anotherbigidea.flash.interfaces.SWFActions
instanceOf
public void instanceOf()
throws java.io.IOException
- Specified by:
instanceOf in interface com.anotherbigidea.flash.interfaces.SWFActions
strictEquals
public void strictEquals()
throws java.io.IOException
- Specified by:
strictEquals in interface com.anotherbigidea.flash.interfaces.SWFActions
stringGreaterThan
public void stringGreaterThan()
throws java.io.IOException
- Specified by:
stringGreaterThan in interface com.anotherbigidea.flash.interfaces.SWFActions