pt.tumba.parser.swf
Interface SWFActions

All Known Implementing Classes:
Actions, ActionTextWriter, ActionWriter, Decompiler, MovieBuilder.ActionsBuilder, MovieBuilder.ButtonActionBuilder, MovieBuilder.ClipActionBuilder, SWFActionsImpl, SWFSaxParser, TagWriter.ButtonActionWriter

public interface SWFActions

Interface for passing Action Codes Lifecycle is - 1. start(..) is called with any condition flags (e.g. event codes) for the action array 2. action methods are called 3. end() is called to terminate array 4. 1..3 is repeated for any subsequent condition blocks 5. done() is called to terminate all action passing

Author:
unknown

Field Summary
static int GET_URL_MODE_LOAD_MOVIE_INTO_LEVEL
          Description of the Field
static int GET_URL_MODE_LOAD_MOVIE_INTO_SPRITE
          Description of the Field
static int GET_URL_MODE_LOAD_VARS_INTO_LEVEL
          Description of the Field
static int GET_URL_MODE_LOAD_VARS_INTO_SPRITE
          Description of the Field
static int GET_URL_SEND_VARS_GET
          Description of the Field
static int GET_URL_SEND_VARS_NONE
          Description of the Field
static int GET_URL_SEND_VARS_POST
          Description of the Field
 
Method Summary
 void add()
          Description of the Method
 void and()
          Description of the Method
 void asciiToChar()
          Description of the Method
 void asciiToCharMB()
          Description of the Method
 void bitAnd()
          Description of the Method
 void bitOr()
          Description of the Method
 void bitXor()
          Description of the Method
 void blob(byte[] blob)
          Pass through a blob of actions
 void call()
          Description of the Method
 void callFunction()
          Description of the Method
 void callMethod()
          Description of the Method
 void charMBToAscii()
          Description of the Method
 void charToAscii()
          Description of the Method
 void cloneSprite()
          Description of the Method
 void comment(java.lang.String comment)
          Comment Text - useful for debugging purposes
 void concat()
          Description of the Method
 void convertToNumber()
          Description of the Method
 void convertToString()
          Description of the Method
 void decrement()
          Description of the Method
 void defineLocal()
          Description of the Method
 void defineLocalValue()
          Description of the Method
 void deleteProperty()
          Description of the Method
 void deleteThreadVars()
          Description of the Method
 void divide()
          Description of the Method
 void done()
          End of all action blocks
 void duplicate()
          Description of the Method
 void end()
          End of actions
 void endBlock()
          Description of the Method
 void endDrag()
          Description of the Method
 void enumerate()
          Description of the Method
 void equals()
          Description of the Method
 void getMember()
          Gets the member attribute of the SWFActions object
 void getProperty()
          Gets the property attribute of the SWFActions object
 void getTargetPath()
          Gets the targetPath attribute of the SWFActions object
 void getTime()
          Gets the time attribute of the SWFActions object
 void getURL(int sendVars, int loadMode)
          Gets the uRL attribute of the SWFActions object
 void getURL(java.lang.String url, java.lang.String target)
          Gets the uRL attribute of the SWFActions object
 void getVariable()
          Gets the variable attribute of the SWFActions object
 void gotoFrame(boolean play)
          Description of the Method
 void gotoFrame(int frameNumber)
          Description of the Method
 void gotoFrame(java.lang.String label)
          Description of the Method
 void ifJump(java.lang.String jumpLabel)
          Description of the Method
 void increment()
          Description of the Method
 void initArray()
          Description of the Method
 void initObject()
          Description of the Method
 void jump(java.lang.String jumpLabel)
          Description of the Method
 void jumpLabel(java.lang.String label)
          Target label for a jump - this method call immediately precedes the target action.
 void lessThan()
          Description of the Method
 void lookup(int dictionaryIndex)
          Description of the Method
 void lookupTable(java.lang.String[] values)
          Description of the Method
 void modulo()
          Description of the Method
 void multiply()
          Description of the Method
 void newMethod()
          Description of the Method
 void newObject()
          Description of the Method
 void nextFrame()
          Description of the Method
 void not()
          Description of the Method
 void or()
          Description of the Method
 void play()
          Description of the Method
 void pop()
          Description of the Method
 void prevFrame()
          Description of the Method
 void push(boolean value)
          Description of the Method
 void push(double value)
          Description of the Method
 void push(float value)
          Description of the Method
 void push(int value)
          Description of the Method
 void push(java.lang.String value)
          Description of the Method
 void pushNull()
          Description of the Method
 void pushRegister(int registerNumber)
          Description of the Method
 void randomNumber()
          Description of the Method
 void removeSprite()
          Description of the Method
 void returnValue()
          Description of the Method
 void setMember()
          Sets the member attribute of the SWFActions object
 void setProperty()
          Sets the property attribute of the SWFActions object
 void setTarget()
          Sets the target attribute of the SWFActions object
 void setTarget(java.lang.String target)
          Sets the target attribute of the SWFActions object
 void setVariable()
          Sets the variable attribute of the SWFActions object
 void shiftLeft()
          Description of the Method
 void shiftRight()
          Description of the Method
 void shiftRightUnsigned()
          Description of the Method
 void start(int flags)
          Start of actions
 void startDrag()
          Description of the Method
 void startFunction(java.lang.String name, java.lang.String[] paramNames)
          Description of the Method
 void startWith()
          Description of the Method
 void stop()
          Description of the Method
 void stopSounds()
          Description of the Method
 void storeInRegister(int registerNumber)
          Description of the Method
 void stringEquals()
          Description of the Method
 void stringLength()
          Description of the Method
 void stringLengthMB()
          Description of the Method
 void stringLessThan()
          Description of the Method
 void substract()
          Description of the Method
 void substring()
          Description of the Method
 void substringMB()
          Description of the Method
 void swap()
          Description of the Method
 void toggleQuality()
          Description of the Method
 void toInteger()
          Description of the Method
 void trace()
          Description of the Method
 void typedAdd()
          Description of the Method
 void typedEquals()
          Description of the Method
 void typedLessThan()
          Description of the Method
 void typeOf()
          Description of the Method
 void unknown(int code, byte[] data)
          Unrecognized action code
 void waitForFrame(int frameNumber, java.lang.String jumpLabel)
          Description of the Method
 void waitForFrame(java.lang.String jumpLabel)
          Description of the Method
 

