목록디자인공부/플래시 (29)
DevilStudy
http://10x10.co.kr 에서 이미지와 플래시 참고! 내가 제일 좋아하는 텐바이텐을 보고 쇼핑몰 연습하며 만들었다 //ㅁ// 무비클립에 mc라는 이름을 부여하고 각각의 숫자 버튼의 액션 스크립트에 아래와 같이 입력한다. on (press) { _root.mc.gotoAndPlay(프레임위치); } 이미지를 클릭했을때 해달 페이지로 이동하도록 스크립트를 작성해준다. on(press){ getURL("경로"); }
http://llljiminlll.mireene.com 사이트 상단 메뉴 ~! '핑크색 말풍선' 무비클립에 mc라는 이름을 부여한다. 무비클립의 액션스크립트에 아래와 같이 입력한다. onClipEvent (enterFrame){ this._x = this._x + 5.000000E-001 * (targetx - this._x);} 액션레이어 생성후 첫 프레임에 아래와 같이 입력한다. _global.aa = aa; switch (aa) { case "photo": { _root.mc._x = 좌표값 입력; break; } case "plog": { _root.mc._x = 좌표값 입력; break; } case "free": { _root.mc._x = 좌표값 입력; break; } case "gest":..
이전버튼 - on (release) {prevFrame();} 다음버튼 - on (release) {nextFrame();} 액션레이어 첫프레임 - stop();
별 - 'star'이란 이름을 가진 무비클립 정지버튼 - on (release) {star.stop();} 재생버튼 - on (release) {star.play();}
큰 숫자 - 'no'라는 이름을 가진 무비클립 작은숫자 - 버튼 1번 버튼 - on (release) {no.gotoAndStop(1);} 2번 버튼 - on (release) {no.gotoAndStop(5);} 3번 버튼 - on (release) {no.gotoAndStop(10);} 4번 버튼 - on (release) {no.gotoAndStop(15);}
하트에 마우스를 올려 보세요.
첫번째 옷(연두색)을 버튼으로 지정하고 액션스크립트를 적는다 . on (release) { aaa.gotoAndStop(5); } 두번째 옷(빨간차이나)을 버튼으로 지정하고 액션스크립트를 적는다. on (release) { aaa.gotoAndStop(10); } 세번째 옷(빨간색)을 버튼으로 지정하고 액션스크립트를 적는다. on (release) { aaa.gotoAndStop(15); } 네번째 옷(보라색)을 버튼으로 지정하고 액션스크립트를 적는다. on (release) { aaa.gotoAndStop(20); }
프레임에 액션스크립트 실행후 아래와 같이 작성한다 _root.bt1.onPress = function(){ _root.mc.onEnterFrame = function(){ this._x=this._x + 0.3*(0-this._x) //현재x좌표=현재x좌표+속도*(타겟위치-현재x좌표) //300=300+0.3*(0-300) - 슬라이드공식 } } _root.bt2.onPress = function(){ _root.mc.onEnterFrame = function(){ this._x=this._x + 0.3*(-300-this._x) } }
액션 레이어 생성후 첫번째 프레임에서 액션스크립트 실행하여 아래 내용을 적어준다. _root.mc.onEnterFrame=function(){ this._x=this._x+0.3*(targetx-this._x) this._y=this._y+0.3*(targety-this._y) } /* 인스턴네임.이벤트=function(){ 실행문; } */ 왼쪽 위 버튼의 액션스크립트 on(press){ _root.targetx=0; _root.targety=0; } 오른쪽 위 버튼의 액션스크립트 on(press){ _root.targetx=-300; _root.targety=0; } 왼쪽 아래 버튼의 액션스크립트 on(press){ _root.targetx=0; _root.targety=-200; } 오른쪽 아래위 ..
나비..오른쪽 하단에 버튼을 클릭하세요 가운데 버튼은 나비를 감춰버립니다. ▲ 버튼 on(press){ _root.bf._y-=30; //y좌표는 -값일땐 위로이동 _root.bf._rotation=0; } ▼ 버튼 on(press){ _root.bf._y+=30; // y좌표는 +값이면 아래로 움직인다. _root.bf._rotation=180; } ▶ 버튼 on(press){ _root.bf._x+=30; _root.bf._rotation=90; } ◀ 버튼 on(press){ _root.bf._x-=30; _root.bf._rotation=-90; } ■ 버튼 on(press){ if(_root.bf._visible==true){ //나비가 있을때는 사라지게 한다. _root.bf._visible=..
나무에 마스크 주기 ,, 나무가 스르륵..ㅋ