Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

Slider Component Tutorial

In this Flash and Actionscript 3.0 tutorial we learn how to program the slider component and access the value of what the user changes the slider to. The Slider component allows users to select a value by dragging a slider button between the two end points of the slider track. The value of the Slider component is determined by the relative location of the thumb between the end points of the slider, corresponding to the minimum and maximum values of the Slider component. import fl.events.SliderEvent; boobSlider_txt.text = "Boob Size: 5"; boobSlider.value = 5; boobSlider.addEventListener(SliderEvent.CHANGE, boobsResize); function boobsResize (event:SliderEvent):void { boobSlider_txt.text = "Boob Size: " + event.target.value; boobies.scaleX = event.target.value / 5; boobies.scaleY = event.target.value / 5; }
thumb

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