# FMX-external variable syntax

**URL:** <https://forum.kirupa.com/t/fmx-external-variable-syntax/30579>\
**Category:** flash\
**Created:** [September 10, 2003, 7:52pm UTC](https://forum.kirupa.com/t/fmx-external-variable-syntax/30579 "2003-09-10T19:52:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![borispc](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@borispc](https://forum.kirupa.com/u/borispc)\
**Post date:** [September 10, 2003, 7:52pm UTC](https://forum.kirupa.com/t/fmx-external-variable-syntax/30579/1 "2003-09-10T19:52:54Z")

</div>

Hi again!  
I have a LoadVars object called loadText in which an external variable is loaded from a text file.  
Now, the whole thing works, I just want to create a template to optimize the system, so here is what I need:  
The external variable (in an external text file) is called page1.  
I am assigning that external variable to a local variable (at this point the external text has already been loaded in loadText, of course):

my\_str=loadText.page1;

Now this works but I want to be able to have that page 1 up here as a variable:  
(something like this):  
my\_str=loadText.\_global.page  
where \_global.page could have different values page1, page2, etc.  
Now, I know this syntax is not correct because it just doesn’t work…so how do I do this???  
thanks!!!:toad:
