# Loading an external txt into a different scene?

**URL:** <https://forum.kirupa.com/t/loading-an-external-txt-into-a-different-scene/27435>\
**Category:** flash\
**Created:** [August 2, 2003, 10:23am UTC](https://forum.kirupa.com/t/loading-an-external-txt-into-a-different-scene/27435 "2003-08-02T10:23:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![devs](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@devs](https://forum.kirupa.com/u/devs)\
**Post date:** [August 2, 2003, 10:23am UTC](https://forum.kirupa.com/t/loading-an-external-txt-into-a-different-scene/27435/1 "2003-08-02T10:23:46Z")

</div>

Hi people I’m having a problem loading an external txt file into my movie from a different scene… I have got the text file to load in with no problem on scean 1 but if I copy the code etc to scene 2 it does not work ☹

Okay this is what I have got on scene 1…

a. text field with the var: textbox  
b. a blank movie clip that loads an external button with the following code appended to it…

onClipEvent (enterFrame) {  
if (\_parent.message \<\> “”) {  
\_parent.textbox = \_parent.message;  
};  
}

c. this script on the first frame before the buttons are loaded… message = “”; (This script sets message to have no value)  
d. And finally on the externally loaded button is the following code…

on (release) {  
loadVariables(“pro/pro1.txt”, “\_parent”);  
}

Must I point the script to go to scene 2? If so how do I do this?

If anyone wants to see the source files just email me…

Thanks,

dEVS! 😏

[steve@dital.co.uk](mailto:steve@dital.co.uk)
