Ok, here’s the code:
loadVarsText = new loadVars();
loadVarsText.load(“http://www10.brinkster.com/jubbaorf/requiem/flashtest/text.txt”);
nPeople = 12
for(ii = 1; ii<=nPeople;ii++){
_ _ _ _ attachMovie(“buttonClip”, “copy”+ii, ii)
_ _ _ _ this[“copy”+ii]._x = 0
_ _ _ _ this[“copy”+ii]._y = this[“copy”+(ii-1)]._y + (this[“copy”+(ii-1)]._height)
_ _ _ _ this[“copy”+ii].nButton = this[“nPerson”+ii]
_ _ _ _ }
nButton is the variable name of the Text field. This code works when I have nPerson1, nPerson2, etc contained within the frame Actions, however, when I try to load in the text variables…its a noshow…Any help?
I also tried giving the text box the instance name nButton and doing:
this[“copy”+ii].nButton.text = this[“nPerson”+ii]
also had this:
loadVarsText = new loadVars();
loadVarsText.load(“http://www10.brinkster.com/jubbaorf/requiem/flashtest/text.txt”);
loadVarsText.onLoad = function (success){
if (success){
this[“copy”+ii].nButton = this[“nPerson”+ii]
}
}
nPeople = 12
for(ii = 1; ii<=nPeople;ii++){
attachMovie(“buttonClip”, “copy”+ii, ii)
this[“copy”+ii]._x = 0
this[“copy”+ii]._y = this[“copy”+(ii-1)]._y + (this[“copy”+(ii-1)]._height)
this[“copy”+ii].nButton = this[“nPerson”+ii]
}