Masks in AIR with Actionscript 3 -
I'm trying to do a mask on the circle size in Action Script 3 (I'm using the Flex Air Framework ). It is to be done with ecological footprint, each cycle represents an earth. This ecological footprint is inside a container. The problem is that the mask is fixed, though the picture floats. When I scroll down the container, the picture will scroll just fine, but the mask will not clipping the top of the photo. I've put this and other UIMovieClip in a VBox container. The VBox container is still inside another VBox container if I put the fomer VBox container under the latter, the mask will not go with it, hence the circle will not be masked.
mask = new UIIMVE clip (); Mask.graphics.beginFill (0xFFFFFF); Mask.graphics.drawRect (Radius, Radius + Radius * 2 * (ecoWeight-Math.floor (ecoWeight)), 1000,1000); Mask.graphics.endFill (); Earth = new UIMovieClip (); Earth.graphics.beginFill (0xFFFFFF); Earth.graphics.drawCircle (radius, radius, radius); Earth.mask = mask; Earth.graphics.endFill ();
Sucking the mask and what is not often expected from them. I had a lot of luck in conjunction with BlendMode.ALPHA with BlendMode.LAYER.
Comments
Post a Comment