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
More discussions in ActionScript 3
adobe
Comments
Post a Comment