Gradient mask in flash

Out of context: Reply #3

  • Started
  • Last post
  • 9 Responses
  • randalldon0

    If you're using Flash 8+ (as2) you can do as skt says (black mc with hole cut out). You can use this as a gradient mask by applying a blur to the mc (with as2 or on the timeline). If you want any animation on the mask this will need to be done within the mc.

    Once you have the blur applied to the mc and any animation sorted give the mask an instance name eg "maskInstance" and give your mc an instance name eg "mcInstance". Then is the first frame actions on the main timeline put this code:

    mcInstance.setMask(maskInstance...

    The final stage is to make sure you have "use runtime bitmap caching" ticked in the symbol properties for both the mc & the mask.

    You should be good to go from there.

    Hope it helps!

View thread