Hi there,
Just wanted to ask a silly little question.
Say for instance I have a variable name … e.g. house0-6…car0-6 .door0-6
how do I add the number to the variable name such as house1 or car6 within a loop.
[AS]
var _d:Date = new Date();
for (var i:Number=1; i<=6;i++){
if (_d.day==i){
“DAY”+i.visible = true;
} else {
“DAY”+i.visible = false;
}
}
[/AS]
Thanks in advance:look: