For and with statements

Hey can any tell me why this is not working?
It sould correspond with the maskbttn being on frame 2
that the dot will be visilbe


_root.validate.onPress = function() {
    for (i=1; i<19; i++) {
        with (["maskbttn"+i]._currentframe == 2) {
            _root["dot"+i]._alpha = 100;
        }
    }
};


or in a long version



_root.validate.onPress = function() {
       if maskbttn1._currentframe == 2) {
           _root.dot1._alpha = 100;

   if maskbttn2._currentframe == 2) {
            _root.dot2._alpha = 100;

   if maskbttn3._currentframe == 2) {
            _root.dot3._alpha = 100;