# Assigning Variable Problem

**URL:** https://forum.kirupa.com/t/assigning-variable-problem/148119
**Category:** Uncategorized
**Created:** [May 17, 2005, 8:54am UTC](https://forum.kirupa.com/t/assigning-variable-problem/148119 "2005-05-17T08:54:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Scarab](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@Scarab](https://forum.kirupa.com/u/Scarab)
#### Post date: [May 17, 2005, 8:54am UTC](https://forum.kirupa.com/t/assigning-variable-problem/148119/1 "2005-05-17T08:54:43Z")

</div>

In a deep level of my Flash movie I have a button.  
Now the label of that button will change depending on which language is selceted.  
nothing new, do that alll the time.  
now for debugging. i enter the code:  
[font=Courier New]faqBtn.text = “testest”;[/font]  
“testest” appears at runtime on the label  
all good.  
if i input  
[font=Courier New]trace(\_root.faqBtnXML);  
[/font]the output window gives me the correct vlaue for the \_root loaded variable  
So, at the same point in the movie as the above two test lines, why doesn’t [font=Courier New]  
faqBtn.text = \_root.faqBtnXML;[/font] work?  
because each one works on its own (as illustrated by the tests in the same point), but not together !?!

Thanks,  
al
