Hello,

I think the trouble is that the _root.slider._x of your slider
represent the center of your slider mc.

Check the way you limit the slider movement.

If you mask have a width of 200, and your slider of 50, then the value
of _root.slider._x vary from 25 to 175, not 0 to 200.








On 3/24/06, f a r i d | s i l v a | a b o i d <[EMAIL PROTECTED]> wrote:
> Hi list, in my poor english i will try to explain my need
>
> I made a scroll MC behind a mask, which is controlled horizontally by
> another MC (such as scrollbar) it works but not so fine, because the
> scrolling MC don't fit with de slider MC
>
> you can see it at
>
> http://www.e-foco.com.ar/prestigio/sucursales.php by clicking on "Nuevas suc."
>
>
> Actually I have:
>
> scrollSize = big MC width
> maskSize = mask width
> sliderSize = slider width => maskSize/scrollSize*100;
>
> for the movements are defined by:
>
> function updateScroll() {
>        var ratio = (scrollSize/maskSize *sliderSize /100);
>        _root.sucContainer._x = -_root.slider._x*ratio;
> }
>
> The issue is that when the slider reach it's right limit, the
> bigMC(sucContainer) still have a portion to show. I understand that my
> equation is not working fairly accurately but I couldn't see my error.
>
> Any idea will be appreciated
>
> Thanks a lot
>
>
> --
> SalU2
>
>
> f a r i d | s i l v a | a b o i d
> www.e-foco.com
> 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
>
_______________________________________________
[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

Reply via email to