# Movie Clip Buttons Not Working Any Ideas

**URL:** <https://forum.kirupa.com/t/movie-clip-buttons-not-working-any-ideas/47030>\
**Category:** flash\
**Created:** [March 30, 2004, 11:13am UTC](https://forum.kirupa.com/t/movie-clip-buttons-not-working-any-ideas/47030 "2004-03-30T11:13:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jezthomp](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jezthomp](https://forum.kirupa.com/u/Jezthomp)\
**Post date:** [March 30, 2004, 11:13am UTC](https://forum.kirupa.com/t/movie-clip-buttons-not-working-any-ideas/47030/1 "2004-03-30T11:13:48Z")

</div>

I have the following script over 3 buttons they are in one frame in there own layer with the below script in a actions layer above. This does exactly what i want however, i am struggling with actualy making the buttons work.

I need it to roll over and then it plays a mc later down the timeline on another layer obviously and then click go to a new page later in the timeline ore a new scene have not yet decided yet.

Any ideas am sure its simple but i cannot get it to work, i have the curser changing but no click through.

Thanks for any advice or pointing in the right direction.🙂

[AS]stop();

targetmc = “nomovieClip”;

function fadeIt (mcName, alphaPower)  
{  
mcName.targAlpha = alphaPower;  
}

\_root.menuBar.onEnterFrame = function ()  
{

```
if(_root.targetmc == "home")
{
	_root.fadeIt(_root.contact, 20);
	_root.fadeIt (_root.work, 20);	
	_root.fadeIt (_root.home, 100);
}
	
if(_root.targetmc == "contact")
{
	_root.fadeIt (_root.home, 20);
	_root.fadeIt (_root.work, 20);
	_root.fadeIt (_root.contact, 100);
}

if(_root.targetmc == "work")
{
	_root.fadeIt (_root.home,20);
	_root.fadeIt (_root.contact, 20);
	_root.fadeIt (_root.work,100);
}

if(_root.menuBar.hitTest(_root._xmouse, _root._ymouse) == true)
{
	_root.fadeIt (_root.menuBar, 0);
}
else
{
	_root.fadeIt (_root.home, 100);
	_root.fadeIt (_root.work, 100);
	_root.fadeIt (_root.contact, 100);
}

```

}  
\_root.home.onLoad = function ()  
{  
\_root.home.targAlpha = 100;  
}

\_root.home.onEnterFrame = function ()  
{  
cAlpha = \_root.home.\_alpha;  
difAlpha = cAlpha-\_root.home.targAlpha;  
setProperty(\_root.home,\_alpha,cAlpha-(difAlpha/5));

```
if(this.hitTest(_root._xmouse, _root._ymouse) == true) 
{
	_root.targetmc = "home";
	
	
}

```

}  
\_root.contact.onLoad = function ()  
{  
\_root.fadeIt (\_root.contact, 100);  
}

\_root.contact.onEnterFrame = function()  
{  
cAlpha = \_root.contact.\_alpha;  
difAlpha = cAlpha-\_root.contact.targAlpha;  
setProperty(\_root.contact,\_alpha,cAlpha-(difAlpha/5));  
if(this.hitTest(\_root.\_xmouse, \_root.\_ymouse) == true)  
{  
\_root.targetmc = “contact”;

```
}

```

}  
\_root.work.onLoad = function()  
{  
\_root.fadeIt(\_root.work, 100);

}

\_root.work.onEnterFrame = function ()  
{  
cAlpha = \_root.work.\_alpha;  
difAlpha = cAlpha-\_root.work.targAlpha;  
setProperty(\_root.work,\_alpha,cAlpha-(difAlpha/5));  
if(this.hitTest(\_root.\_xmouse, \_root.\_ymouse) == true)  
{  
\_root.targetmc = “work”;

```
}

```

}[/AS]
