Barra è il clip che si sposta e mc1 e mc2 sono i pulsanti

Ciao

codice:
targetX=barra._x

barra.onEnterFrame=function(){
	X = _root.targetX-this._x; 
   this._x = this._x+X/5;
}
	

mc1.onPress=function(){
	
	targetX=this._x

}

mc2.onPress=function(){
	
	targetX=this._x

}