# LoadVariables

**URL:** <https://forum.kirupa.com/t/loadvariables/62208>\
**Category:** flash\
**Created:** [August 25, 2004, 9:34pm UTC](https://forum.kirupa.com/t/loadvariables/62208 "2004-08-25T21:34:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fat\_ron](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/fat_ron/32/433_2.png) [@fat\_ron](https://forum.kirupa.com/u/fat_ron)\
**Post date:** [August 25, 2004, 9:34pm UTC](https://forum.kirupa.com/t/loadvariables/62208/1 "2004-08-25T21:34:20Z")

</div>

I was just wondering, I am working on a script that loads variables into flash from a single .txt file, I need away to count the number of variables that are loaded from this file and wanted to know if there is any code in actionscript for doing this.  
The .txt file will be updated with new variables every now and gain, some may be removed so its important that the actionscript can accomidate these changes!  
any suggestions…?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 10:13am UTC](https://forum.kirupa.com/t/loadvariables/62208/2 "2004-08-26T10:13:16Z")

</div>

Prefix the variables with say “txt\_”

then loop through all the properties of the movieclip and count all vars with “txt\_”

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 11:41am UTC](https://forum.kirupa.com/t/loadvariables/62208/3 "2004-08-26T11:41:43Z")

</div>

Thanks ill give that a go
