# (Urgent!) Loading Text from txt file

**URL:** <https://forum.kirupa.com/t/urgent-loading-text-from-txt-file/246948>\
**Category:** flash\
**Created:** [December 17, 2007, 1:01am UTC](https://forum.kirupa.com/t/urgent-loading-text-from-txt-file/246948 "2007-12-17T01:01:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeoffR](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@GeoffR](https://forum.kirupa.com/u/GeoffR)\
**Post date:** [December 17, 2007, 1:01am UTC](https://forum.kirupa.com/t/urgent-loading-text-from-txt-file/246948/1 "2007-12-17T01:01:31Z")

</div>

Hi, I have an urgent problem to solve for a client. Any help would be GREATLY appreciated…

We are dynamically importing text from a .txt file, but it is only displaying on Flash player 9. I have used this code in earlier players without problem. Can anyone identify why this is not working on player versions prior to v9? The text layer is not in a mask, and sits at the top of the layer levels. 9Works well in v 9 players)

thanks,  
Geoff

//  
function GetAndDisplayAdText() {

var loadAdText:LoadVars = new LoadVars();  
loadAdText.load(“flash/ad\_text.txt”);  
loadAdText.onLoad = function(success) {  
if (success) {  
adTextMC.adText.htmlText = loadAdText.vText;  
myLink = loadAdText.vLink;  
play();  
link\_btn.onRelease = function() {  
getURL(myLink, “\_parent”);  
};  
} else {  
\_root.adTextMC.adText.htmlText = “”;  
}  
};  
}  
//  
GetAndDisplayAdText();
