adding AS3 integration