SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    masking 2 moving movie clips

    I have 2 movie clips that move randomly around the screen. When the shapes overlap the color of the overlapping area should change - is that possible? Any help would be huge - I'm in over my head trying to get this done for a client

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,559
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    You might be able to do what you want using purely blending modes, but if not, you can achieve this by duplicating both clips and any motion tweens on to separate layers, one above the other, but above the originals. On the lower layer, add a colour effect. The upper layer masks the lower and isn't visible. Now when they intersect you will have the necessary area visible. If the motion is controlled dynamically, you can use setMask method for as2 / the movieclip mask property for as3

  3. #3
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Their movements are dynamically generated so I'm not sure how to attached another movie clip to one to sort of "shadow" it

  4. #4
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,559
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    Where ever the dynamic motion is generated, apply it to another clip on stage. If the clip is dynamically attached, then just use the same code to attach a duplicate.


Tags for this Thread

Bookmarks

Posting Permissions

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