i have the following 2 functions
function peopleOffBus():Void {
for (var i:Number = 0; i<21; i++) {
this["p"+i]._visible = false;
this["p"+i].id = i;
}
}
function peopleOnBus():Void {
trace("yo");
for (var i:Number = 0; i<21; i++) {
this["p"+i]._visible = true;
this["p"+i].id = i;
}
}
when i called the first function it works… peopleOffBus(); but then when i call the other function to make p visible true, the function peopleOnBus(); doesn’t work… it is calling the function but somehow my array is not working or something… not sure… any ideas?