Hosting Solutions
mobile_logo Table of Contents

Button Component Tutorial

In this Flash AS3 instructional video and free fla source file download beginners can learn how to use the flash button component to dynamically create buttons, place buttons, and make button component instances toggle property work. There are more properties for the button component instance that you can research to pinpoint the exact functionality you require in your application when using the button component. import fl.controls.Button; var myButton:Button = new Button(); myButton.label = "Hide Clip"; = "btn1"; myButton.toggle = true; myButton.move(225, 30); addChild(myButton); myButton.addEventListener(Event.CHANGE, changeHandler); function changeHandler (event:Event):void { if (event.currentTarget.selected == true) { my_mc.visible = false; myButton.label = "Show Clip"; } else { my_mc.visible = true; myButton.label = "Hide Clip"; } }

Flash Videos

Component Programming

ScrollPane Component TutorialTextArea Component Tutorial 2TextArea Component TutorialSlider Component TutorialProgress Bar Component TutorialRadio Button Component TutorialUILoader Component TutorialNumeric Stepper Component TutorialList Component TutorialDataGrid Component TutorialComboBox Component TutorialColorPicker Component TutorialCheckBox Component TutorialButton Component TutorialCustom Slider Component Development