Question
tracing the next variable?
subMenuItem._visible = 0;
function theMenu(n) {
var newY = 0;
var newX = 0;
for (var i = 0; i<n; i++) {
duplicateMovieClip("subMenuItem", "selectc"+i, i);
this["selectc"+i]._x = newX;
this["selectc"+i].selectcText = _parent.subMenu ;
this["selectc"+i].ivar = i;
myMenuList.push(String("_level0.menu01.selectc"));
newX = newX+17;
}
}
this is a script i'm using to duplicate a button for each item in a menu, each button is allocated a 'selectcText' variable (which is taken from an external txt file).
on each frame of my _root. timeline i need to trace the next selectcText,
i.e. on frame 9, i need to trace the selectcText allocated to button selectc1
on frame 10, i need to trace the selectcText allocated to button selectc2
on frame 11, i need to trace the selectcText allocated to button selectc3
etc...
hope that makes sense. can anyone figure out how i would perform the trace?
function theMenu(n) {
var newY = 0;
var newX = 0;
for (var i = 0; i<n; i++) {
duplicateMovieClip("subMenuItem", "selectc"+i, i);
this["selectc"+i]._x = newX;
this["selectc"+i].selectcText = _parent.subMenu ;
this["selectc"+i].ivar = i;
myMenuList.push(String("_level0.menu01.selectc"));
newX = newX+17;
}
}
this is a script i'm using to duplicate a button for each item in a menu, each button is allocated a 'selectcText' variable (which is taken from an external txt file).
on each frame of my _root. timeline i need to trace the next selectcText,
i.e. on frame 9, i need to trace the selectcText allocated to button selectc1
on frame 10, i need to trace the selectcText allocated to button selectc2
on frame 11, i need to trace the selectcText allocated to button selectc3
etc...
hope that makes sense. can anyone figure out how i would perform the trace?