# Button within movie clip not working?

**URL:** <https://forum.kirupa.com/t/button-within-movie-clip-not-working/147316>\
**Category:** Uncategorized\
**Created:** [May 9, 2005, 3:56pm UTC](https://forum.kirupa.com/t/button-within-movie-clip-not-working/147316 "2005-05-09T15:56:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madball](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Madball](https://forum.kirupa.com/u/Madball)\
**Post date:** [May 9, 2005, 3:56pm UTC](https://forum.kirupa.com/t/button-within-movie-clip-not-working/147316/1 "2005-05-09T15:56:28Z")

</div>

Hi,

Fallen into another pit of actionscript. This is what I have done. I have created a dynamic text box and called is scroller, and then created another and called that scroller1.

I have created some buttons on the same layer that have this code in them

```auto

on (release) {
	loadText = new LoadVars();
	loadText.load("welcome.txt");
 loadText.load("welcome1.txt");
 picture_holder.loadMovie("image_01.jpg");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			scroller.text = true;
   scroller2.text = true;
			scroller.text = this.welcome;
   scroller2.text = this.welcome1;
		}
	};
}

```

This all works fine. Since I have created an finite menu that has buttons within it, I had to place it on another layer. I added the same action script to it but changed a few stuff so it looked like this

```auto

on (release) {
	loadText = new LoadVars();
	loadText.load("flash.txt");
 loadText.load("flash1.txt");
 picture_holder.loadMovie("");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			scroller.text = true;
   scroller2.text = true;
			scroller.text = this.flash;
   scroller2.text = this.flash1;
		}
	};
}

```

Now when I test it, it doesn’t work? I cannot see anything wrong in the actionscript, but is there something wrong about having it trying to load external text onto another layer?
