ContextMenuItem enabled [AS 2] 
Klasa: ContextMenuItem
Kompatybilność: ActionScript 1.0, Flash 7+
Wartość logiczna określająca czy menu kontekstowe jest aktywne czy też nie. Domyślnie ta właściwość jes ustawiana na TRUE.
Listing
var menu2:ContextMenu = new ContextMenu();
var startMenuItem:ContextMenuItem = new ContextMenuItem("Start", startFunkcja);
startMenuItem.enabled = true;
menu2.customItems.push(startMenuItem);
var stopMenuItem:ContextMenuItem = new ContextMenuItem("Stop", stopFunkcja, true);
stopMenuItem.enabled = false;
menu2.customItems.push(stopMenuItem);
function stopFunkcja(obj, item) {
trace("Zatrzymywanie... "+getTimer()+"ms");
startMenuItem.enabled = true;
stopMenuItem.enabled = false;
}
function startFunkcja(obj, item) {
trace("Startowanie... "+getTimer()+"ms");
startMenuItem.enabled = false;
stopMenuItem.enabled = true;
}
this.menu = menu2;
        	var startMenuItem:ContextMenuItem = new ContextMenuItem("Start", startFunkcja);
startMenuItem.enabled = true;
menu2.customItems.push(startMenuItem);
var stopMenuItem:ContextMenuItem = new ContextMenuItem("Stop", stopFunkcja, true);
stopMenuItem.enabled = false;
menu2.customItems.push(stopMenuItem);
function stopFunkcja(obj, item) {
trace("Zatrzymywanie... "+getTimer()+"ms");
startMenuItem.enabled = true;
stopMenuItem.enabled = false;
}
function startFunkcja(obj, item) {
trace("Startowanie... "+getTimer()+"ms");
startMenuItem.enabled = false;
stopMenuItem.enabled = true;
}
this.menu = menu2;
Dodano przez: divix  
Ranga: Administrator serwisu Punktów: 0
Ranga: Administrator serwisu Punktów: 0
Komentarze użytkowników
:: Losowe artykuły 

:: Wymiana linków 
    
	Modowe inspiracje |
        Android Gry i Aplikacje |
        ZaplanujTransport.pl: Przeprowadzki, transport, aukcje |
        Logo dla firmy |
        Change Tires - Car Weather Forecast Reminder |
        Laminas: MVC Framework for PHP |
        IT Books Reviews and Programming: JS, JAVA, PHP, ANDROID, CSS | 
        Katalog roślin |
        Programming articles: JAVA, PHP, C++, Python, JavaScript |
        Kancelaria Adwokacka Łukasz Huszno
        
    

 
  
				

 
                             
 


 
                        
 
		 
	