# Loading external text into .swf that's loaded into another .swf... phew

**URL:** <https://forum.kirupa.com/t/loading-external-text-into-swf-thats-loaded-into-another-swf-phew/104497>\
**Category:** Uncategorized\
**Created:** [March 16, 2004, 8:55pm UTC](https://forum.kirupa.com/t/loading-external-text-into-swf-thats-loaded-into-another-swf-phew/104497 "2004-03-16T20:55:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindofchester](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mindofchester](https://forum.kirupa.com/u/mindofchester)\
**Post date:** [March 16, 2004, 8:55pm UTC](https://forum.kirupa.com/t/loading-external-text-into-swf-thats-loaded-into-another-swf-phew/104497/1 "2004-03-16T20:55:30Z")

</div>

:te:  
Hello everyone. I have a little problem. I have a .swf that loads an external text document. The text shows up fine when I test the .swf. However, this .swf is loaded by another movie, and when that movie loads this .swf the text doesn’t show up. I hope that makes sense. Here’s the action script for the .swf with the external text.

[AS]this.loadVariables(“corp.txt”);  
this.onData = function () {  
myText.text = scrollText;   
}  
scrollUp.onPress = function () {  
this.down = true;  
}  
scrollUp.onRelease = function () {  
this.down = false;  
}  
scrollDown.onpress = scrollUp.onPress;  
scrollDown.onRelease = scrollUp.onRelease;  
scrollUp.onReleaseOutside = scrollDown.onReleaseOutside =  
scrollDown.OnRelease = scrollUp.onRelease;  
scrollUp.onEnterFrame = function () {  
if (this.\_visible && this.down){  
–myText.scroll;  
}  
//\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
if (myText.scroll == 1){  
this.\_visible = false;  
}else{  
this.\_visible = true;  
}  
//\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
}  
scrollDown.onEnterFrame = function () {  
if (this.\_visible && this.down){  
++myText.scroll;  
}  
//\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
if (myText.scroll == myText.maxscroll){  
this.\_visible = false;  
}else{  
this.\_visible = true;  
}  
//\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
}  
stop();[/AS]

If anyone can help it’s greatly appreciated.

Thanks,  
Anthony

:cyborg:
