update flash, add callback array for functions, fixed xml2json script