pt.tumba.parser.swf
Class Actions

java.lang.Object
  extended by pt.tumba.parser.swf.ActionWriter
      extended by pt.tumba.parser.swf.Actions
All Implemented Interfaces:
SWFActionCodes, SWFActions

public class Actions
extends ActionWriter

A set of actions

Author:
unknown

Field Summary
protected  byte[] bytes
          Description of the Field
protected  int conditions
          Description of the Field
 
Fields inherited from class pt.tumba.parser.swf.ActionWriter
blocks, blockStack, bout, count, flashVersion, jumps, labels, out, pushValues, skips, tagWriter
 
Fields inherited from interface pt.tumba.parser.swf.SWFActions
GET_URL_MODE_LOAD_MOVIE_INTO_LEVEL, GET_URL_MODE_LOAD_MOVIE_INTO_SPRITE, GET_URL_MODE_LOAD_VARS_INTO_LEVEL, GET_URL_MODE_LOAD_VARS_INTO_SPRITE, GET_URL_SEND_VARS_GET, GET_URL_SEND_VARS_NONE, GET_URL_SEND_VARS_POST
 
Fields inherited from interface pt.tumba.parser.swf.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, EQUALS, GET_MEMBER, GET_PROPERTY, GET_TARGET_PATH, GET_TIME, GET_URL, GET_URL_2, GET_VARIABLE, GOTO_FRAME, GOTO_FRAME_2, GOTO_LABEL, IF, INCREMENT, INIT_ARRAY, INIT_OBJECT, 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, STRING_ADD, STRING_EQUALS, STRING_EXTRACT, 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
 
Constructor Summary
Actions(int flashVersion)
          Constructor for the Actions object
Actions(int conditions, int flashVersion)
          Constructor for the Actions object
 
Method Summary
 void done()
          SWFActions interface
 int getConditions()
          The condition flags depend on context - frame, button or clip actions
 void setConditions(int conds)
          Sets the conditions attribute of the Actions object
 void start(int conditions)
          SWFActions interface
 void write(SWFActions swfactions)
          Parse the action contents and write them to the SWFActions interface
protected  void writeBytes(byte[] bytes)
          Description of the Method
 
Methods inherited from class pt.tumba.parser.swf.ActionWriter
add, and, asciiToChar, asciiToCharMB, bitAnd, bitOr, bitXor, blob, call, callFunction, callMethod, charMBToAscii, charToAscii, cloneSprite, comment, concat, convertToNumber, convertToString, decrement, defineLocal, defineLocalValue, deleteProperty, deleteThreadVars, divide, duplicate, end, endBlock, endDrag, enumerate, equals, fixupBlocks, fixupJumps, fixupSkips, flushPushValues, getMember, getProperty, getTargetPath, getTime, getURL, getURL, getVariable, gotoFrame, gotoFrame, gotoFrame, ifJump, increment, initArray, initObject, jump, jumpLabel, lessThan, lookup, lookupTable, modulo, multiply, newMethod, newObject, nextFrame, not, or, play, pop, prevFrame, push, push, push, push, push, pushNull, pushRegister, randomNumber, removeSprite, returnValue, setMember, setProperty, setTarget, setTarget, setVariable, shiftLeft, shiftRight, shiftRightUnsigned, startDrag, startFunction, startWith, stop, stopSounds, storeInRegister, stringEquals, stringLength, stringLengthMB, stringLessThan, substract, substring, substringMB, swap, toggleQuality, toInteger, trace, typedAdd, typedEquals, typedLessThan, typeOf, unknown, waitForFrame, waitForFrame, writeCode, writeJump
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conditions

protected int conditions
Description of the Field


bytes

protected byte[] bytes
Description of the Field

Constructor Detail

Actions

public Actions(int conditions,
               int flashVersion)
Constructor for the Actions object

Parameters:
conditions - Description of the Parameter
flashVersion - Description of the Parameter

Actions

public Actions(int flashVersion)
Constructor for the Actions object

Parameters:
flashVersion - Description of the Parameter
Method Detail

write

public void write(SWFActions swfactions)
           throws java.io.IOException
Parse the action contents and write them to the SWFActions interface

Parameters:
swfactions - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

getConditions

public int getConditions()
The condition flags depend on context - frame, button or clip actions

Returns:
The conditions value

setConditions

public void setConditions(int conds)
Sets the conditions attribute of the Actions object

Parameters:
conds - The new conditions value

start

public void start(int conditions)
           throws java.io.IOException
SWFActions interface

Specified by:
start in interface SWFActions
Overrides:
start in class ActionWriter
Parameters:
conditions - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

writeBytes

protected void writeBytes(byte[] bytes)
                   throws java.io.IOException
Description of the Method

Overrides:
writeBytes in class ActionWriter
Parameters:
bytes - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

done

public void done()
          throws java.io.IOException
SWFActions interface

Specified by:
done in interface SWFActions
Overrides:
done in class ActionWriter
Throws:
java.io.IOException - Description of the Exception