# Issue with displaying data from external variables

**URL:** <https://forum.kirupa.com/t/issue-with-displaying-data-from-external-variables/206707>\
**Category:** flash\
**Created:** [November 10, 2006, 3:45pm UTC](https://forum.kirupa.com/t/issue-with-displaying-data-from-external-variables/206707 "2006-11-10T15:45:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Van\_Hammersley](https://avatars.discourse-cdn.com/v4/letter/v/a88e57/32.png) [@Van\_Hammersley](https://forum.kirupa.com/u/Van_Hammersley)\
**Post date:** [November 10, 2006, 3:45pm UTC](https://forum.kirupa.com/t/issue-with-displaying-data-from-external-variables/206707/1 "2006-11-10T15:45:26Z")

</div>

[COLOR=#003366][FONT=Verdana]Hello all,[/FONT][/COLOR]  
[COLOR=#003366][/COLOR]  
[COLOR=#003366]I’m a newbie and have a quick question regarding pulling in external variable data from a text file…[/COLOR]  
[COLOR=#003366][/COLOR]  
[COLOR=#003366]I followed the tutorial on [Kirupa.com](http://Kirupa.com) [/COLOR][COLOR=#003366][FONT=Verdana]“Displaying[FONT=Verdana][COLOR=#003366] Data from an External File” which was great. My issue is, I have 2 text fields INSIDE movie clips (so can animate/fade/move them basically), and I’m having a problem referncing them…[/COLOR][/FONT][/FONT][/COLOR]  
[COLOR=#003366][/COLOR]  
[COLOR=#003366]Per the tutorial…here is the scrips with variables I am using:[/COLOR]  
[COLOR=#003366][/COLOR]  
loadText = new LoadVars();  
loadText.load(“variables.txt”);  
loadText.onLoad = function() {  
company.text = this.company;  
slogan.text = this.slogan;  
};

This basically loads the variables into 2 txt fields on the root timeline…but the way I need my version to work, I have my txt fields within movie clips (MCcompany and MCslogan), and not sure of the syntax changes to do this.

Hopefully this makes sense. Any help/suggestions/tutorials would be great appreciated…

Thanks!
