How to check if text is loaded?


hello. wonder if there way (in as3) checking whether text loaded into dynamic text field (from external file).

 

any ideas?

 

 

     regards

hi,

run enter_frame event , check length of textfield.

 

addeventlistener( event.enter_frame, checktext, false, 0, true );

 

private function checktext( event:event ):void

{

     if(textfield.text.length > 0){

          removeeventlistener( event.enter_frame, checktext );

          //textfield set

     }

}

 

 

better using change event textfield.

 

hope helps

 

warm regards

deepanjan das

http://deepanjandas.wordpress.com/



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support