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:
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.