HOME | DD

GrappleJuice4percent — Proper Tool by-nc-nd

Published: 2023-04-19 02:49:01 +0000 UTC; Views: 228; Favourites: 8; Downloads: 0
Redirect to original
Description *You should DOWNLOAD the .swf file to check it out;

var eL1=1;var eL2=1; var eL3=1; var eR1=1;var eR2=1; var eR3=1;
var todL1=0;var todL2=0;var todL3=0;var todL4=0;var todL5=0;var todL6=0;var todL7=0;var todL8=0;
var todR1=0;var todR2=0;var todR3=0;var todR4=0;var todR5=0;var todR6=0;var todR7=0;var todR8=0;
var nip=0; var numax=2; var nLU=1;var nLD=1;var nRU=1;var nRD=1;
stattic.numLU.gotoAndStop(2) ;stattic.numLD.gotoAndStop(2) ;stattic.numRU.gotoAndStop(2) ;stattic.numRD.gotoAndStop(2) ;
var enilOL1=0;var enilOL2=0;var enilOL3=0;var enilOL4=0;var enilOL5=0;var enilOL6=0;
var enilXL1=0;var enilXL2=0;var enilXL3=0;var enilXL4=0;var enilXL5=0;var enilXL6=0;
var xehL1=0;var xehL2=0;var xehL3=0;var xehL4=0;var xehL5=0;var xehL6=0;
var enilOR1=0;var enilOR2=0;var enilOR3=0;var enilOR4=0;var enilOR5=0;var enilOR6=0;
var enilXR1=0;var enilXR2=0;var enilXR3=0;var enilXR4=0;var enilXR5=0;var enilXR6=0;
var xehR1=0;var xehR2=0;var xehR3=0;var xehR4=0;var xehR5=0;var xehR6=0;

//DISPLAY
cross.addEventListener(MouseEvent.CLICK, cro)
function cro(event:MouseEvent):void{if(nip==16&&cross.currentFrame!==29){cross.gotoAndPlay(22) ; buttonLKU.visible=buttonLKD.visible=buttonRKU.visible=buttonRKD.visible=true;}else{}
if(todL1==1&&todL2==1&&todL3==1&&todL4==1&&todL5==1&&todL6==1&&todL7==1&&todL8==1){stattic.triL.play() ; buttonLSU.visible=buttonLSD.visible=true;
    if(buttonLNU.visible==true){stattic.pullLU.play() ;}else if(buttonLNU.visible==false&&stattic.pullLU.currentFrame!==1){stattic.pullLU.play()}
    if(buttonLND.visible==true){stattic.pullLD.play() ;}else if(buttonLND.visible==false&&stattic.pullLD.currentFrame!==1){stattic.pullLD.play()}
    }else{buttonLKU.visible=buttonLKD.visible=false}
if(todR1==1&&todR2==1&&todR3==1&&todR4==1&&todR5==1&&todR6==1&&todR7==1&&todR8==1){stattic.triR.play() ; buttonRSU.visible=buttonRSD.visible=true;
    if(buttonRNU.visible==true){stattic.pullRU.play() ;}else if(buttonRNU.visible==false&&stattic.pullRU.currentFrame!==1){stattic.pullRU.play()}
    if(buttonRND.visible==true){stattic.pullRD.play() ;}else if(buttonRND.visible==false&&stattic.pullRD.currentFrame!==1){stattic.pullRD.play()}
    }else{buttonRKU.visible=buttonRKD.visible=false}
}

