I'm trying to make a graphic that slides across the screen depending where the mouse is. I've been using the flash mx advanced book to do so. The only thing is is that I want to make it loop so that it would just go on and on and on....

This is the actionscript that I have already: (its in the first frame of the root timeline)

_root.onEnterFrame = function() {
HOMEbrail._x = HOMEbrail._x+(.5*Stage.width-_xmouse)/10;
};

"HOMEbrail" is the instance of a movieclip that extends well beyond the sides of the frame.

The book just says to read chapter 9 but then it uses completely different examples in that chapter.

So, to recap, I would just like it to loop back and be infinate instead of just scrolling off the screen.

Thanks,
Tim