modified:   as3/main.cpp