# Loading external variables with Mac

**URL:** <https://forum.kirupa.com/t/loading-external-variables-with-mac/44321>\
**Category:** flash\
**Created:** [March 2, 2004, 9:31pm UTC](https://forum.kirupa.com/t/loading-external-variables-with-mac/44321 "2004-03-02T21:31:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pspecial](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pspecial](https://forum.kirupa.com/u/pspecial)\
**Post date:** [March 2, 2004, 9:31pm UTC](https://forum.kirupa.com/t/loading-external-variables-with-mac/44321/1 "2004-03-02T21:31:37Z")

</div>

WHy o why in the world doesnt this work? I’ve done this quite a few times at home on my PC, but now I’m on-site with a client who has nothing but Macs. “Sure, no problem” I told my AD, “I can do that…”.

I’m trying to load variables from an external .txt file into Flash MX and this is the code I’m using:

links = new LoadVars();  
links.load(“assignLinks.txt”);  
links.onLoad = function(success){  
if(success) {  
diovan = links.diovan;  
diovanhct = links.diovanhct;  
}  
}  
trace(diovan);  
trace(diovanhct);

(The text file has the following content: diovan=whatever&diovanhct=whateveragain&)

The trace outputs “undefined” for both variables. WHY??

I also tried loadVariables instead of loadVars… same result. If this is a problem specific to Macs, whats the work around?

Please send help!! URGENT!!!
