Home | Contact Us | Store

Flash Slider Component ActionScript 3 Tutorial

This Flash Component tutorial series show how to use Slider with Flash ActionScript 3.

Flash ActionScript component control tutorial example display here. Your flash player version is too old to see this Flash tutorial example!

Flash Tutorial Content:

The Flash Slider component lets users select a value by moving a slider thumb between the end points of the slider track. The current value of the Flash 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 Flash Slider component.

The finished Flash Movie of this tutorial is shown as above. Click on the above Flash Movie and play around.

Flash ActionScript Codes:

//Add EventListener to xAxis Slider
//Listen to the CHANGE of value of xAxis Slider
xAxis_sl.addEventListener(Event.CHANGE, xDirection);

 

function xDirection(evt:Event):void {

football_mc.x = evt.target.value;
output_txt.text = "The value of xAxis Slider is: " + evt.target.value;

}

 

//Add EventListener to yAxis Slider
//Listen to the CHANGE of value of yAxis Slider
yAxis_sl.addEventListener(Event.CHANGE, yDirection);

 

function yDirection(evt:Event):void {

football_mc.y = evt.target.value;
output_txt.text = "The value of yAxis Slider is: " + evt.target.value;

}

Download Flash Source File:

Flash Source File slider.fla

Remarks:

This Flash ActionScript tutorial shows how to use Flash Slider component.

ActionScript Component Control Tutorial