mattfarley
IS-IT--Management
I have about 70 variables loading into a flash project, they are all named EVS####
(ie: EVS1234, EVS1235, EVS1236, etc)
I want to manipulate each variable coming in. Is there a way to do a for each loop? Here is an example of my current code:
if (_lv.EVS2902 > 0) {
EVS2902.swapdepths(501);
EVS2902.plotter.nextFrame();
EVS2902.plotter.donotremove=true;
}
if (_lv.EVS3110 > 0) {
EVS3110.swapdepths(502);
EVS3110.plotter.nextFrame();
EVS3110.plotter.donotremove=true;
}
if (_lv.EVS3133 > 0) {
EVS3133.swapdepths(503);
EVS3133.plotter.nextFrame();
EVS3133.plotter.donotremove=true;
}
etc
etc
etc
I'd like to just have 1 For Each loop process all the variables. Is this possible?
Thanks!
-Matt
(ie: EVS1234, EVS1235, EVS1236, etc)
I want to manipulate each variable coming in. Is there a way to do a for each loop? Here is an example of my current code:
if (_lv.EVS2902 > 0) {
EVS2902.swapdepths(501);
EVS2902.plotter.nextFrame();
EVS2902.plotter.donotremove=true;
}
if (_lv.EVS3110 > 0) {
EVS3110.swapdepths(502);
EVS3110.plotter.nextFrame();
EVS3110.plotter.donotremove=true;
}
if (_lv.EVS3133 > 0) {
EVS3133.swapdepths(503);
EVS3133.plotter.nextFrame();
EVS3133.plotter.donotremove=true;
}
etc
etc
etc
I'd like to just have 1 For Each loop process all the variables. Is this possible?
Thanks!
-Matt