TextField textHeight [AS 2] 
Klasa: TextField
Kompatybilność: ActionScript 1.0, Flash 6+
Określa wysokość pola tekstowego, podaną w pikselach.
Listing
this.createTextField("moj_txt", 99, 10, 10, 100, 300);
moj_txt.text = "Sample text";
trace("textHeight: "+moj_txt.textHeight+", textWidth: "+moj_txt.textWidth);
trace("_height: "+moj_txt._height+", _width: "+moj_txt._width+"\n");
moj_txt.autoSize = true;
trace("after moj_txt.autoSize = true;");
trace("_height: "+moj_txt._height+", _width: "+moj_txt._width);
//zwróci:
textHeight: 15, textWidth: 56
_height: 300, _width: 100
po moj_txt.autoSize = true;
_height: 19, _width: 60
        	moj_txt.text = "Sample text";
trace("textHeight: "+moj_txt.textHeight+", textWidth: "+moj_txt.textWidth);
trace("_height: "+moj_txt._height+", _width: "+moj_txt._width+"\n");
moj_txt.autoSize = true;
trace("after moj_txt.autoSize = true;");
trace("_height: "+moj_txt._height+", _width: "+moj_txt._width);
//zwróci:
textHeight: 15, textWidth: 56
_height: 300, _width: 100
po moj_txt.autoSize = true;
_height: 19, _width: 60
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
        
    

 
  
				

 
                             
 


 
                        
 
		 
	