LSlider as3

[FONT=Courier New][SIZE=3][COLOR=black]example[/COLOR][/SIZE][/FONT]


[FONT=Courier New][SIZE=3][COLOR=black]package  
{
 import flash.display.*;
 import flash.events.*;
 import flash.geom.*;
 import lex.m.RTree;
 
 
 import lex.asComponent.LSlider;
 import lex.asComponent.style.LSliderStyle;
 import lex.LMath;
 
 /**
  * ...
  * @author Alex Lexcuk http://www.murmadillo.tut.su
  */
 public class DocCube extends Sprite
 {[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=3][COLOR=black]  private var sliderX:LSlider = new LSlider();
  private var sliderZ:LSlider = new LSlider();
  private var rtr:RTree;
  public function DocCube() 
  {
   addChild(rtr = new RTree());
   rtr.startPlay();
   rtr.x = -200;
   rtr.y = -350;
   addChild(sliderX);
   addChild(sliderZ);
   sliderZ.direction = LSliderStyle.DIRECTION_HORIZONTAL;
   sliderZ.setSize(200, 10);
   sliderX.setSize(200, 10);
   sliderZ.style.lineFillColor = 0x00FF40;
   sliderZ.style.gripFillColor = 0xFF0080;
   sliderZ.style.gripOutLineColor = 0xFF0000;
   sliderZ.style.tickInterval = 60;
   sliderX.style.tickInterval = 20;
   sliderZ.maximum = sliderX.maximum = 180;
   sliderZ.minimum = sliderX.minimum = -180;
   sliderZ.validateNow();
   sliderZ.x = 50;
   sliderZ.y = 5;
   sliderX.x = sliderX.y = 5;
   
   sliderX.addEventListener(Event.CHANGE, announceChange);
   sliderZ.addEventListener(Event.CHANGE, announceChange);
  }[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=3][COLOR=black]  private function announceChange(e:Event):void {
   rtr.setParamXRotation(sliderX.value);
   rtr.setParamZRotation(sliderZ.value);[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=3][COLOR=black]    trace(e.target.value);
  }
 }[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=3][COLOR=black]}[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=3][COLOR=black][/COLOR][/SIZE][/FONT] 
[FONT=Courier New][SIZE=3][COLOR=black][/COLOR][/SIZE][/FONT]