Mistři v programování na #hovnokod

JavaScript #118

z=1;
b1.onRelease = function() {
    if(xo1._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo1._alpha=100;
    xo1.gotoAndStop(z);}
};

b2.onRelease = function() {
    if(xo2._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo2._alpha=100;
    xo2.gotoAndStop(z);}
};

b3.onRelease = function() {
    if(xo3._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo3._alpha=100;
    xo3.gotoAndStop(z);}
};

b4.onRelease = function() {
    if(xo4._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo4._alpha=100;
    xo4.gotoAndStop(z);}
};

b5.onRelease = function() {
    if(xo5._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo5._alpha=100;
    xo5.gotoAndStop(z);}
};

b6.onRelease = function() {
    if(xo6._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo6._alpha=100;
    xo6.gotoAndStop(z);}
};

b7.onRelease = function() {
    if(xo7._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo7._alpha=100;
    xo7.gotoAndStop(z);}
};

b8.onRelease = function() {
    if(xo8._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo8._alpha=100;
    xo8.gotoAndStop(z);}
};

b9.onRelease = function() {
    if(xo9._alpha!=100){
    z+=1;
    if(z>2){z=1}
        xo9._alpha=100;
    xo9.gotoAndStop(z);}
};

Anonymous,