I've created a flash movie which features a move clip that the user can click on and "throw" to the left or right. When the object moves, it leaves the stage and appears on the other side with the same velocity. I've applied friction and other properties so that the movie clips speed is in sync with the drag speed and it eventually slows down, like a wheel.

Here's the problem, I'd like to have the movie clip appear to scroll continuously.

In other words, imagine a continuously an image you can 'throw' to the left of right -- that appears to scroll continuously and eventually slow down and stopping.

Make sense? Picture the wheel from the price is right -lol.

Here's what I have so far:

init();

function init():Void
{
ball_mc = attachMovie("ball_mc", "ball_mc", 2);
ball_mc._x = Stage.width / 2;
ball_mc._y = Stage.height / 2;

vx = ball_mc._x - oldx;
dragging = false;
friction = 0.98;
top = 0;
left = 0;
bottom = Stage.height;
right = Stage.width;
vx = 0;
}

ball_mc.onPress = function()
{
ball_mc.startDrag(lockcenter,0,Stage.height / 2,Stage.width,Stage.height / 2 );
dragging = true;
oldx = ball_mc._x;
}
ball_mc.onRelease = function()
{
ball_mc.stopDrag();
dragging = false;
}
ball_mc.onReleaseOutside = function()
{
ball_mc.stopDrag();
dragging = false;
}

function onEnterFrame(Void):Void
{
if (!dragging)
{

vx *= friction;
ball_mc._x += vx;

if (ball_mc._x - ball_mc._width / 2 > right)
{
ball_mc._x = left - ball_mc._width / 2;

}
else if (ball_mc._x + ball_mc._width / 2 < left)
{
ball_mc._x = right + ball_mc._width / 2;

}
}
else
{
vx = ball_mc._x - oldx;
oldx = ball_mc._x;

}
}