Update AS registerToAnEvent()