A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Making using multiple movie clips

  1. #1
    Knowledgable n00b BlueGeek's Avatar
    Join Date
    Nov 2006
    Location
    New York City
    Posts
    137

    Post Making masks using multiple movie clips

    I'm working on a project where in I've found it necessary to mask a background object with MULTIPLE Sprites. I've tried doing this two ways: making one "parent" sprite to which all of the other masks are childed; adding them as individual masks.

    The composite strategy just sort of gave up, Flash doesn't seem to like having to search through it's render tree to do these things and the result was no visible mask or masking (just the full background image). The latter strategy failed for obvious reasons: saying Sprite.mask = so-and-so implies that setting it again will overwrite the last mask.

    Is there any way to use the composite strategy? Or is there a way I can copy over all of my sprites and draw them directly into one new sprite on every frame?

    thanks,

    -Sandy
    Last edited by BlueGeek; 04-04-2011 at 10:08 AM. Reason: title was missing a word
    "...there were only two good books in the hotel gift shop and I had written both of them."
    -Douglas Adams

  2. #2
    Member
    Join Date
    Jul 2000
    Location
    Atlanta
    Posts
    93
    i remember doing this a while back with 2 backgrounds trying to make grass "flow" as well as with a particle engine.

    irrc I made the masks the parent and the sprite the child....

  3. #3
    Knowledgable n00b BlueGeek's Avatar
    Join Date
    Nov 2006
    Location
    New York City
    Posts
    137
    Not entirely sure I understand what you mean. Sorry, I've been ass deep in code for about 2 weeks and I'm mildly burned out. Any chance you could elaborate slightly?
    "...there were only two good books in the hotel gift shop and I had written both of them."
    -Douglas Adams

  4. #4
    Member
    Join Date
    Jul 2000
    Location
    Atlanta
    Posts
    93
    This might help...
    Attached Files Attached Files

Tags for this Thread

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