Can you help me make my code more efficient?

Hi,

I’m using similar sections of code to the below throughout my site - but want it to be more efficient if possible. Can anyone please post me an example of how I could do this? I’d be very grateful :slight_smile:

function fadeinweddingitems(event:Event):void
{
weddingstext_mc.alpha += .05;
brides_mc.alpha += .05;
weddingvideosbartext_mc.alpha += .05;
sampleweddingvideo1photodiscstext_mc.alpha += .05;
sampleweddingvideo1photodiscstext2_mc.alpha += .05;

    if(weddingstext_mc.alpha >= 1)
    {
        weddingstext_mc.alpha = 1;
        brides_mc.alpha = 1;
        weddingvideosbartext_mc.alpha = 1;
        sampleweddingvideo1photodiscstext_mc.alpha = 1;
        sampleweddingvideo1photodiscstext2_mc.alpha = 1;
                
        weddingstext_mc.removeEventListener(Event.ENTER_FRAME, fadeinweddingitems);
    }

}

Thanks in advance!