# Changing Dynamic loaded text

**URL:** https://forum.kirupa.com/t/changing-dynamic-loaded-text/41639
**Category:** flash
**Created:** [January 31, 2004, 11:53am UTC](https://forum.kirupa.com/t/changing-dynamic-loaded-text/41639 "2004-01-31T11:53:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ltorre](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@ltorre](https://forum.kirupa.com/u/ltorre)
#### Post date: [January 31, 2004, 11:53am UTC](https://forum.kirupa.com/t/changing-dynamic-loaded-text/41639/1 "2004-01-31T11:53:24Z")

</div>

Hi Guys, this is my question,

I’d tried to modify the content loaded to a dynamic text box using buttons to make loadText.load(“datosI.txt”);loadText.load(“datosII.txt”); but it keeps loading the same info to the texts boxes no matter what button i press.

Heres the code, should i change the trigger that sets the functions?

Inicio.onRelease  
{  
loadText = new loadVars();  
loadText.load(“datos.txt”);  
loadText.onLoad = function() {  
contenido.text = this.contenido;  
titulo.text = this.titulo;  
subtitulo.text = this.subtitulo;  
puntos.text = this.puntos;  
};  
}  
ProBut.onRelease  
{  
loadPartIText = new loadVars();  
loadPartIText.load(“partei.txt”);  
loadPartIText.onLoad = function() {  
contenido.text = this.contenido;  
titulo.text = this.titulo;  
subtitulo.text = this.subtitulo;  
puntos.text = this.puntos;  
};   
}

Ltorre.👽 👽
