# Any ideas how to change this?

**URL:** https://forum.kirupa.com/t/any-ideas-how-to-change-this/170544
**Category:** Uncategorized
**Created:** [November 27, 2005, 12:28pm UTC](https://forum.kirupa.com/t/any-ideas-how-to-change-this/170544 "2005-11-27T12:28:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![youwh](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@youwh](https://forum.kirupa.com/u/youwh)
#### Post date: [November 27, 2005, 12:28pm UTC](https://forum.kirupa.com/t/any-ideas-how-to-change-this/170544/1 "2005-11-27T12:28:11Z")

</div>

So below this is the script to run the swf on its own. So this work perfectly.  
Now i wanted it to be loaded into the main swf inside of some movieclips.  
According to other loaded swf to the min swf,i need  
:var \_l1=\_root.slide.test6

so my problem is where to input the “\_l1” variable? seems like changing all the “this” to “\_l1” and at “\_l1” infront of “btn” and “mc” is not enough. can someone help please?

code:  
MovieClip.prototype.fadeIn = function(minAlpha, maxAlpha, speed) {

```
this._alpha = minAlpha;
this.trigger = true;

this.onEnterFrame = function() {
	this._alpha += speed;
	if (this._alpha&gt;=maxAlpha) {
		this._alpha = maxAlpha;
		
		this.trigger = false;
		
	}
};

```

};  
MovieClip.prototype.fadeOut = function(minAlpha, maxAlpha, speed, clip) {

```
this.onEnterFrame = function() {
	this._alpha -= speed;
	if (this._alpha&lt;=minAlpha) {
		this._alpha = minAlpha;
		this.trigger = false;
		clip._visible = false;
	}
};

```

};  
function afterRO(cur) {

```
cur.fadeIn(0, 100, 10);
cur._visible = true;
cur.onRollOut = function() {
	cur.fadeOut(0, 100, 15, cur);
};

```

}  
btn1.onRollOver = function() {  
afterRO(mc1);  
};  
btn2.onRollOver = function() {  
afterRO(mc2);  
};  
btn3.onRollOver = function() {  
afterRO(mc3);  
};
