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”);
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