Working Version on C++ and Flash, It's also working on AS3 now

i also merged it with the development branch,

travis result is here: https://travis-ci.org/frabbit/haxe-1/builds/17146334