mikrokosmos
[ class tree: mikrokosmos ] [ index: mikrokosmos ] [ all elements ]

Procedural File: mk_lib_flasm.php

Source Location: /lib/mk_lib_flasm.php



Page Details:



Tags:

filesource:  Source Code for this file








compute_functions [line 463]

void compute_functions( [mixed $flasmStatements = array()])

compute code size block from given flasm statements

bytecode compiler need that infos to compile, in this way it can compile statement by statement without looking ahead furthermore




[ Top ]



compute_function_ends [line 646]

void compute_function_ends( mixed $src)

find and sort

end // of function flasm statements position from a given associative array representing temporary flasm block




[ Top ]



compute_jumps [line 420]

void compute_jumps( [mixed $flasmStatements = array()])

compute jump offset from a given flasm parsed statements



[ Top ]



compute_label_branch [line 529]

void compute_label_branch( mixed $src)

return an associative array containing labels temporary position

and branches label link to update from a given flasm statements array source




[ Top ]



get_flasm_statements [line 104]

void get_flasm_statements( [mixed $src = array()], [mixed $includeHeader = false], [mixed $excludeBlockDefinition = true])

takes an array of FLASM syntax lines

returns an associative array with command and typed params




[ Top ]



isolate_flasm_block [line 67]

void isolate_flasm_block( [mixed $src = array()], [mixed $blockName = "frame"], [mixed $id = "0"], [mixed $indentation = 1])

reads an array of flasm statements

keep the block content based on its name and id it is useful to extract frame actions, movieclips actions, functions




[ Top ]



is_open_flasm_statement [line 288]

void is_open_flasm_statement( mixed $cmd)

returns true | false

if a cmd is a flasm statement




[ Top ]



read_flasm_header [line 25]

void read_flasm_header( mixed $line)

reads a line with flasm header info

example: movie 'ee_example01.swf' compressed // flash 6, total frames: 1, frame rate: 24 fps, 400x200 px return an associative array




[ Top ]



read_flasm_parameters [line 303]

void read_flasm_parameters( mixed $paramStr, [mixed $delimiter = "/, /"], [mixed $constants = array()])

gets a string of params, splits and typize according to aciontscript

bytecode syntax if $constants is given retrieve constant referrals




[ Top ]



sort_flasm_pseudoStatements [line 735]

void sort_flasm_pseudoStatements( mixed $ps)

sort (ascending order)

pseudo flasm statements such as: label catch, finally end // of [function | with | try] they come from disassembling process




[ Top ]



strip_empty_line [line 271]

void strip_empty_line( mixed $src)



[ Top ]



Documentation generated on Tue, 30 May 2006 20:14:11 +0000 by phpDocumentor 1.3.0RC4