# OnLoadComplete problem!

**URL:** <https://forum.kirupa.com/t/onloadcomplete-problem/181152>\
**Category:** Uncategorized\
**Created:** [March 6, 2006, 10:49pm UTC](https://forum.kirupa.com/t/onloadcomplete-problem/181152 "2006-03-06T22:49:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aBnest](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/abnest/32/2177_2.png) [@aBnest](https://forum.kirupa.com/u/aBnest)\
**Post date:** [March 6, 2006, 10:49pm UTC](https://forum.kirupa.com/t/onloadcomplete-problem/181152/1 "2006-03-06T22:49:43Z")

</div>

I’ve been smashing my head against the keyboard for the last 2 days on how to make this work…  
Please help!

I’m loading a text dynamic in to a movieClip with the Load Variable class.

My problem is that i can not tell when the text is loaded… to add my animation only then.

this is the code i use (partial):

lv.load(“lorem.txt”);  
lv.onLoad = function() {  
my\_txt.text = this.txtField;  
my\_txt.setTextFormat(my\_fmt);  
}

lv.onLoadComplete = function () {  
trace(“loading\_done”); //// this doesn’t seem to work!  
}
