# Load text to external.swf file from main.swf

**URL:** <https://forum.kirupa.com/t/load-text-to-external-swf-file-from-main-swf/263963>\
**Category:** Uncategorized\
**Created:** [June 21, 2008, 12:29am UTC](https://forum.kirupa.com/t/load-text-to-external-swf-file-from-main-swf/263963 "2008-06-21T00:29:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![red2034](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@red2034](https://forum.kirupa.com/u/red2034)\
**Post date:** [June 21, 2008, 12:29am UTC](https://forum.kirupa.com/t/load-text-to-external-swf-file-from-main-swf/263963/1 "2008-06-21T00:29:40Z")

</div>

So, I am tryig to load text from the loaded xml file on the main.swf and target a text field in another loaded swf file

main.swf loads xml and loads external content.swf trying something like this:

function showPage() {  
stopAllSounds();  
\_level0.ui.content\_area.content.loadMovie(“content/” + contentItems[currentContentItem].attributes.FILENAME); //this part loads the external swf file  
\*\*this.body\_txt.htmlText = “com’on!!!”; //this part is not targeting the swf text field right?!?!?!  
\*\* if (contentItems[currentContentItem].attributes.audio != “”) {  
// create a new sound object  
var soundHolder = new Sound();  
// load mp3 into the sound object  
soundHolder.loadSound(“content/” + contentItems[currentContentItem].attributes.audio,false);  
// play the sound  
soundHolder.start(0,99999);  
}  
}

---

<div class="post-metadata">

**Author:** ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)\
**Post date:** [June 21, 2008, 12:57am UTC](https://forum.kirupa.com/t/load-text-to-external-swf-file-from-main-swf/263963/2 "2008-06-21T00:57:24Z")

</div>

Seems like it is targetting body\_txt.html inside main.swf, not content.swf
