# Dynamic Text Help!

**URL:** https://forum.kirupa.com/t/dynamic-text-help/169094
**Category:** Uncategorized
**Created:** [November 13, 2005, 11:52am UTC](https://forum.kirupa.com/t/dynamic-text-help/169094 "2005-11-13T11:52:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![philbakerdesign](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@philbakerdesign](https://forum.kirupa.com/u/philbakerdesign)
#### Post date: [November 13, 2005, 11:52am UTC](https://forum.kirupa.com/t/dynamic-text-help/169094/1 "2005-11-13T11:52:55Z")

</div>

I’m trying to make an image gallery using transitions. I also want text to load into a box, so in affect 2 functions for 1 button. This is harder than it sounds! I am using the following code:

> clubm.onRelease = function() {  
> if (\_root.section != “gallery1/Club\_m.jpg”) {  
> \_root.section = “gallery1/Club\_m.jpg”;  
> \_root.transition.gotoAndPlay(“closing”);  
> }  
> loadText = new LoadVars();  
> loadText.load(“txt/web\_text.txt”);  
> loadText.onLoad = function(blnSuccess) {  
> if (blnSuccess) {  
> trace("ClubM: “+ClubM+” | typeof(ClubM): "+typeof (ClubM));  
> trace("ClubM.print: “+ClubM.print+” | typeof(ClubM.print): "+typeof (ClubM.print));  
> trace("this.print: “+this.print+” | typeof(this.print): "+typeof (this.print));  
> ClubM.print = this.print;  
> }  
> };  
> };

But when I test my movie I get a “error loading url” message refering to the .txt file!  
Can someone point me in the right direction please!

Thanks  
Phil
