What’s new in action script v2_Button.menu
Button.menu
지원 버전
Flash Player 7
구문
my_button.menu = contextMenu
매개 변수
contextMenu ContextMenu 객체
설명
속성; ContextMenu 객체 contextMenu를 button 객체 my_button과 연결합니다. ContextMenu 클래스는 사용자가 마우스 오른쪽 버튼을 클릭(Windows)하거나 Control 키를 누른 채 클릭 (Macintosh)할 때 나타나는 컨텍스트 메뉴를 수정할 수 있도록 합니다.
예제
다음 예제에서는 ContextMenu 객체를 save_btn이라는 Button 객체에 할당합니다. ContextMenu 객체에는 doSave(표시되지 않음)라고 하는 콜백 핸들러 함수가 연결된 하나의 메뉴 항목(“Save…”)이 포함되어 있습니다.
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem(“Save…”, doSave));
function doSave(menu, obj) {
// “Save” code here
}
save_btn.menu = menu_cm;
참고 항목
ContextMenu 클래스, ContextMenuItem 클래스, MovieClip.menu, TextField.
About this entry
You’re currently reading “What’s new in action script v2_Button.menu,” an entry on multiplicité
- Published:
- Friday, November 28th, 2003 at 3:35 pm
- This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0 Korea.
- Author:
- vizualizer
- Category:
- techne
Similar Posts
- AS2 에서의 컨텍스트 메뉴 추가하기
- What’s new in action script v2_Array.sortOn() method
- What’s new in action script v2_NetStream Class
- random color code in navigation menu
- What’s new in action script v2_Boolean() Class
- What’s new in action script v2_Array.sort() method
- MovieClip tweening prototypes 1.1.8
- AS2 에서의 컨텍스트 메뉴 숨기기
- MovieClip.onLoad
- TextFormat & TextField
No comments
Jump to comment form | comments rss