Components

In this example, the star will rotate based on the value of the slider.
Get Adobe Flash player
The code is shown below:

import flash.events.Event;
var speed:int=0;
chkStar.addEventListener(Event.CHANGE,changeStar);
function  changeStar(e:Event): void {
	star.visible=chkStar.selected;
}
sldSpeed.addEventListener(Event.CHANGE,changeSpeed);
function  changeSpeed(e:Event): void {
	speed=sldSpeed.value;
	lblSpeed.text=""+speed;
}
this.addEventListener(Event.ENTER_FRAME,frames);
function frames(e:Event):void {
	star.rotation+=speed;
}
Download the movie

NEXT: ComboBox: Select a Vehicle