# Problem whit loadvar

**URL:** <https://forum.kirupa.com/t/problem-whit-loadvar/218002>\
**Category:** flash\
**Created:** [March 4, 2007, 3:04am UTC](https://forum.kirupa.com/t/problem-whit-loadvar/218002 "2007-03-04T03:04:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmb](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bmb](https://forum.kirupa.com/u/bmb)\
**Post date:** [March 4, 2007, 3:04am UTC](https://forum.kirupa.com/t/problem-whit-loadvar/218002/1 "2007-03-04T03:04:54Z")

</div>

I load some vars from a external PHP file and try that a movieclip that will be repeat 5 times receve the var that are inside objectN.

I want that mc1 get object1 vars, mc2 get object2 …

But i cant get the result that i want. can someone help me

catalog = new LoadVars();  
// Load the vars from the external Php file  
catalog.load(“[http://localhost/teste/Select.php](http://localhost/teste/Select.php)”);  
catalog.onLoad = function(success) {

\_root.object1 = catalog.getBytesTotal();  
for (this.a=1; this.a\<=5; this.a++) {  
// Create an array (ObjectN) for each object in the catalog  
catalog[“object”+this.a] = catalog[“noticias”+(this.a)].split("|");

selected = 1; //test var that i will need late to run the vector  
delete (this[“noticias”+this.a]);  
}

///tryng repeat the movie clip that need to receved the var from catalog.object

for (var i = 1; i\<=3; i++) {  
mc.duplicateMovieClip(“mc”+i, i, {\_x:0, \_y:67\*i});

//i get a error in there im tring creat mc1 / mc2 /mc3  
[“mc”+i].curta.text = \_root.catalog[“object”+i][2]

}  
};

ps:sorry my bad english
