A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Alpha Gradient mask_in a container

  1. #1
    Member
    Join Date
    May 2008
    Location
    Ireland
    Posts
    77

    Alpha Gradient mask_in a container

    Hi Im using a movie clip to mask out another movieclip(layer).
    This works fine with below code:

    maskee.cacheAsBitmap = true;
    maskMC.cacheAsBitmap = true;
    maskee.setMask("maskMC");

    but when that swf is imported into a container in my main movie the masking does not work. Any ideas?

    thanks

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    replace

    maskee.setMask("maskMC");

    with

    maskee.setMask(maskMC);
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Member
    Join Date
    May 2008
    Location
    Ireland
    Posts
    77
    mate you are ELECTRIC.

    thanks for that.

  4. #4
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    glad i could help mate
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center