윈도우창 효과
Program/플래시 2008/02/13 16:26 |- 전체 무비클립을 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++);
}
창을 눌러도 다른창보다 위로 올라갈수있게..
^^
- 제목줄(무비클립)은 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++);
}
창을 눌러도 다른창보다 위로 올라갈수있게..
^^

댓글을 달아 주세요
좋은 글 감사합니다. 제가 퍼가도 될까요?