onClipEvent(construct){
 length = 125;
 horizontal = true;
 c = [0x9e8f6d,0xe6d8b8,0xe6d8b8,0x9e8f6d];
}

onClipEvent(load){
 setSlider(0,90,0); // only integer values are allowed. For decimal values value has to be divided manually
 onMove = function(v){ // value is sent automaticly when event occurs
  _root.txt1.text = 'Current value ' + v / 10;
 }
}