# Scrolling xml menu problem

**URL:** <https://forum.kirupa.com/t/scrolling-xml-menu-problem/184641>\
**Category:** flash\
**Created:** [April 6, 2006, 2:42pm UTC](https://forum.kirupa.com/t/scrolling-xml-menu-problem/184641 "2006-04-06T14:42:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashChristian](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@FlashChristian](https://forum.kirupa.com/u/FlashChristian)\
**Post date:** [April 6, 2006, 2:42pm UTC](https://forum.kirupa.com/t/scrolling-xml-menu-problem/184641/1 "2006-04-06T14:42:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![simplistik](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/simplistik/32/7747_2.png) [@simplistik](https://forum.kirupa.com/u/simplistik)\
**Post date:** [April 6, 2006, 3:49pm UTC](https://forum.kirupa.com/t/scrolling-xml-menu-problem/184641/2 "2006-04-06T15:49:53Z")

</div>

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