TextField _parent [AS 2] 
Klasa: TextField
Kompatybilność: ActionScript 1.0, Flash 6+
Referencja do klipu filmowego lub obiektu, który zawiera aktualne pole tekstowe lub obiekt.
Aktualny obiekt jest tym, który zawiera kod ActionScript, który działa jako referencja _parent.
Użyj metody _parent, aby określać rownież relatywne ścieżki do klipów filmowych lub obiektów, ktm. Możesz użyć _parent, aby sie wspinać na kilka wyższych poziomów, jak np:
_parent._parent._alpha = 20;
Listing
thjest.createTextField("first_txt", thjest.getNextHighestDepth(), 10, 10, 160, 22);
first_txt.border = true;
trace(first_txt._name+"'s _parent jest: "+first_txt._parent);
thjest.createEmptyMovieClip("holder_mc", thjest.getNextHighestDepth());
holder_mc.createTextField("second_txt", holder_mc.getNextHighestDepth(), 10, 40, 160, 22);
holder_mc.second_txt.border = true;
trace(holder_mc.second_txt._name+"'s _parent jest: "+holder_mc.second_txt._parent);
//zwróci:
// first_txt's _parent jest: _level0
// second_txt's _parent jest: _level0.holder_mc
 
        	first_txt.border = true;
trace(first_txt._name+"'s _parent jest: "+first_txt._parent);
thjest.createEmptyMovieClip("holder_mc", thjest.getNextHighestDepth());
holder_mc.createTextField("second_txt", holder_mc.getNextHighestDepth(), 10, 40, 160, 22);
holder_mc.second_txt.border = true;
trace(holder_mc.second_txt._name+"'s _parent jest: "+holder_mc.second_txt._parent);
//zwróci:
// first_txt's _parent jest: _level0
// second_txt's _parent jest: _level0.holder_mc
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
        
    

 
  
				

 
                             
 


 
                        
 
		 
	