Flash AS3 Tutorials Center | Interesting Flash Animation Tutorials | Valuing Flash Animation Tutorials | Flash ActionScript and Animation Home

AS3 Beginner Tutorials | AS3 Basic Lessons | AS3 Valuing Courses | AS3 Components Tutorials | AS3 and PHP Interaction Tutorials
AS3 Practical Tutorials | AS3 Animation Techniques | AS3 Transition Effects Tutorials | AS3 Download Upload Files | AS3 Particle Systems
Communication Between Flash Movies with AS3 | AS3 and JavaScript interaction | AS3 Matrix Transformation | AS3 Physics Simulation Tutorials

Flash Slider Component ActionScript 3 Tutorial

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

Please update flash player to view this Flash ActionScript tutorial!

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.