# I'm going loopy

**URL:** https://forum.kirupa.com/t/im-going-loopy/217952
**Category:** flash
**Created:** [March 3, 2007, 9:09am UTC](https://forum.kirupa.com/t/im-going-loopy/217952 "2007-03-03T09:09:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)
#### Post date: [March 3, 2007, 9:09am UTC](https://forum.kirupa.com/t/im-going-loopy/217952/1 "2007-03-03T09:09:25Z")

</div>

I have another recent post on this forum about loops but I think it got a bit complex in what I was trying to do and how I was explaining it. So I’m going to try a different approach.

If anyone can help me with the correct syntax for what I am trying to do here and also if I’m going about it all wrong - please let me know. Heres the actionscript:

```auto

var myLv = new LoadVars();

	
myLv.sendAndLoad("buynowmodels.php", myLv, "POST");
myLv.onLoad = function(success)
	{		
				displayprices();
	}

function displayprices(){
	
for(x=0;x<myLv.n;x++) {
       
            new_mc = priceList.attachMovie("price_slot", "mc_"+x, x);
            new_mc.modelName.text = myLv["modelname"+(x)];
            new_mc._y = (150*x);
			
		
//this bit in particular with the Nv+x parts!!!

            var ["myNv"+x] = new LoadVars();
            ["myNv"+x]sendAndLoad("buynowread.php", "myNv"+x, "POST");
            ["myNv"+x]onLoad = function(success) {

            for(p=0;p<["myNv"+x]n;p++) {
				
           
            new_price= new_mc.listContainer.attachMovie("list_item1", "price_"+p, p);
            new_price._y = (25*p);
            }
			}
        }
    }

```

Thanks very much for any help.
