# Problem with overlaying text fields - code inside

**URL:** <https://forum.kirupa.com/t/problem-with-overlaying-text-fields-code-inside/109137>\
**Category:** Uncategorized\
**Created:** [May 2, 2004, 3:26pm UTC](https://forum.kirupa.com/t/problem-with-overlaying-text-fields-code-inside/109137 "2004-05-02T15:26:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dredd](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@dredd](https://forum.kirupa.com/u/dredd)\
**Post date:** [May 2, 2004, 3:26pm UTC](https://forum.kirupa.com/t/problem-with-overlaying-text-fields-code-inside/109137/1 "2004-05-02T15:26:04Z")

</div>

hello,  
i have the following problem:

on a page, i have 2 buttons, which should make an english and a german version of a text from an external text file appear in a text field. the position of the text field should be the same for both versions.

i want the english version to go away, when the english appears and vice versa.

however - once i press the german button the german version appears, but as soon as i press the other button the other text field simply overlays teh other one - making everything unreadable gibberish.

code for the actions is as below:

* * *

## englishbutton.onPress = function () { loadText = new LoadVars(); loadText.load(“cvenglish.txt”); loadText.onLoad = function() { scrollerenglish.text = this.englishcv; }; } deutschbutton.onPress = function () { loadText = new LoadVars(); loadText.load(“cvgerman.txt”); loadText.onLoad = function() { scrollergerman.text = this.germancv; }; }

what did i do wrong? what command do i need to use to stop them from overlaying?

pls help me 🙂

thanks!  
dredd
