same api between js/flash,