// Events: Are Mouse clicks, Key presses, or a file loading. // The addEventListener listens for a mouseEvent called .Click // It then sends that data to the turnOnTv function forcing the // function to fire. The functin does not retrun any values so // we use :void. on_btn.addEventListener(MouseEvent.CLICK, turnOnTv); function turnOnTv(event:MouseEvent):void { animation_mc.play(); } |