cropL.addEventListener(MouseEvent.CLICK, eLe)
function eLe(event:MouseEvent):void{
         if(stattic.sideL.y==6) {eL1+=1;
             if(eL1==2){stattic.eL.gotoAndStop(2)}
        else if(eL1==3){stattic.eL.gotoAndStop(3)}
        else if(eL1==4){stattic.eL.gotoAndStop(4)}
        else if(eL1==5){stattic.eL.gotoAndStop(5)}
        else if(eL1==6){stattic.eL.gotoAndStop(1) ;eL1=1}}
    else if(stattic.sideL.y==15){eL2+=1;
             if(eL2==2){stattic.eL.gotoAndStop(2)}
        else if(eL2==3){stattic.eL.gotoAndStop(3)}
        else if(eL2==4){stattic.eL.gotoAndStop(4)}
        else if(eL2==5){stattic.eL.gotoAndStop(5)}
        else if(eL2==6){stattic.eL.gotoAndStop(1) ;eL2=1}}
    else if(stattic.sideL.y==24){eL3+=1;
             if(eL3==2){stattic.eL.gotoAndStop(2)}
        else if(eL3==3){stattic.eL.gotoAndStop(3)}
        else if(eL3==4){stattic.eL.gotoAndStop(4)}
        else if(eL3==5){stattic.eL.gotoAndStop(5)}
        else if(eL3==6){stattic.eL.gotoAndStop(1) ;eL3=1}}
}
cropR.addEventListener(MouseEvent.CLICK, eRe)
function eRe(event:MouseEvent):void{
         if(stattic.sideR.y==6) {eR1+=1;
             if(eR1==2){stattic.eR.gotoAndStop(2)}
        else if(eR1==3){stattic.eR.gotoAndStop(3)}
        else if(eR1==4){stattic.eR.gotoAndStop(4)}
        else if(eR1==5){stattic.eR.gotoAndStop(5)}
        else if(eR1==6){stattic.eR.gotoAndStop(1) ;eR1=1}}
    else if(stattic.sideR.y==15){eR2+=1;
             if(eR2==2){stattic.eR.gotoAndStop(2)}
        else if(eR2==3){stattic.eR.gotoAndStop(3)}
        else if(eR2==4){stattic.eR.gotoAndStop(4)}
        else if(eR2==5){stattic.eR.gotoAndStop(5)}
        else if(eR2==6){stattic.eR.gotoAndStop(1) ;eR2=1}}
    else if(stattic.sideR.y==24){eR3+=1;
             if(eR3==2){stattic.eR.gotoAndStop(2)}
        else if(eR3==3){stattic.eR.gotoAndStop(3)}
        else if(eR3==4){stattic.eR.gotoAndStop(4)}
        else if(eR3==5){stattic.eR.gotoAndStop(5)}
        else if(eR3==6){stattic.eR.gotoAndStop(1) ;eR3=1}}
}

centeL.addEventListener(MouseEvent.CLICK, cL)
function cL(event:MouseEvent):void{centeL.play() ; if(stattic.gLow.currentFrame==stattic.gRow.currentFrame){cross.gotoAndPlay(12)}}
centeR.addEventListener(MouseEvent.CLICK, cR)
function cR(event:MouseEvent):void{centeR.play() ; if(stattic.gLow.currentFrame==stattic.gRow.currentFrame){cross.gotoAndPlay(12)}}

