Menu

네비게이션 만들기.

2016. 5. 22. 01:40

안개핑 Flash study

 

 

      onEnterFrame=function(){
      	for(var i=0;i<4;i++){
      		this["m"+i]._x+=(i*100-this["m"+i]._x)*0.12;
      	}
      	}
      
      m0.onRollOver=function(){
      	onEnterFrame=function(){
      		m1._x+=(400-m1._x)*0.06;
      		m2._x+=(450-m2._x)*0.05;
      		m3._x+=(500-m3._x)*0.04;
      	}
      }
      m1.onRollOver=function(){
      	onEnterFrame=function(){
      		m0._x+=(-0-m0._x)*0.04;
      		m1._x+=(0-m1._x)*0.06;
      		m2._x+=(400-m2._x)*0.05;
      		m3._x+=(450-m3._x)*0.04;
      	}
      }
      m2.onRollOver=function(){
      	onEnterFrame=function(){
      		m0._x+=(-350-m0._x)*0.05;
      		m1._x+=(-300-m1._x)*0.05;
      		m2._x+=(0-m2._x)*0.04;
      		m3._x+=(450-m3._x)*0.05;
      	}
      }
      m3.onRollOver=function(){
      	onEnterFrame=function(){
      		m0._x+=(-350-m0._x)*0.05;
      		m1._x+=(-300-m1._x)*0.04;
      		m2._x+=(-250-m2._x)*0.03;
      		m3._x+=(0-m3._x)*0.06;
      	}
      }
      
      m0.onRollOut=function(){
      	onEnterFrame=function(){
      		m1._x+=(100-m1._x)*0.05;
      		m2._x+=(200-m2._x)*0.06;
      		m3._x+=(300-m3._x)*0.07;
      	}
      }
      m1.onRollOut=function(){
      	onEnterFrame=function(){
      		m0._x+=(0-m0._x)*0.04;
      		m1._x+=(100-m1._x)*0.06;
      		m2._x+=(200-m2._x)*0.05;
      		m3._x+=(300-m3._x)*0.04;
      	}
      }
      m2.onRollOut=function(){
      	onEnterFrame=function(){
      		m0._x+=(0-m0._x)*0.05;
      		m1._x+=(100-m1._x)*0.05;
      		m2._x+=(200-m2._x)*0.04;
      		m3._x+=(300-m3._x)*0.05;
      	}
      }
      m3.onRollOut=function(){
      	onEnterFrame=function(){
      		m0._x+=(0-m0._x)*0.06;
      		m1._x+=(100-m1._x)*0.05;
      		m2._x+=(200-m2._x)*0.04;
      		m3._x+=(300-m3._x)*0.03;
      	}
      }
      
       
       
      >

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

반딧불 날리기  (0) 2016.05.22
메인화면 만들기  (0) 2016.05.22
가로형 메뉴4  (0) 2016.05.22
간단한 세로형 메뉴  (0) 2016.05.22
가로형 메뉴3  (0) 2016.05.22