moved nativetext code from nme to flash to simplify bindings