Friday, January 23, 2009

Gradient Masks in Flash


Flash does gradients. Flash does masks. But combining the two? Not so simple.

It took a few hours of web searching, but finally somewhere I found a pretty easy solution.

Why:
For me, gradient masks allow for smoothing effects of alterable doll parts. I first used them in the mermaid. You'll notice that some of the tails "blend" into the body, yet both the color of the skin and tail can be changed by the user.

How:
1. Your mask must be in a movie clip, the object to be masked must be in a separate movie clip, and BOTH of those have to be in one all-encompassing movie clip (see bottom picture at right).

2. You actually don't use Flash's "Mask" function at all, so stop touching it! It's all done through the "Blend" toggle, in the Properties panel. Set the Blend as follows (see bottom picture at right):

- All encompassing movie clip: "Layer"
- Masking movie clip: "Erase"
- Movie Clip to be masked: "Normal"

3. The tricky part: The mask will work in reverse of the regular Flash mask (see top picture at right). The parts you want to show must be BLANK, and the parts you want to hide must be OPAQUE.

The good news? You can go to town on the gradients here, and it should work. Eg. A mask with 25% opacity will let the object below show with a 75% opacity etc.

7 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Selamat datang di PunyaPoker.net

    Mari Bergabung Bersama Kami, Tersedia 8 Permainan Dalam 1 User ID:
    - Sakong (New Game).
    - Bandar Poker (New Game).
    - BandarQ (Hot Game).
    - Bandar 66(New Hot Game).
    - Poker.
    - Domino.
    - Capsa Online.
    - AduQ.

    Apa Saja Kelebihan Bermain Di Wesbsite PunyaPoker.net? Berikut Ini Kelebihannya :
    - BONUS TURNOVER 0.5% SETIAP HARI SENIN Dan Tanpa Batas.
    - BONUS REFERAL 10% +10% SEUMUR HIDUP!! Ingat Seumur HIDUP.
    - MIN DEPO IDR 10.000 Dan Prosesnya Super Cepat 1 Menit Selesai.
    - Permainan Bisa Dimainkan Di Smartphone Versi Android Dan Iphone.
    - Win rate 98%.
    - No robot.
    - Fair play 100% player vs player.

    Jadi Jangan Tunggu Lagi? Ayo Segera Bergabung Sebelum Ketinggalan Promonya :)
    Tersedia Bank : BCA, Mandiri, BNI, BRI, Danamon, Permata Dan MAYBANK BII

    Domino QQ
    Texas Poker Indonesia
    Agen Sakong Online
    Agen Capsa Susun

    Agen AduQ
    Agen BandarQ
    Agen Bandar Poker
    Agen Bandar 66

    ReplyDelete