# Help loading external swf with dynamically loaded text

**URL:** https://forum.kirupa.com/t/help-loading-external-swf-with-dynamically-loaded-text/209257
**Category:** flash
**Created:** [December 7, 2006, 6:15am UTC](https://forum.kirupa.com/t/help-loading-external-swf-with-dynamically-loaded-text/209257 "2006-12-07T06:15:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bdoggity](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@bdoggity](https://forum.kirupa.com/u/bdoggity)
#### Post date: [December 7, 2006, 6:15am UTC](https://forum.kirupa.com/t/help-loading-external-swf-with-dynamically-loaded-text/209257/1 "2006-12-07T06:15:49Z")

</div>

Hello all!

I am working on a project in Flash 8 where I am loading external swfs into a container mc using the following AS:

on (release) {  
\_root.contents.loadMovie(“filename.swf”);  
}

This works really well - however, if the swf has dynamically loaded scrollable text, only the UIScrollBar loads…no text. The text source is a .txt file and it’s located in the same folder as the swf. Any thoughts?

Here’s the AS I use to load the text in the external swf:

myData = new LoadVars();  
myData.onLoad = function() {  
myText\_txt.text = this.myVariable;  
};  
myData.load(“filename.txt”);

btw - I’m new to this, so there is a good possibility that I’m in over my head.

Any help will be appreciated!
