Selection setSelection [AS 2] 
Klasa: Selection
Kompatybilność: ActionScript 1.0, Flash 5+
setSelection(startIndex:Number, koniecIndex:Number) : Void
Ustawia porządek zaznaczenia, aktualnego skupionego pola tekstowego.
Nowy porządek zaznaczanie, zacznie sie od określonego indeksu jako startIndex oraz zakończy się na określonym indeksie koniecIndex. Porządek zaznaczenia bazuje na zerach (więcej info na stroie klasy).
Listing
//#1
this.createTextField("mojText_txt", 99, 10, 10, 200, 30);
mojText_txt.text = "this is moj text";
this.onEnterFrame = function () {
Selection.setFocus("mojText_txt");
Selection.setSelection(0, 3);
delete this.onEnterFrame;
}
//#2
this.createTextField("mojText_txt", 99, 10, 10, 200, 30);
mojText_txt.text = "this is moj text";
this.onEnterFrame = function () {
Selection.setFocus("mojText_txt");
Selection.setSelection(0, 1);
delete this.onEnterFrame;
}
 
        	this.createTextField("mojText_txt", 99, 10, 10, 200, 30);
mojText_txt.text = "this is moj text";
this.onEnterFrame = function () {
Selection.setFocus("mojText_txt");
Selection.setSelection(0, 3);
delete this.onEnterFrame;
}
//#2
this.createTextField("mojText_txt", 99, 10, 10, 200, 30);
mojText_txt.text = "this is moj text";
this.onEnterFrame = function () {
Selection.setFocus("mojText_txt");
Selection.setSelection(0, 1);
delete this.onEnterFrame;
}
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
        
    

 
  
				

 
                             
 


 
                        
 
		 
	