var inputText: Number; submit_btn.addEventListener(MouseEvent.CLICK, playBtnClick); function playBtnClick(e: MouseEvent): void {box_mc.rotation = inputText if (inputText < 1) { box_mc.rotation = 5 } else {box_mc.rotation = 0 }}
question from:https://stackoverflow.com/questions/65917788/how-to-input-text-to-be-used-by-actionscript