Ok i'm loading a txt file with this info in it.
Code:
tammy=jes,dean,fran,oct,simmy,blanch,drean
&talk=bright,dark,canning,prut,stenk,blast
&drift=tt,ba,br
I am using the load vars()
Code:
function LoadArr(file) {
arr_obj = new LoadVars();
arr_obj.load(file);
arr_obj.onLoad = function(success) {
if (success) {
buttons = new Array();
buttons.push(arr_obj);
trace(buttons);
} else {
trace("not loaded");
}
};
}
loadArr("arr.txt");
Now what I want to do is to dynamically create buttons from the variable names
tammy
talk
drift
then from the buttons I need to access the values of these variables.
[code]
tammy.onRelease=function(){
for (var i=0; i<tammy.length; i++) {
arr=tammy[i];
}
How in the hell can this be done.