flipLU.addEventListener(MouseEvent.CLICK, fLU)
function fLU(event:MouseEvent):void{if(nLU>nRU){flipLU.play()}else if(nLUflipLD.addEventListener(MouseEvent.CLICK, fLD)
function fLD(event:MouseEvent):void{if(nLD>nRD){flipLD.play()}else if(nLDflipRU.addEventListener(MouseEvent.CLICK, fRU)
function fRU(event:MouseEvent):void{if(nLU>nRU){flipLU.play()}else if(nLUflipRD.addEventListener(MouseEvent.CLICK, fRD)
function fRD(event:MouseEvent):void{if(nLD>nRD){flipLD.play()}else if(nLD
//BUTTON

buttonU.addEventListener(MouseEvent.CLICK, bU)
function bU(event:MouseEvent):void{stattic.forkU.play() ; stattic.kapLU.visible=stattic.kapRU.visible=true;
    if(buttonLNU.visible==false){buttonLNU.visible=true;stattic.corneL.play() ;}else if(buttonLNU.visible==true){buttonLNU.visible=false;stattic.corneL.play() ;}
    if(buttonRNU.visible==false){buttonRNU.visible=true;stattic.corneR.play() ;}else if(buttonRNU.visible==true){buttonRNU.visible=false;stattic.corneR.play() ;}
    
        if(stattic.eL.currentFrame==1)  {if(stattic.eR.currentFrame==1){cropL.play() ;cropR.play()}
                                    else if(stattic.eR.currentFrame==2){cropL.gotoAndPlay(13) ;cropR.play()}
                                    else if(stattic.eR.currentFrame==3){cropL.play() ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==4){cropL.gotoAndPlay(13) ;cropR.play()}
                                    else if(stattic.eR.currentFrame==5){cropL.gotoAndPlay(13) ;cropR.gotoAndPlay(13)}}
                                    
    else if(stattic.eL.currentFrame==2) {if(stattic.eR.currentFrame==1){cropL.play() ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==2){cropL.play() ;cropR.play()}
                                    else if(stattic.eR.currentFrame==3){cropL.play() ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==4){cropL.gotoAndPlay(13) ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==5){cropL.gotoAndPlay(13) ;cropR.play()}}
                                    
    else if(stattic.eL.currentFrame==3) {if(stattic.eR.currentFrame==1){cropL.play() ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==2){cropL.gotoAndPlay(13) ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==3){cropL.play() ;cropR.play()}
                                    else if(stattic.eR.currentFrame==4){cropL.play() ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==5){cropL.gotoAndPlay(13) ;cropR.play()}}
    
    else if(stattic.eL.currentFrame==4) {if(stattic.eR.currentFrame==1){cropL.gotoAndPlay(13) ;cropR.play()}
                                    else if(stattic.eR.currentFrame==2){cropL.gotoAndPlay(13) ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==3){cropL.gotoAndPlay(13) ;cropR.play()}
                                    else if(stattic.eR.currentFrame==4){cropL.play() ;cropR.play()}
                                    else if(stattic.eR.currentFrame==5){cropL.gotoAndPlay(13) ;cropR.play()}}
    
    else if(stattic.eL.currentFrame==5) {if(stattic.eR.currentFrame==1){cropL.gotoAndPlay(13) ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==2){cropL.gotoAndPlay(13) ;cropR.play()}
                                    else if(stattic.eR.currentFrame==3){cropL.gotoAndPlay(13) ;cropR.play()}
                                    else if(stattic.eR.currentFrame==4){cropL.play() ;cropR.gotoAndPlay(13)}
                                    else if(stattic.eR.currentFrame==5){cropL.play() ;cropR.play()}}
    }
buttonD.addEventListener(MouseEvent.CLICK, bD)
function bD(event:MouseEvent):void{stattic.forkD.play() ; stattic.kapLD.visible=stattic.kapRD.visible=true;
    if(buttonLND.visible==false){buttonLND.visible=true;stattic.lowL.play() ;}else if(buttonLND.visible==true){buttonLND.visible=false;stattic.lowL.play() ;}
    if(buttonRND.visible==false){buttonRND.visible=true;stattic.lowR.play() ;}else if(buttonRND.visible==true){buttonRND.visible=false;stattic.lowR.play() ;}
    }

buttonL1.addEventListener(MouseEvent.CLICK, bL1)
function bL1(event:MouseEvent):void{stattic.sideL.y=6; if(eL1==1){stattic.eL.gotoAndStop(1) ;}else if(eL1==2){stattic.eL.gotoAndStop(2)}else if(eL1==3){stattic.eL.gotoAndStop(3)}else if(eL1==4){stattic.eL.gotoAndStop(4)}else if(eL1==5){stattic.eL.gotoAndStop(5)}
}
buttonL2.addEventListener(MouseEvent.CLICK, bL2)
function bL2(event:MouseEvent):void{stattic.sideL.y=15; if(eL2==1){stattic.eL.gotoAndStop(1) ;}else if(eL2==2){stattic.eL.gotoAndStop(2)}else if(eL2==3){stattic.eL.gotoAndStop(3)}else if(eL2==4){stattic.eL.gotoAndStop(4)}else if(eL2==5){stattic.eL.gotoAndStop(5)}
}
buttonL3.addEventListener(MouseEvent.CLICK, bL3)
function bL3(event:MouseEvent):void{stattic.sideL.y=24; if(eL3==1){stattic.eL.gotoAndStop(1) ;}else if(eL3==2){stattic.eL.gotoAndStop(2)}else if(eL3==3){stattic.eL.gotoAndStop(3)}else if(eL3==4){stattic.eL.gotoAndStop(4)}else if(eL3==5){stattic.eL.gotoAndStop(5)}
}

buttonLNU.addEventListener(MouseEvent.CLICK, bLNU)
function bLNU(event:MouseEvent):void{
         if(numax==3&&nLU<2){nLU+=1;nLD-=1; stattic.numLU.nextFrame() ;stattic.numLD.prevFrame() ;}
    else if(numax==4&&nLU<3){nLU+=1;nLD-=1; stattic.numLU.nextFrame() ;stattic.numLD.prevFrame() ;}
    else if(numax==5&&nLU<4){nLU+=1;nLD-=1; stattic.numLU.nextFrame() ;stattic.numLD.prevFrame() ;}
    else if(numax==6&&nLU<5){nLU+=1;nLD-=1; stattic.numLU.nextFrame() ;stattic.numLD.prevFrame() ;}
    else if(numax==7&&nLU<6){nLU+=1;nLD-=1; stattic.numLU.nextFrame() ;stattic.numLD.prevFrame() ;}
    else if(numax==8&&nLU<7){nLU+=1;nLD-=1; stattic.numLU.nextFrame() ;stattic.numLD.prevFrame() ;}
    else if(numax==9&&nLU<8){nLU+=1;nLD-=1; stattic.numLU.nextFrame() ;stattic.numLD.prevFrame() ;}
    else if(numax==10&&nLU<9){nLU+=1;nLD-=1; stattic.numLU.nextFrame() ;stattic.numLD.prevFrame() ;}
    else{}}
buttonLND.addEventListener(MouseEvent.CLICK, bLND)
function bLND(event:MouseEvent):void{
         if(numax==3&&nLD<2){nLD+=1;nLU-=1; stattic.numLD.nextFrame() ;stattic.numLU.prevFrame() ;}
    else if(numax==4&&nLD<3){nLD+=1;nLU-=1; stattic.numLD.nextFrame() ;stattic.numLU.prevFrame() ;}
    else if(numax==5&&nLD<4){nLD+=1;nLU-=1; stattic.numLD.nextFrame() ;stattic.numLU.prevFrame() ;}
    else if(numax==6&&nLD<5){nLD+=1;nLU-=1; stattic.numLD.nextFrame() ;stattic.numLU.prevFrame() ;}
    else if(numax==7&&nLD<6){nLD+=1;nLU-=1; stattic.numLD.nextFrame() ;stattic.numLU.prevFrame() ;}
    else if(numax==8&&nLD<7){nLD+=1;nLU-=1; stattic.numLD.nextFrame() ;stattic.numLU.prevFrame() ;}
    else if(numax==9&&nLD<8){nLD+=1;nLU-=1; stattic.numLD.nextFrame() ;stattic.numLU.prevFrame() ;}
    else if(numax==10&&nLD<9){nLD+=1;nLU-=1; stattic.numLD.nextFrame() ;stattic.numLU.prevFrame() ;}
    else{}}

buttonLKU.addEventListener(MouseEvent.CLICK, bLKU)
function bLKU(event:MouseEvent):void{if(stattic.kapLU.currentFrame==1){stattic.kapLU.nextFrame()}else if(stattic.kapLU.currentFrame==2){stattic.kapLU.prevFrame()}}
buttonLKD.addEventListener(MouseEvent.CLICK, bLKD)
function bLKD(event:MouseEvent):void{if(stattic.kapLD.currentFrame==1){stattic.kapLD.nextFrame()}else if(stattic.kapLD.currentFrame==2){stattic.kapLD.prevFrame()}}

buttonLSU.addEventListener(MouseEvent.CLICK, bLSU)
function bLSU(event:MouseEvent):void{stattic.gLow.nextFrame()}
buttonLSD.addEventListener(MouseEvent.CLICK, bLSD)
function bLSD(event:MouseEvent):void{if(stattic.gLow.currentFrame==1){stattic.gLow.gotoAndStop(32)}else{stattic.gLow.prevFrame() ;}}

buttonLT.addEventListener(MouseEvent.CLICK, bLT)
function bLT(event:MouseEvent):void{if(buttonLT.currentFrame==1){buttonLT.nextFrame() ;
    dotL1.visible=dotL2.visible=dotL3.visible=dotL4.visible=dotL5.visible=dotL6.visible=dotL0.visible=true}
else if(buttonLT.currentFrame==2){buttonLT.prevFrame() ;
    dotL1.visible=dotL2.visible=dotL3.visible=dotL4.visible=dotL5.visible=dotL6.visible=dotL0.visible=false}
}

//buttonR1//buttonR2//buttonR3
//buttonRNU//buttonRND
//buttonRKU
//buttonRSU
//buttonRT

buttonSL1.addEventListener(MouseEvent.CLICK,  bSL1)
function bSL1(event:MouseEvent):void{if(todL1==0){todL1=1; stattic.pin01.visible=true;nip+=1;}else if(todL1==1){todL1=0; stattic.pin01.visible=false;nip-=1;}}

//buttonSL2//buttonSL3//buttonSL4//buttonSL5//buttonSL6//buttonSR7//buttonSL8
//buttonSR1//buttonSR2//buttonSR3//buttonSR4//buttonSR5//buttonSR6//buttonSR7//buttonSR8

buttonB1.addEventListener(MouseEvent.CLICK, bB1)
function bB1(event:MouseEvent):void{if(buttonB1.currentFrame==1){cross.gotoAndPlay(2) ;buttonB1.nextFrame() ;
    numax=3; nLU=2;nLD=1; nRU=2;nRD=1;
    stattic.numLU.gotoAndStop(3) ;stattic.numLD.gotoAndStop(2) ;stattic.numRU.gotoAndStop(3) ;stattic.numRD.gotoAndStop(2) ;
}
else if(buttonB1.currentFrame==2){buttonB1.prevFrame() ;buttonB2.prevFrame() ;buttonB3.prevFrame() ;buttonB4.prevFrame() ;buttonB5.prevFrame() ;buttonB6.prevFrame() ;buttonB7.prevFrame() ;buttonB8.prevFrame() ;
    numax=2; nLU=1;nLD=1; nRU=1;nRD=1;
    stattic.numLU.gotoAndStop(2) ;stattic.numLD.gotoAndStop(2) ;stattic.numRU.gotoAndStop(2) ;stattic.numRD.gotoAndStop(2) ;    
}}
//buttonB2//buttonB3//buttonB4//buttonB5//buttonB6//buttonB7//buttonB8

//DOT

dotL1.addEventListener(MouseEvent.CLICK,  d1L)
function d1L(event:MouseEvent):void{if(dotL1.currentFrame==2){dotL1.gotoAndStop(1) ;
    if(enilOL6==1){stattic.lineOL6.gotoAndStop(1) ;enilOL6=0}
    if(enilOL1==1){stattic.lineOL1.gotoAndStop(1) ;enilOL1=0}
    if(enilXL1==1){stattic.lineXL1.gotoAndStop(1) ;enilXL1=0}
    if(xehL1==1){stattic.hexL1.gotoAndStop(1) ;xehL1=0;buttonLNU.visible=false}
    if(xehL6==1){stattic.hexL6.gotoAndStop(1) ;xehL6=0;buttonLSU.visible=false}
}
else if(dotL1.currentFrame==1){dotL1.gotoAndStop(2) ;
    if(dotL6.currentFrame==2){stattic.lineOL6.gotoAndStop(2) ;enilOL6=1}
    if(dotL2.currentFrame==2){stattic.lineOL1.gotoAndStop(2) ;enilOL1=1}
    if(dotL0.currentFrame==2){stattic.lineXL1.gotoAndStop(2) ;enilXL1=1}
    if(dotL2.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL1.gotoAndStop(2) ;xehL1=1;buttonLNU.visible=true}
    if(dotL6.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL6.gotoAndStop(2) ;xehL6=1;buttonLSU.visible=true}
}}
dotL2.addEventListener(MouseEvent.CLICK,  d2L)
function d2L(event:MouseEvent):void{if(dotL2.currentFrame==2){dotL2.gotoAndStop(1) ;
    if(enilOL1==1){stattic.lineOL1.gotoAndStop(1) ;enilOL1=0}
    if(enilOL2==1){stattic.lineOL2.gotoAndStop(1) ;enilOL2=0}
    if(enilXL2==1){stattic.lineXL2.gotoAndStop(1) ;enilXL2=0}
    if(xehL1==1){stattic.hexL1.gotoAndStop(1) ;xehL1=0;buttonLNU.visible=false}
    if(xehL2==1){stattic.hexL2.gotoAndStop(1) ;xehL2=0;buttonLKU.visible=false}
}
else if(dotL2.currentFrame==1){dotL2.gotoAndStop(2) ;
    if(dotL1.currentFrame==2){stattic.lineOL1.gotoAndStop(2) ;enilOL1=1}
    if(dotL3.currentFrame==2){stattic.lineOL2.gotoAndStop(2) ;enilOL2=1}
    if(dotL0.currentFrame==2){stattic.lineXL2.gotoAndStop(2) ;enilXL2=1}
    if(dotL1.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL1.gotoAndStop(2) ;xehL1=1;buttonLNU.visible=true}
    if(dotL3.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL2.gotoAndStop(2) ;xehL2=1;buttonLKU.visible=true}
}}
dotL3.addEventListener(MouseEvent.CLICK,  d3L)
function d3L(event:MouseEvent):void{if(dotL3.currentFrame==2){dotL3.gotoAndStop(1) ;
    if(enilOL2==1){stattic.lineOL2.gotoAndStop(1) ;enilOL2=0}
    if(enilOL3==1){stattic.lineOL3.gotoAndStop(1) ;enilOL3=0}
    if(enilXL3==1){stattic.lineXL3.gotoAndStop(1) ;enilXL3=0}
    if(xehL2==1){stattic.hexL2.gotoAndStop(1) ;xehL2=0;buttonLKU.visible=false}
    if(xehL3==1){stattic.hexL3.gotoAndStop(1) ;xehL3=0;buttonLKD.visible=false}
}
else if(dotL3.currentFrame==1){dotL3.gotoAndStop(2) ;
    if(dotL2.currentFrame==2){stattic.lineOL2.gotoAndStop(2) ;enilOL2=1}
    if(dotL4.currentFrame==2){stattic.lineOL3.gotoAndStop(2) ;enilOL3=1}
    if(dotL0.currentFrame==2){stattic.lineXL3.gotoAndStop(2) ;enilXL3=1}
    if(dotL2.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL2.gotoAndStop(2) ;xehL2=1;buttonLKU.visible=true}
    if(dotL4.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL3.gotoAndStop(2) ;xehL3=1;buttonLKD.visible=true}
}}
dotL4.addEventListener(MouseEvent.CLICK,  d4L)
function d4L(event:MouseEvent):void{if(dotL4.currentFrame==2){dotL4.gotoAndStop(1) ;
    if(enilOL3==1){stattic.lineOL3.gotoAndStop(1) ;enilOL3=0}
    if(enilOL4==1){stattic.lineOL4.gotoAndStop(1) ;enilOL4=0}
    if(enilXL4==1){stattic.lineXL4.gotoAndStop(1) ;enilXL4=0}
    if(xehL3==1){stattic.hexL3.gotoAndStop(1) ;xehL3=0;buttonLKD.visible=false}
    if(xehL4==1){stattic.hexL4.gotoAndStop(1) ;xehL4=0;buttonLND.visible=false}
}
else if(dotL4.currentFrame==1){dotL4.gotoAndStop(2) ;
    if(dotL3.currentFrame==2){stattic.lineOL3.gotoAndStop(2) ;enilOL3=1}
    if(dotL5.currentFrame==2){stattic.lineOL4.gotoAndStop(2) ;enilOL4=1}
    if(dotL0.currentFrame==2){stattic.lineXL4.gotoAndStop(2) ;enilXL4=1}
    if(dotL3.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL3.gotoAndStop(2) ;xehL3=1;buttonLKD.visible=true}
    if(dotL5.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL4.gotoAndStop(2) ;xehL4=1;buttonLND.visible=true}
}}
dotL5.addEventListener(MouseEvent.CLICK,  d5L)
function d5L(event:MouseEvent):void{if(dotL5.currentFrame==2){dotL5.gotoAndStop(1) ;
    if(enilOL4==1){stattic.lineOL4.gotoAndStop(1) ;enilOL4=0}
    if(enilOL5==1){stattic.lineOL5.gotoAndStop(1) ;enilOL5=0}
    if(enilXL5==1){stattic.lineXL5.gotoAndStop(1) ;enilXL5=0}
    if(xehL4==1){stattic.hexL4.gotoAndStop(1) ;xehL4=0;buttonLND.visible=false}
    if(xehL5==1){stattic.hexL5.gotoAndStop(1) ;xehL5=0;buttonLSD.visible=false}
}
else if(dotL5.currentFrame==1){dotL5.gotoAndStop(2) ;
    if(dotL4.currentFrame==2){stattic.lineOL4.gotoAndStop(2) ;enilOL4=1}
    if(dotL6.currentFrame==2){stattic.lineOL5.gotoAndStop(2) ;enilOL5=1}
    if(dotL0.currentFrame==2){stattic.lineXL5.gotoAndStop(2) ;enilXL5=1}
    if(dotL4.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL4.gotoAndStop(2) ;xehL4=1;buttonLND.visible=true}
    if(dotL6.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL5.gotoAndStop(2) ;xehL5=1;buttonLSD.visible=true}
}}
dotL6.addEventListener(MouseEvent.CLICK,  d6L)
function d6L(event:MouseEvent):void{if(dotL6.currentFrame==2){dotL6.gotoAndStop(1) ;
    if(enilOL5==1){stattic.lineOL5.gotoAndStop(1) ;enilOL5=0}
    if(enilOL6==1){stattic.lineOL6.gotoAndStop(1) ;enilOL6=0}
    if(enilXL6==1){stattic.lineXL6.gotoAndStop(1) ;enilXL6=0}
    if(xehL5==1){stattic.hexL5.gotoAndStop(1) ;xehL5=0;buttonLSD.visible=false}
    if(xehL6==1){stattic.hexL6.gotoAndStop(1) ;xehL6=0;buttonLSU.visible=false}
}
else if(dotL6.currentFrame==1){dotL6.gotoAndStop(2) ;
    if(dotL5.currentFrame==2){stattic.lineOL5.gotoAndStop(2) ;enilOL5=1}
    if(dotL1.currentFrame==2){stattic.lineOL6.gotoAndStop(2) ;enilOL6=1}
    if(dotL0.currentFrame==2){stattic.lineXL6.gotoAndStop(2) ;enilXL6=1}
    if(dotL5.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL5.gotoAndStop(2) ;xehL5=1;buttonLSD.visible=true}
    if(dotL1.currentFrame==2&&dotL0.currentFrame==2){stattic.hexL6.gotoAndStop(2) ;xehL6=1;buttonLSU.visible=true}
}}
dotL0.addEventListener(MouseEvent.CLICK,  d0L)
function d0L(event:MouseEvent):void{if(dotL0.currentFrame==2){dotL0.gotoAndStop(1) ;
    if(enilXL1==1){stattic.lineXL1.gotoAndStop(1) ;enilXL1=0}
    if(enilXL2==1){stattic.lineXL2.gotoAndStop(1) ;enilXL2=0}
    if(enilXL3==1){stattic.lineXL3.gotoAndStop(1) ;enilXL3=0}
    if(enilXL4==1){stattic.lineXL4.gotoAndStop(1) ;enilXL4=0}
    if(enilXL5==1){stattic.lineXL5.gotoAndStop(1) ;enilXL5=0}
    if(enilXL6==1){stattic.lineXL6.gotoAndStop(1) ;enilXL6=0}
    if(xehL1==1){stattic.hexL1.gotoAndStop(1) ;xehL1=0;buttonLNU.visible=false}
    if(xehL2==1){stattic.hexL2.gotoAndStop(1) ;xehL2=0;buttonLKU.visible=false}
    if(xehL3==1){stattic.hexL3.gotoAndStop(1) ;xehL3=0;buttonLKD.visible=false}
    if(xehL4==1){stattic.hexL4.gotoAndStop(1) ;xehL4=0;buttonLND.visible=false}
    if(xehL5==1){stattic.hexL5.gotoAndStop(1) ;xehL5=0;buttonLSD.visible=false}
    if(xehL6==1){stattic.hexL6.gotoAndStop(1) ;xehL6=0;buttonLSU.visible=false}
}
else if(dotL0.currentFrame==1){dotL0.gotoAndStop(2) ;
    if(dotL1.currentFrame==2){stattic.lineXL1.gotoAndStop(2) ;enilXL1=1}
    if(dotL2.currentFrame==2){stattic.lineXL2.gotoAndStop(2) ;enilXL2=1}
    if(dotL3.currentFrame==2){stattic.lineXL3.gotoAndStop(2) ;enilXL3=1}
    if(dotL4.currentFrame==2){stattic.lineXL4.gotoAndStop(2) ;enilXL4=1}
    if(dotL5.currentFrame==2){stattic.lineXL5.gotoAndStop(2) ;enilXL5=1}
    if(dotL6.currentFrame==2){stattic.lineXL6.gotoAndStop(2) ;enilXL6=1}
    if(dotL1.currentFrame==2&&dotL2.currentFrame==2){stattic.hexL1.gotoAndStop(2) ;xehL1=1;buttonLNU.visible=true}
    if(dotL2.currentFrame==2&&dotL3.currentFrame==2){stattic.hexL2.gotoAndStop(2) ;xehL2=1;buttonLKU.visible=true}
    if(dotL3.currentFrame==2&&dotL4.currentFrame==2){stattic.hexL3.gotoAndStop(2) ;xehL3=1;buttonLKD.visible=true}
    if(dotL4.currentFrame==2&&dotL5.currentFrame==2){stattic.hexL4.gotoAndStop(2) ;xehL4=1;buttonLND.visible=true}
    if(dotL5.currentFrame==2&&dotL6.currentFrame==2){stattic.hexL5.gotoAndStop(2) ;xehL5=1;buttonLSD.visible=true}
    if(dotL6.currentFrame==2&&dotL1.currentFrame==2){stattic.hexL6.gotoAndStop(2) ;xehL6=1;buttonLSU.visible=true}
}}
//dotR1//dotR2//dotR3//dotR4//dotR5//dotR6//dotR0
Related content
Comments: 0