# Buttons not working on tweened mc?

**URL:** <https://forum.kirupa.com/t/buttons-not-working-on-tweened-mc/266785>\
**Category:** flash\
**Created:** [July 24, 2008, 11:24am UTC](https://forum.kirupa.com/t/buttons-not-working-on-tweened-mc/266785 "2008-07-24T11:24:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlendbv](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@erlendbv](https://forum.kirupa.com/u/erlendbv)\
**Post date:** [July 24, 2008, 11:24am UTC](https://forum.kirupa.com/t/buttons-not-working-on-tweened-mc/266785/1 "2008-07-24T11:24:23Z")

</div>

Hey guys.

This may be a really stupid question, but I’m stuck with it, so please allow me to share my frustration with you.

I’ve got a movieclip called screenHover, which will fade in on rollover and fade out on rollout. It will contain some buttons, and basically work in the same way as the [Brightcove](http://www.brightcove.com)-player. Here is the AS-code I’m using for tweening the mc;

```
ActionScript Code:
[LEFT][COLOR=#808080]*// Import classes for the fading of the rollOverControls.*[/COLOR]

```

[COLOR=#0000FF]import[/COLOR] mx.[COLOR=#000080]transitions[/COLOR].[COLOR=#000080]Tween[/COLOR];  
[COLOR=#0000FF]import[/COLOR] mx.[COLOR=#000080]transitions[/COLOR].[COLOR=#000080]easing[/COLOR].\*;

[COLOR=#808080]_// First it’s invisible._[/COLOR]  
[COLOR=#808080]_// screenHover.\_alpha = 0;_[/COLOR]

[COLOR=#808080]_// When pointing the mouse over the screen area, fade it in._[/COLOR]  
screenHover.[COLOR=#0000FF]onRollOver[/COLOR] = [COLOR=#000000] **function** [/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#808080]_// Tween (Movieclip-label, variable, function, from-value, [/COLOR]  
[COLOR=#808080]// to-value, frame-count/second-count of effect, boolean for [/COLOR]  
[COLOR=#808080]// choosing frame-count or second-count where false = frames [/COLOR]  
[COLOR=#808080]// and true = seconds)_[/COLOR]  
[COLOR=#000000] **var** [/COLOR] tween\_handler:[COLOR=#0000FF]Object[/COLOR] = [COLOR=#000000] **new** [/COLOR] Tween[COLOR=#000000]([/COLOR]screenHover, [COLOR=#FF0000]"\_alpha"[/COLOR], Strong.[COLOR=#000080]easeIn[/COLOR], [COLOR=#000080]0[/COLOR], [COLOR=#000080]100[/COLOR], [COLOR=#000080]4[/COLOR], [COLOR=#000000] **false** [/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR] [COLOR=#808080]_// end onRollOver()_[/COLOR]

[COLOR=#808080]_// When pointing the mouse away from the screen area, fade it out._[/COLOR]  
screenHover.[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#000000] **function** [/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#808080]_// See description above._[/COLOR]  
[COLOR=#000000] **var** [/COLOR] tween\_handler:[COLOR=#0000FF]Object[/COLOR] = [COLOR=#000000] **new** [/COLOR] Tween[COLOR=#000000]([/COLOR]screenHover, [COLOR=#FF0000]"\_alpha"[/COLOR], Strong.[COLOR=#000080]easeOut[/COLOR], [COLOR=#000080]100[/COLOR], [COLOR=#000080]0[/COLOR], [COLOR=#000080]6[/COLOR], [COLOR=#000000] **false** [/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR] [COLOR=#808080]\*// end onRollOut() \*[/COLOR]

[/LEFT]

Now, the buttons inside of the movieclip don’t work when I use this tween. When I comment it out, the buttons inside work perfectly.

Why? ☹ - It looks so good, but I need both the tween and the buttons. Please suggest how I can solve this issue.

Thanks in advance!

[COLOR=Gray]_EDIT_ Oh, the first line where the \_alpha is set to zero is commented out in this code, but it doesn’t make any difference, though. It was just me playing around trying to figure things out.[/COLOR]
