Scrolling xml menu problem

I have a menu that I load in pictures, text and a url from an xml file. In the flash I make everything in emty movie clips. And now I want to make the menu move and I have succeed so far, but there are two more things that I would like to do, but I got now solution for it.

  1. The menu shall scroll automatic from the right to the left and when the last pictures showed it start from the begining again. If it´s only one product it shall not scroll.

  2. I don´t know how to make the menu recognize the width of the movieclip, now I have a x value.
    Ex. If I have two pictures that shall scroll between them, and if I have 6 pictures It shall be able to scroll between them.

I hope someone understand what I mean, and that someone could help me, I would by so grateful.

Best Regards
Christian

http://www.kirupa.com/developer/mx/infinite.htm
The coding in that sounds like what you’re lookin for.