Menu

r_button

2016. 5. 26. 14:02

안개핑 Swish study

 

  onLoad () {
    val=0;
}
function resize(nomduform,positiony,taille) {
    nomduform._y=math.approach(nomduform._y,positiony,0.8);
    nomduform._xscale=math.approach(nomduform._xscale,taille,0.8);
    nomduform._yscale=math.approach(nomduform._yscale,taille,0.8);
    nomduform._alpha=taille-10;
}
onEnterFrame() {
    if (_xmouse>20&&_xmouse<=65) {
        resize(bouton1,65,70);
        resize(bouton2,25,50);
        resize(bouton3,15,45);
        resize(bouton4,25,50);
        resize(bouton5,50,50);
        resize(bouton6,75,50);
        resize(bouton7,85,45);
        resize(bouton8,75,50);
        bouton1._alpha=100;
    } else if (_xmouse>65&&_xmouse<=100) {
        resize(bouton1,75,50);
        resize(bouton2,50,70);
        resize(bouton3,25,50);
        resize(bouton4,15,45);
        resize(bouton5,25,50);
        resize(bouton6,50,50);
        resize(bouton7,75,50);
        resize(bouton8,85,45);
        bouton2._alpha=100;
    } else if (_xmouse>100&&_xmouse<=140) {
        resize(bouton1,85,45);
        resize(bouton2,75,50);
        resize(bouton3,50,70);
        resize(bouton4,25,50);
        resize(bouton5,15,45);
        resize(bouton6,25,50);
        resize(bouton7,50,50);
        resize(bouton8,75,50);
        bouton3._alpha=100;
    } else if (_xmouse>140&&_xmouse<=180) {
        resize(bouton1,75,50);
        resize(bouton2,85,45);
        resize(bouton3,75,50);
        resize(bouton4,50,70);
        resize(bouton5,25,50);
        resize(bouton6,15,45);
        resize(bouton7,25,50);
        resize(bouton8,50,50);
        bouton4._alpha=100;
    } else if (_xmouse>180&&_xmouse<=220) {
        resize(bouton1,50,50);
        resize(bouton2,75,50);
        resize(bouton3,85,45);
        resize(bouton4,75,50);
        resize(bouton5,50,70);
        resize(bouton6,25,50);
        resize(bouton7,15,45);
        resize(bouton8,25,50);
        bouton5._alpha=100;
    } else if (_xmouse>220&&_xmouse<=260) {
        resize(bouton1,25,50);
        resize(bouton2,50,50);
        resize(bouton3,75,50);
        resize(bouton4,85,45);
        resize(bouton5,75,50);
        resize(bouton6,50,70);
        resize(bouton7,25,50);
        resize(bouton8,15,45);
        bouton6._alpha=100;
    } else if (_xmouse>260&&_xmouse<=300) {
        resize(bouton1,15,45);
        resize(bouton2,25,50);
        resize(bouton3,50,50);
        resize(bouton4,75,50);
        resize(bouton5,85,45);
        resize(bouton6,75,50);
        resize(bouton7,50,70);
        resize(bouton8,25,50);
        bouton7._alpha=100;
    } else if (_xmouse>300&&_xmouse<=340) {
        resize(bouton1,25,50);
        resize(bouton2,15,45);
        resize(bouton3,25,50);
        resize(bouton4,50,50);
        resize(bouton5,75,50);
        resize(bouton6,85,45);
        resize(bouton7,75,50);
        resize(bouton8,50,70);
        bouton8._alpha=100;
    } else {
        resize(bouton1,50,50);
        resize(bouton2,25,50);
        resize(bouton3,15,45);
        resize(bouton4,25,50);
        resize(bouton5,50,50);
        resize(bouton6,75,50);
        resize(bouton7,85,45);
        resize(bouton8,75,50);
        bouton1._alpha=100;
    }
}

 

    'Swish study' 카테고리의 다른 글

    menu-11  (0) 2016.05.26
    load study  (0) 2016.05.26
    menu-10  (0) 2016.05.26
    마스크를 이용한 타이핑 텍스트  (0) 2016.05.26
    illusion  (0) 2016.05.26