# Trying to load a passed variable to dynamic text box

**URL:** https://forum.kirupa.com/t/trying-to-load-a-passed-variable-to-dynamic-text-box/182849
**Category:** Uncategorized
**Created:** [March 21, 2006, 10:44pm UTC](https://forum.kirupa.com/t/trying-to-load-a-passed-variable-to-dynamic-text-box/182849 "2006-03-21T22:44:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![headso](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@headso](https://forum.kirupa.com/u/headso)
#### Post date: [March 21, 2006, 10:44pm UTC](https://forum.kirupa.com/t/trying-to-load-a-passed-variable-to-dynamic-text-box/182849/1 "2006-03-21T22:44:46Z")

</div>

Hi guys,

anyone know how to do this:

in my dynamic text box i have some text with this for a link:

asfunction:\_root.activate,qs,q1

in the actions layer i have this:

function activate (num) {  
splittedVar = num.split(",");  
trace(splitted[0]);  
trace(splitted[1]);  
\_root.gotoAndPlay(splittedVar[0]);  
}

it goes to and plays “qs” just fine but when i get there i have this in the actions layer and it does not work

Ext\_text = new LoadVars();  
Ext\_text.onLoad = addText;  
Ext\_text.load(“faq.txt”);  
function addText() {  
qtxt.htmlText = this(splittedVar[1]);  
}

i want it to pull the text from under the varible called “q1” from faq.txt, if i replace (splittedVar[1]); with .q1 it works, but this way doesnt, any help would be great!