Field Detail

GET_URL_SEND_VARS_NONE

static final int GET_URL_SEND_VARS_NONE
Description of the Field

See Also:
Constant Field Values

GET_URL_SEND_VARS_GET

static final int GET_URL_SEND_VARS_GET
Description of the Field

See Also:
Constant Field Values

GET_URL_SEND_VARS_POST

static final int GET_URL_SEND_VARS_POST
Description of the Field

See Also:
Constant Field Values

GET_URL_MODE_LOAD_MOVIE_INTO_LEVEL

static final int GET_URL_MODE_LOAD_MOVIE_INTO_LEVEL
Description of the Field

See Also:
Constant Field Values

GET_URL_MODE_LOAD_MOVIE_INTO_SPRITE

static final int GET_URL_MODE_LOAD_MOVIE_INTO_SPRITE
Description of the Field

See Also:
Constant Field Values

GET_URL_MODE_LOAD_VARS_INTO_LEVEL

static final int GET_URL_MODE_LOAD_VARS_INTO_LEVEL
Description of the Field

See Also:
Constant Field Values

GET_URL_MODE_LOAD_VARS_INTO_SPRITE

static final int GET_URL_MODE_LOAD_VARS_INTO_SPRITE
Description of the Field

See Also:
Constant Field Values
Method Detail

start

void start(int flags)
           throws java.io.IOException
Start of actions

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

done

void done()
          throws java.io.IOException
End of all action blocks

Throws:
java.io.IOException - Description of the Exception

end

void end()
         throws java.io.IOException
End of actions

Throws:
java.io.IOException - Description of the Exception

blob

void blob(byte[] blob)
          throws java.io.IOException
Pass through a blob of actions

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

unknown

void unknown(int code,
             byte[] data)
             throws java.io.IOException
Unrecognized action code

Parameters:
data - may be null
code - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

jumpLabel

void jumpLabel(java.lang.String label)
               throws java.io.IOException
Target label for a jump - this method call immediately precedes the target action.

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

comment

void comment(java.lang.String comment)
             throws java.io.IOException
Comment Text - useful for debugging purposes

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

gotoFrame

void gotoFrame(int frameNumber)
               throws java.io.IOException
Description of the Method

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

gotoFrame

void gotoFrame(java.lang.String label)
               throws java.io.IOException
Description of the Method

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

getURL

void getURL(java.lang.String url,
            java.lang.String target)
            throws java.io.IOException
Gets the uRL attribute of the SWFActions object

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

nextFrame

void nextFrame()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

prevFrame

void prevFrame()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

play

void play()
          throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

stop

void stop()
          throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

toggleQuality

void toggleQuality()
                   throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

stopSounds

void stopSounds()
                throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

waitForFrame

void waitForFrame(int frameNumber,
                  java.lang.String jumpLabel)
                  throws java.io.IOException
Description of the Method

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

setTarget

void setTarget(java.lang.String target)
               throws java.io.IOException
Sets the target attribute of the SWFActions object

Parameters:
target - The new target value
Throws:
java.io.IOException - Description of the Exception

push

void push(java.lang.String value)
          throws java.io.IOException
Description of the Method

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

push

void push(float value)
          throws java.io.IOException
