# DuplicateMovieClip used in infinite dynamic menu?

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-used-in-infinite-dynamic-menu/213792>\
**Category:** flash\
**Created:** [January 23, 2007, 8:24am UTC](https://forum.kirupa.com/t/duplicatemovieclip-used-in-infinite-dynamic-menu/213792 "2007-01-23T08:24:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karmakat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/karmakat/32/476_2.png) [@karmakat](https://forum.kirupa.com/u/karmakat)\
**Post date:** [January 23, 2007, 8:24am UTC](https://forum.kirupa.com/t/duplicatemovieclip-used-in-infinite-dynamic-menu/213792/1 "2007-01-23T08:24:55Z")

</div>

Hi,

I am attempting to work with duplicateMovieClip to make my dynamic infinite menu work…er… infinitely. I tried some other methods but i think it’s impossible without duplicating movie clips since my menu is arrow controlled or jump to controlled.

Having said that… I have come up with some code that… does nothing. Anyone have any insight? what i am trying to do is duplicate this movie to appear on the right if the slider goes too far to the left, and vice versa. Eventually i’d like to add a remove clip function if it is offstage completely.

```auto
onClipEvent (enterFrame) {
	if (this._x < -300) {
        for (var i:Number = 0; i++;) {
		var mc3:MovieClip = duplicateMovieClip (this, "extraSlide"+i, 1);
	    mc3._x=400;
	    trace ("WTF");}
} else if (this._x > 100) {
        for (var i:Number = 0; i++;) {
		var mc4:MovieClip = duplicateMovieClip (this, "extraSlide"+i, 1);
	   mc4._x=-700;}}
}

```

Much appreciated if anyone could take a stab at letting me know where i am going wrong.

Thanks guys!

-aleks
