Search code examples
flashactionscript-3maskvisiblearea

Determining visible area/invisible area of a masked object


I have a movie clip named circle_mc(see the image on the link below) and a mask object(movie clip) which determines visible area of the circle. User can change the portion which is visible (extend the red area and make it red+blue, gray area is invisible). I need to find proportion of visible area to invisible area (red+blue/gray) so that I can calculate angle.

http://i52.tinypic.com/33w01le.jpg


Solution

  • Here is a working example of a formula.