Description of the Method

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

pop

void pop()
         throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

add

void add()
         throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

substract

void substract()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

multiply

void multiply()
              throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

divide

void divide()
            throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

equals

void equals()
            throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

lessThan

void lessThan()
              throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

and

void and()
         throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

or

void or()
        throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

not

void not()
         throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

stringEquals

void stringEquals()
                  throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

stringLength

void stringLength()
                  throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

concat

void concat()
            throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

substring

void substring()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

stringLessThan

void stringLessThan()
                    throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

stringLengthMB

void stringLengthMB()
                    throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

substringMB

void substringMB()
                 throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

toInteger

void toInteger()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

charToAscii

void charToAscii()
                 throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

asciiToChar

void asciiToChar()
                 throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

charMBToAscii

void charMBToAscii()
                   throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

asciiToCharMB

void asciiToCharMB()
                   throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

jump

void jump(java.lang.String jumpLabel)
          throws java.io.IOException
Description of the Method

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

ifJump

void ifJump(java.lang.String jumpLabel)
            throws java.io.IOException
Description of the Method

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

call

void call()
          throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

getVariable

void getVariable()
                 throws java.io.IOException
Gets the variable attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

setVariable

void setVariable()
                 throws java.io.IOException
Sets the variable attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

getURL

void getURL(int sendVars,
            int loadMode)
            throws java.io.IOException
Gets the uRL attribute of the SWFActions object

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

gotoFrame

void gotoFrame(boolean play)
               throws java.io.IOException
Description of the Method

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

setTarget

void setTarget()
               throws java.io.IOException
Sets the target attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

getProperty

void getProperty()
                 throws java.io.IOException
Gets the property attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

setProperty

void setProperty()
                 throws java.io.IOException
Sets the property attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

cloneSprite

void cloneSprite()
                 throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

removeSprite

void removeSprite()
                  throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

startDrag

void startDrag()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

endDrag

void endDrag()
             throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

waitForFrame

void waitForFrame(java.lang.String jumpLabel)
                  throws java.io.IOException
Description of the Method

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

trace

void trace()
           throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

getTime

void getTime()
             throws java.io.IOException
Gets the time attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

randomNumber

void randomNumber()
                  throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

callFunction

void callFunction()
                  throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

callMethod

void callMethod()
                throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

lookupTable

void lookupTable(java.lang.String[] values)
                 throws java.io.IOException
Description of the Method

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

startFunction

void startFunction(java.lang.String name,
                   java.lang.String[] paramNames)
                   throws java.io.IOException
Description of the Method

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

endBlock

void endBlock()
              throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

defineLocalValue

void defineLocalValue()
                      throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

defineLocal

void defineLocal()
                 throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

deleteProperty

void deleteProperty()
                    throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

deleteThreadVars

void deleteThreadVars()
                      throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

enumerate

void enumerate()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

typedEquals

void typedEquals()
                 throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

getMember

void getMember()
               throws java.io.IOException
Gets the member attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

initArray

void initArray()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

initObject

void initObject()
                throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

newMethod

void newMethod()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

newObject

void newObject()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

setMember

void setMember()
               throws java.io.IOException
Sets the member attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

getTargetPath

void getTargetPath()
                   throws java.io.IOException
Gets the targetPath attribute of the SWFActions object

Throws:
java.io.IOException - Description of the Exception

startWith

void startWith()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

convertToNumber

void convertToNumber()
                     throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

convertToString

void convertToString()
                     throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

typeOf

void typeOf()
            throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

typedAdd

void typedAdd()
              throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

typedLessThan

void typedLessThan()
                   throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

modulo

void modulo()
            throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

bitAnd

void bitAnd()
            throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

bitOr

void bitOr()
           throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

bitXor

void bitXor()
            throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

shiftLeft

void shiftLeft()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

shiftRight

void shiftRight()
                throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

shiftRightUnsigned

void shiftRightUnsigned()
                        throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

decrement

void decrement()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

increment

void increment()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

duplicate

void duplicate()
               throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

returnValue

void returnValue()
                 throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

swap

void swap()
          throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

storeInRegister

void storeInRegister(int registerNumber)
                     throws java.io.IOException
Description of the Method

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

push

void push(double value)
          throws java.io.IOException
Description of the Method

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

pushNull

void pushNull()
              throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of the Exception

pushRegister

void pushRegister(int registerNumber)
                  throws java.io.IOException
Description of the Method

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

push

void push(boolean value)
          throws java.io.IOException
Description of the Method

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

push

void push(int value)
          throws java.io.IOException
Description of the Method

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

lookup

void lookup(int dictionaryIndex)
            throws java.io.IOException
Description of the Method

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