[i]._visible
Below is my code. This dosen't seem to work even though capts are all fasle. Where's the fault?
var capts:Array = [purchaseH0, purchaseH1, purchaseH2, purchaseH3];
for(i=0; i<capts.length; i++){
_root["purchaseH"+i]._visible=false;
nextStep_btn.onRelease = function () {
if(capts._visible==false){
trace("invisible")
} else {
trace ("visible")
}
}
}
};