Thanks sixbras, your sugestion works in fine tunning, I'd solved it
using another equation
//original that doesn't works
function updateScroll() {
var ratio = (scrollSize/maskSize *sliderSize /100);
_root.sucContainer._x = -_root.slider._x*ratio;
}
//this one works
function updateScroll() {
var ratio = (scrollSize-maskSize )/(maskSize -sliderSize);
_root.sucContainer._x = -_root.slider._x*ratio+sliderSize/2;
}
--
SalU2
f a r i d | s i l v a | a b o i d
www.e-foco.com.ar
tel: +54 11 4115-0773
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com