12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

90 FLASH STREAM DECODER ANNOYANCE-FILTER §111<br />

111. Executable actions are encoded in a Flash script as a stagDoAction tag, which contains a<br />

sequence of action codes, terminated by a zero (sactionNone ) action. Action codes in the range # 00–<br />

#<br />

7F are single byte codes with no arguments. Action codes from # 80 to # FF are followed by a 16 bit<br />

field specifying the number of argument bytes which follow. Unknown actions, like tags, may hence be<br />

skipped.<br />

〈 Flash file action codes 111 〉 ≡<br />

typedef enum {<br />

sactionNone = # 00,<br />

sactionNextFrame = # 04,<br />

sactionPrevFrame = # 05,<br />

sactionPlay = # 06,<br />

sactionStop = # 07,<br />

sactionToggleQuality = # 08,<br />

sactionStopSounds = # 09,<br />

sactionAdd = # 0A,<br />

sactionSubtract = # 0B,<br />

sactionMultiply = # 0C,<br />

sactionDivide = # 0D,<br />

sactionEqual = # 0E,<br />

sactionLessThan = # 0F,<br />

sactionLogicalAnd = # 10,<br />

sactionLogicalOr = # 11,<br />

sactionLogicalNot = # 12,<br />

sactionStringEqual = # 13,<br />

sactionStringLength = # 14,<br />

sactionSubString = # 15,<br />

sactionInt = # 18,<br />

sactionEval = # 1C,<br />

sactionSetVariable = # 1D,<br />

sactionSetTargetExpression = # 20,<br />

sactionStringConcat = # 21,<br />

sactionGetProperty = # 22,<br />

sactionSetProperty = # 23,<br />

sactionDuplicateClip = # 24,<br />

sactionRemoveClip = # 25,<br />

sactionTrace = # 26,<br />

sactionStartDragMovie = # 27,<br />

sactionStopDragMovie = # 28,<br />

sactionStringLessThan = # 29,<br />

sactionRandom = # 30,<br />

sactionMBLength = # 31,<br />

sactionOrd = # 32,<br />

sactionChr = # 33,<br />

sactionGetTimer = # 34,<br />

sactionMBSubString = # 35,<br />

sactionMBOrd = # 36,<br />

sactionMBChr = # 37,<br />

sactionHasLength = # 80,<br />

sactionGotoFrame = # 81, /∗ frame num (WORD) ∗/<br />

sactionGetURL = # 83, /∗ url (STR), window (STR) ∗/<br />

sactionWaitForFrame = # 8A, /∗ frame needed (WORD), ∗/<br />

/∗ actions to skip (BYTE) ∗/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!