# (MX) pausing the 'infinite menu'?

**URL:** https://forum.kirupa.com/t/mx-pausing-the-infinite-menu/103754
**Category:** Uncategorized
**Created:** [March 8, 2004, 11:54pm UTC](https://forum.kirupa.com/t/mx-pausing-the-infinite-menu/103754 "2004-03-08T23:54:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![valpez1](https://avatars.discourse-cdn.com/v4/letter/v/958977/32.png) [@valpez1](https://forum.kirupa.com/u/valpez1)
#### Post date: [March 8, 2004, 11:54pm UTC](https://forum.kirupa.com/t/mx-pausing-the-infinite-menu/103754/1 "2004-03-08T23:54:14Z")

</div>

Alright, this is my problem; i need to find a way to pause and start again from that same position the ‘infinite menu’ found here on kirupa  
[http://www.kirupa.com/developer/mx/infinite.htm](http://www.kirupa.com/developer/mx/infinite.htm)  
A friend of mine attempted to help me, and gave me some code to fiddle with. I did fiddle with it, but problem was, the code was for Flash MX 2004. So it didnt work on my MX. Here is the existing code i have, but doesn’t function (i.e. works fine when control\>Test Movie, but doesnt work when actual .swf from folder is opened)

cmdPause.onRelease = function() {  
if (\_root.Paused == true) {  
text = “pause”;  
\_root.Paused = false;  
} else {  
text = “play”;  
\_root.Paused = true;  
}  
};  
onLoad = function () {  
\_root.Paused = false;  
\_root.xcenter = 150;  
\_root.speed = 1/10;  
};  
MenuAnim.ScrollMenu.onEnterFrame = function() {  
var distance = \_root.\_xmouse-\_root.xcenter;  
if (\_root.Paused == false) {  
MenuAnim.ScrollMenu.\_x += (distance\*\_root.speed);  
if (MenuAnim.ScrollMenu.\_x\>0) {  
MenuAnim.ScrollMenu.\_x = -300;  
}  
if (MenuAnim.ScrollMenu.\_x\<-300) {  
MenuAnim.ScrollMenu.\_x = 0;  
}  
}  
};

Or…if you have your own theory on how i could get this to work, by all means! Thanks in advance everyone 😃
