# Need help loading text file not showing in .swf

**URL:** <https://forum.kirupa.com/t/need-help-loading-text-file-not-showing-in-swf/318021>\
**Category:** Uncategorized\
**Created:** [January 8, 2011, 12:26pm UTC](https://forum.kirupa.com/t/need-help-loading-text-file-not-showing-in-swf/318021 "2011-01-08T12:26:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![4ucai](https://avatars.discourse-cdn.com/v4/letter/4/e495f1/32.png) [@4ucai](https://forum.kirupa.com/u/4ucai)\
**Post date:** [January 8, 2011, 12:26pm UTC](https://forum.kirupa.com/t/need-help-loading-text-file-not-showing-in-swf/318021/1 "2011-01-08T12:26:11Z")

</div>

I used a sample in loading text file from the flash samples.  
I wanted to load a .C file (turbo c file), which is editable and readable as text. While i have successfully done it, it only shows the loaded text in the .fla but not in .swf  
I am using flash 8 AS2

var my\_lv:LoadVars = new LoadVars();  
my\_lv.onData = function(src:String) {  
if (src == undefined) {  
trace(“Error loading content.”);  
return;  
}  
my\_txt.text = src;  
};  
my\_lv.load(“c://flash/ACT2.C”, my\_lv, “GET”);

Your help is very much appreciated
