Frank
06-12-2009, 02:24 PM
I can’t believe that I’m asking this. I have gotten this to work in the pass. So it seems that I am forgetting something, but what.
Here is the code.
var text_count = 0;
var text_spacing = 40;
test_array = new Array();
test_array[0] = "test1";
test_array[1] = "test01";
test_array[2] = "test2";
test_array[3] = "test02";
test_array[4] = "test3";
test_array[5] = "test03";
var array_length = test_array.length;
DisplayTest();
function DisplayTest(){
for (var i=0; i<array_length; i++){
var item_mc = test_movie.attachMovie(test_mov_btn,"item"+text_count, text_count);
item_mc._y = text_count * text_spacing;
text_count++;
item_mc.text_here.text = test_array[i];
}
}
test_movie is the instance name of the movie clip I want to load the test_mov_btn(that is what I call it in the linkage properties) movie clip into.
Hoping someone can help.
Here is the code.
var text_count = 0;
var text_spacing = 40;
test_array = new Array();
test_array[0] = "test1";
test_array[1] = "test01";
test_array[2] = "test2";
test_array[3] = "test02";
test_array[4] = "test3";
test_array[5] = "test03";
var array_length = test_array.length;
DisplayTest();
function DisplayTest(){
for (var i=0; i<array_length; i++){
var item_mc = test_movie.attachMovie(test_mov_btn,"item"+text_count, text_count);
item_mc._y = text_count * text_spacing;
text_count++;
item_mc.text_here.text = test_array[i];
}
}
test_movie is the instance name of the movie clip I want to load the test_mov_btn(that is what I call it in the linkage properties) movie clip into.
Hoping someone can help.