# Is the text import code different in Flash8?

**URL:** <https://forum.kirupa.com/t/is-the-text-import-code-different-in-flash8/185207>\
**Category:** flash\
**Created:** [April 11, 2006, 6:40pm UTC](https://forum.kirupa.com/t/is-the-text-import-code-different-in-flash8/185207 "2006-04-11T18:40:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toxicmage](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@toxicmage](https://forum.kirupa.com/u/toxicmage)\
**Post date:** [April 11, 2006, 6:40pm UTC](https://forum.kirupa.com/t/is-the-text-import-code-different-in-flash8/185207/1 "2006-04-11T18:40:43Z")

</div>

Well im using this code

loadText = new LoadVars();  
loadText.load(“price1.txt”);  
loadText.onLoad = function() {  
chain.text = this.chain;  
sledge.text = this.sledge;  
axe.text = this.axe;  
};

And this text in my text file

chain=£200&axe=£100&sledge=£125

Now the first Chain variable will load, But the other two wont…Ampersands are there, i removed the pound signs at one point thinking that was a problem. But it wasn’t so now i am completly stuck.

Lol Dont worry fixed it now xD

---

<div class="post-metadata">

**Author:** ![virusescu](https://avatars.discourse-cdn.com/v4/letter/v/8edcca/32.png) [@virusescu](https://forum.kirupa.com/u/virusescu)\
**Post date:** [April 11, 2006, 7:46pm UTC](https://forum.kirupa.com/t/is-the-text-import-code-different-in-flash8/185207/2 "2006-04-11T19:46:48Z")

</div>

How :)?  
I was about to suggest that you should first define the onLoad before invoking the loadText.load() method.
