Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.anotherbigidea.flash.movie
Class Actions  view Actions download Actions.java

java.lang.Object
  extended bycom.anotherbigidea.flash.writers.ActionWriter
      extended bycom.anotherbigidea.flash.movie.Actions
All Implemented Interfaces:
com.anotherbigidea.flash.SWFActionCodes, com.anotherbigidea.flash.interfaces.SWFActions

public class Actions
extends com.anotherbigidea.flash.writers.ActionWriter

A set of actions


Field Summary
protected  byte[] bytes
           
protected  int conditions
           
 
Fields inherited from class com.anotherbigidea.flash.writers.ActionWriter
blocks, blockStack, bout, count, flashVersion, jumps, labels, mStringEncoding, out, pushValues, skips, tagWriter
 
Fields inherited from interface com.anotherbigidea.flash.interfaces.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 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
 
Constructor Summary
Actions(int flashVersion)
           
Actions(int conditions, int flashVersion)
           
 
Method Summary
 void done()
          SWFActions interface
 int getConditions()
          The condition flags depend on context - frame, button or clip actions
 void setConditions(int conds)
           
 void start(int conditions)
          SWFActions interface
 void write(com.anotherbigidea.flash.interfaces.SWFActions swfactions)
          Parse the action contents and write them to the SWFActions interface
protected  void writeBytes(byte[] bytes)
           
 
Methods inherited from class com.anotherbigidea.flash.writers.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, enumerateObject, equals, fixupBlocks, fixupJumps, fixupSkips, flushPushValues, getMember, getProperty, getTargetPath, getTime, getURL, getURL, getVariable, gotoFrame, gotoFrame, gotoFrame, greaterThan, ifJump, increment, initArray, initObject, instanceOf, 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, strictEquals, stringEquals, stringGreaterThan, 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

bytes

protected byte[] bytes
Constructor Detail

Actions

public Actions(int conditions,
               int flashVersion)

Actions

public Actions(int flashVersion)
Method Detail

write

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


getConditions

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


setConditions

public void setConditions(int conds)

start

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


writeBytes

protected void writeBytes(byte[] bytes)
                   throws java.io.IOException

done

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