- 전체 무비클립을 all
- 제목줄(무비클립)은 b
- 최소화 버튼은 s
- 최대화 버튼은 t
- 창(무비클립) 이름은 m


<< 제목줄

on(press){
 _root.all.startDrag();
 // _root.all.startDrag(true); -> true 가 들어가면 중심점이 따라다닌다
 // 무비클립이 아니라 버튼일경우 this.startDrage();

 _root.all.swapDepths(_root.i++);
}
on(release){
 stopDrag();
}

<< 최소화 버튼

on(press){
  _root.all.m._visible=0;
  // 최소화버튼을 누르면 창이 사라진다 (0 = false)
}

<< 최대화 버튼

on(press){
  _root.all.m._visible=1;
  //최대화버튼을 누르면 창이보인다 (1 = true)
}

<< 창

on(press){
 _root.all.swapDepths(_root.i++);
}

창을 눌러도 다른창보다 위로 올라갈수있게..
^^

'Program > 플래시' 카테고리의 다른 글

윈도우창 효과  (1) 2008/02/13
스크롤바 효과  (1) 2008/02/13
스르륵  (3) 2008/02/04
데구르르~~  (2) 2008/01/29
나비야 나비야~  (3) 2008/01/28
프레임네임정하기  (4) 2008/01/24
버튼이벤트  (4) 2008/01/24
경로대지  (6) 2008/01/23
대지 애니  (3) 2008/01/23

Trackback Address :: http://wowkjs.tistory.com/trackback/34 관련글 쓰기

댓글을 달아 주세요

  1. Favicon of http://www.hurstvillerepaircentre.com.au/ BlogIcon repair iphone 2011/06/14 13:18 Address Modify/Delete Reply

    좋은 글 감사합니다. 제가 퍼가도 될까요?





<< 가로 스크롤 (동그라미 무비클립)

on(press){
 left=_root.bar._x;
 top=_root.bar._y;
 right=_root.bar._x+_root.bar._width;
 bottom=top; // _root.bar._y;
 this.startDrag(true,left,top,right,bottom);
}
on(release){
 stopDrag();
}



<< 세로 스크롤 (동그라미 무비클립)

on(press){
 left=_root.bar1._x;
 top=_root.bar1._y;
 right=left;
 bottom=_root.bar1._y+_root.bar1._height;
 this.startDrag(true,left,top,right,bottom);
}
on(release){
 stopDrag();
}

'Program > 플래시' 카테고리의 다른 글

윈도우창 효과  (1) 2008/02/13
스크롤바 효과  (1) 2008/02/13
스르륵  (3) 2008/02/04
데구르르~~  (2) 2008/01/29
나비야 나비야~  (3) 2008/01/28
프레임네임정하기  (4) 2008/01/24
버튼이벤트  (4) 2008/01/24
경로대지  (6) 2008/01/23
대지 애니  (3) 2008/01/23

Trackback Address :: http://wowkjs.tistory.com/trackback/33 관련글 쓰기

댓글을 달아 주세요

  1. lehero 2009/03/05 18:54 Address Modify/Delete Reply

    감사합니다.