actionscript version (todo)