# AS Opacity in photo gallery

**URL:** <https://forum.kirupa.com/t/as-opacity-in-photo-gallery/82829>\
**Category:** flash\
**Created:** [March 14, 2005, 1:42am UTC](https://forum.kirupa.com/t/as-opacity-in-photo-gallery/82829 "2005-03-14T01:42:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![solid323](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@solid323](https://forum.kirupa.com/u/solid323)\
**Post date:** [March 14, 2005, 1:42am UTC](https://forum.kirupa.com/t/as-opacity-in-photo-gallery/82829/1 "2005-03-14T01:42:50Z")

</div>

Hey people.

I have a photo gallery with a corresponding set of buttons for each image along with a forward and back button. Now I currently have an animation per image that will fade in and out. I would like to get rid of the animation all together and just have the opacity fade in/out based in AS. Is the fade out feesible with AS?

stop();  
function next(mc){  
if(currentMC!=null && currentMC!=mc){  
currentMC.gotoAndPlay(‘out’);  
}  
if(currentMC != mc){  
currentMC = mc;  
currentMC.gotoAndPlay(‘in’);  
}  
}  
1.onPress=function(){  
next(mc01)  
}  
2.onPress=function(){  
next(mc02)  
}  
3.onPress=function(){  
next(mc03)  
}  
4.onPress=function(){  
next(mc04)  
}  
5.onPress=function(){  
next(mc05)  
}  
6.onPress=function(){  
next(mc06)  
}  
7.onPress=function(){  
next(mc07)  
}  
8.onPress=function(){  
next(mc08)  
}  
9.onPress=function(){  
next(mc09)  
}  
10.onPress=function(){  
next(mc10)  
}  
11.onPress=function(){  
next(mc11)  
}  
12.onPress=function(){  
next(mc12)  
}  
13.onPress=function(){  
next(mc13)  
}  
14.onPress=function(){  
next(mc14)  
}  
15.onPress=function(){  
next(mc15)  
}  
//egnor this below bit it just so it showed the name number of the mc.  
for(i=1;i\<7;i++){  
this[“mc”+i].dynamictextboxinMc=[“Section\_”+i];  
}

that is my code thus far… Any help would greatly be apprecited.

M
