Alpha transparency on objects with children

Ever tried to change the alpha of a movieclip or sprite with multiple children and been annoyed that you can see all of the children changing their alphas separately, creating an undesired effect? An awesome trick is to apply an empty filter, like a blur of 0, and the parent object will be treated as one solid object and give the desired alpha transparency effect. See it in action here:

http://labs.eric-decker.com/?p=178

Update:

My manager, Mark, noticed in the comments of the page I blogged on previously that there’s an even better way to accomplish this…

“If you set the blendMode of your containing DisplayObject to BlendMode.LAYER Flash will consider this DisplayObject as only one layer and will change the alpha the way you normally think it would.”

http://www.zedia.net/2008/blendmodelayer-a-must-when-changing-alpha-of-a-displayobject-containing-other-displayobject/

Tags: , , ,

7 Responses to “Alpha transparency on objects with children”

  1. Vunder says:

    Поздравляю…

    С наступающим

  2. Vladimir says:

    ……

    Бизнесмен из Вас отличный…

  3. Monah says:

    http://rel” rel=”nofollow”>хм…

    Что то со ссылками…

  4. Frankie says:

    Hello! Please e-mail me your contacts. I have a question jack@infansport.ru” rel=”nofollow”>……

    Thank you!…

  5. MARSHALL says:

    PillSpot.org. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Pillspot.org. Vitamins@buy.online” rel=”nofollow”>.…

    Categories: Stop SmokingAntiviral.Eye Care.Antidepressants.Womens Health.Blood Pressure/Heart.Stomach.Antidiabetic.Pain Relief.Weight Loss.Vitamins/Herbal Supplements.Mental HealthAntibiotics.Skin Care.Mens Health.Anti-allergic/Asthma.Anxiety/Slee…

Leave a Reply