AS3 implementation