i got a school flash project where i need to access the _y properties of many movie clips buttons that set with name like sel 1 sel2 sel 3 and so on
the problem is i have 2 sets of those, one on the main timeline which i can access with “for” looped _root[“sel”+i]._y and one which is inside another movieclip
problem is i don’t know how to access the later using for loop can someone help me with that?
this is the script that i used to access the _y on the _root.selx
for (i=1; i<numberOfButtons+1; i++) {
if ((mySelection == i)&&(this._y != _root["sel"+i]._y)) {
this._y = _root["sel"+i]._y;
}
}
anyone can help? please
begging