I want to call a routine from my main timeline using a loop structure. I have nested the MC in a Scroll Pane and thus the prefix "_root.SP01.tmp_mc". The iPTx MC is one of many instances I need to scan through and update. Why does Flash tell me that "alias" is undefined?
Any resommendations for another technique? Am I mixing modes by adding a number to the string, or is a path actually a string?
for (i=1, I<=12, I++){
alias = this["_root.SP01.tmp_mc.iPT" + i];
trace(alias);
alias.mc01.gotoAndStop("off"
;
alias.mc02.gotoAndStop("on"
;
alias.mc03.gotoAndStop("off"
;
}
Thanks,
Any resommendations for another technique? Am I mixing modes by adding a number to the string, or is a path actually a string?
for (i=1, I<=12, I++){
alias = this["_root.SP01.tmp_mc.iPT" + i];
trace(alias);
alias.mc01.gotoAndStop("off"
alias.mc02.gotoAndStop("on"
alias.mc03.gotoAndStop("off"
}
Thanks,