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

Quick Search    Search Deep

com.anotherbigidea.flash.readers
Class ActionParser  view ActionParser download ActionParser.java

java.lang.Object
  extended bycom.anotherbigidea.flash.readers.ActionParser
All Implemented Interfaces:
com.anotherbigidea.flash.SWFActionCodes

public class ActionParser
extends java.lang.Object
implements com.anotherbigidea.flash.SWFActionCodes

Parse action bytes and drive a SWFActions interface


Nested Class Summary
protected static class ActionParser.ActionRecord
           
 
Field Summary
protected  com.anotherbigidea.flash.interfaces.SWFActions actions
           
protected  int blockDepth
           
protected  java.lang.String mStringEncoding
           
 
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
ActionParser(com.anotherbigidea.flash.interfaces.SWFActions actions, int flashVersion)
           
 
Method Summary
protected  java.util.Vector createRecords(byte[] bytes)
          First Pass to determine action offsets and jumps
protected  java.util.Vector createRecords(com.anotherbigidea.io.InStream in)
          First Pass to determine action offsets and jumps
 void parse(byte[] bytes)
           
 void parse(com.anotherbigidea.io.InStream in)
           
protected  void parseDefineFunction(com.anotherbigidea.io.InStream in)
           
protected  void parseGetURL2(int flags)
           
protected  void parseLookupTable(com.anotherbigidea.io.InStream in)
           
protected  void parsePush(int length, com.anotherbigidea.io.InStream in)
           
protected  void parseWith(com.anotherbigidea.io.InStream in)
           
protected  void processRecords(java.util.Vector records)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actions

protected com.anotherbigidea.flash.interfaces.SWFActions actions

blockDepth

protected int blockDepth

mStringEncoding

protected java.lang.String mStringEncoding
Constructor Detail

ActionParser

public ActionParser(com.anotherbigidea.flash.interfaces.SWFActions actions,
                    int flashVersion)
Method Detail

parse

public void parse(byte[] bytes)
           throws java.io.IOException

parse

public void parse(com.anotherbigidea.io.InStream in)
           throws java.io.IOException

processRecords

protected void processRecords(java.util.Vector records)
                       throws java.io.IOException

parseDefineFunction

protected void parseDefineFunction(com.anotherbigidea.io.InStream in)
                            throws java.io.IOException

parseWith

protected void parseWith(com.anotherbigidea.io.InStream in)
                  throws java.io.IOException

parseLookupTable

protected void parseLookupTable(com.anotherbigidea.io.InStream in)
                         throws java.io.IOException

parseGetURL2

protected void parseGetURL2(int flags)
                     throws java.io.IOException

parsePush

protected void parsePush(int length,
                         com.anotherbigidea.io.InStream in)
                  throws java.io.IOException

createRecords

protected java.util.Vector createRecords(byte[] bytes)
                                  throws java.io.IOException
First Pass to determine action offsets and jumps


createRecords

protected java.util.Vector createRecords(com.anotherbigidea.io.InStream in)
                                  throws java.io.IOException
First Pass to determine action offsets and jumps