# Subs need to be transparent on start-up

**URL:** <https://forum.kirupa.com/t/subs-need-to-be-transparent-on-start-up/285213>\
**Category:** flash\
**Created:** [March 28, 2009, 6:11pm UTC](https://forum.kirupa.com/t/subs-need-to-be-transparent-on-start-up/285213 "2009-03-28T18:11:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HlizDesigner](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@HlizDesigner](https://forum.kirupa.com/u/HlizDesigner)\
**Post date:** [March 28, 2009, 6:11pm UTC](https://forum.kirupa.com/t/subs-need-to-be-transparent-on-start-up/285213/1 "2009-03-28T18:11:24Z")

</div>

[http://www.gobrowncow.com/hannah/engulf/index.htm](http://www.gobrowncow.com/hannah/engulf/index.htm)

I’m almost finished with this site, but have one last problem. All the sub menus should be transparent when the page opens but the two on the right are visible and I don’t know why. What am I missing in my actionscript?

import mx.transitions.Tween;

var myTween:Tween;  
var myTween2:Tween;  
var myTween3:Tween;

newSub\_mc.worship\_btn.enabled = false;  
newSub\_mc.snapshot\_btn.enabled = false;  
newSub\_mc.location\_btn.enabled = false;  
newSub\_mc.getengulfed\_btn.enabled = false;

projectSub\_mc.current\_btn.enabled = false;  
projectSub\_mc.past\_btn.enabled = false;  
projectSub\_mc.missions\_btn.enabled = false;  
projectSub\_mc.volunteer\_btn.enabled = false;

discoverSub\_mc.mission\_btn.enabled = false;  
discoverSub\_mc.adults\_btn.enabled = false;  
discoverSub\_mc.children\_btn.enabled = false;  
discoverSub\_mc.music\_btn.enabled = false;  
discoverSub\_mc.staff\_btn.enabled = false;  
discoverSub\_mc.give\_btn.enabled = false;

new\_btn.onRollOver = function () {  
newSub\_mc.worship\_btn.enabled = true;  
newSub\_mc.snapshot\_btn.enabled = true;  
newSub\_mc.location\_btn.enabled = true;  
newSub\_mc.getengulfed\_btn.enabled = true;  
myTween = new Tween(newSub\_mc,"\_alpha",Regular.easeOut,0,100,1,false);  
projectSub\_mc.\_alpha = 0;  
discoverSub\_mc.\_alpha = 0;  
}

project\_btn.onRollOver = function () {  
projectSub\_mc.current\_btn.enabled = true;  
projectSub\_mc.past\_btn.enabled = true;  
projectSub\_mc.missions\_btn.enabled = true;  
projectSub\_mc.volunteer\_btn.enabled = true;  
myTween2 = new Tween(projectSub\_mc,"\_alpha",Regular.easeOut,0,100,1,false);  
discoverSub\_mc.\_alpha = 0;  
newSub\_mc.\_alpha = 0;  
}

events\_btn.onRollOver = function () {  
projectSub\_mc.\_alpha = 0;  
newSub\_mc.\_alpha = 0;  
discoverSub\_mc.alpha = 0;  
}

discover\_btn.onRollOver = function () {  
discoverSub\_mc.mission\_btn.enabled = true;  
discoverSub\_mc.adults\_btn.enabled = true;  
discoverSub\_mc.children\_btn.enabled = true;  
discoverSub\_mc.music\_btn.enabled = true;  
discoverSub\_mc.staff\_btn.enabled = true;  
discoverSub\_mc.give\_btn.enabled = true;  
myTween3 = new  
Tween(discoverSub\_mc,"\_alpha",Regular.easeOut,0,100,1,false);  
projectSub\_mc.\_alpha = 0;  
newSub\_mc.\_alpha = 0;  
}
