works with flash target (non-nme project)