# loadVariables problem?

**URL:** <https://forum.kirupa.com/t/loadvariables-problem/89128>\
**Category:** flash\
**Created:** [May 5, 2005, 7:33am UTC](https://forum.kirupa.com/t/loadvariables-problem/89128 "2005-05-05T07:33:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mngBJ](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mngBJ](https://forum.kirupa.com/u/mngBJ)\
**Post date:** [May 5, 2005, 7:33am UTC](https://forum.kirupa.com/t/loadvariables-problem/89128/1 "2005-05-05T07:33:25Z")

</div>

Hi all,  
i wanna make a duplicate movie clip using txt file. And i’m using loadVariables function. And here is my code:

this.createEmptyMovieClip(“target\_mc”, this.getNextHighestDepth());  
target\_mc.loadVariables(“number.txt”);  
m = target\_mc.num;  
for(j=0; j\<m; j++){  
duplicateMovieClip(“btn”, “btn”+j, this.getNextHighestDepth());  
\_root[“btn”+j].\_y = \_root.btn.\_height + \_root[“btn”+j].\_y + 1;  
}  
and this code didn’t work. So what’s my problem?

number.txt file contains : &num=5  
And sorry about my poor english skill.
