Posted By

limonn on 08/08/06


Tagged


Versions (?)

dragger


 / Published in: ActionScript
 

URL: http://www.kirupa.com/developer/mx/slider.htm

como hacer un dragger con una linea y un arrow

  1. startDrag(lockCenter,left,up,right,bottom)
  2. this.startDrag(true,0,0,line._width,0);
  3.  
  4. -----------ahora el codigo-----------------
  5.  
  6. this.ratio=0 ;
  7. dragger.onPress=function(){
  8. this.startDrag(true,0,0,line._width,0);
  9. this.onEnterFrame=function(){
  10. ratio=Math.round(this._x*100/line._width) ;
  11. }
  12. }
  13. dragger.onRelease=dragger.onReleaseOutside=stopDrag;

Report this snippet  

You need to login to post a comment.