don't worry, I figured it out using localToGlobal...

// right
this.scrollBtns_mc.right_mc.onRollOver = function ()
{
    this.onEnterFrame = function ()
    {
        var point = new Object();
         point.x = obj.scrollBoundary_mc._x;
         point.y = obj.scrollBoundary_mc._y;
        obj.scrollTarget_mc.localToGlobal (point);

        var xBoundary = -(((obj.scrollBoundary_mc._width *
obj.scrollScale) + 100) - obj.scrollWidth);

        // trace ("scrollBoundary_mc._x: " + obj.scrollBoundary_mc._x
+ " | scrollBoundary_mc._y: " + obj.scrollBoundary_mc._y);
        // trace ("point.x: " + point.x + " | point.y: " + point.y);
        // trace ("xBoundary: " + xBoundary + " | yBoundary: " + yBoundary);

        if (point.x >= xBoundary)
        {
            obj.scrollTarget_mc._x -= 10;
        }
        else
        {
            this.onEnterFrame = undefined;
        }
    };
};

jon


--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
_______________________________________________
[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