2011-03-18 3 views
1

무비 클립을 투명하게 만들 수있는 방법이 있습니까? 동작 스크립트 사용하기. 무비 클립에 '구멍'을 만들어서 볼 수 있습니다.플래시 무비 클립에 투명 원을 적용하십시오.

필요하다면 영화 클립을 쉽게 만들면 영화 클립을 변경할 수 있다고 생각하지만 플래시에 익숙하지 않아서 그런 일을하는 올바른 방법을 배워야합니다.

미리 감사드립니다.

답변

1

당신은 또한 DisplayObjectblendMode 옵션 BlendMode.ERASE을 확인할 수 있습니다 mask 특성

0

이것은 당신이 무엇을해야한다, 너무 멋진 아무것도 필요하지 않습니다 :

var s:Sprite = new Sprite(); // create a sprite to holder your image. 
s.addChild(myImage); // add your image 
addChild(s); // add your sprite to the stage. 

var masker:Sprite = new Sprite(); // create a second sprite to be the mask 
masker.graphics.beginFill(0x000000); // draw the shapes you want to use as masks 
masker.graphics.drawCircle(50, 50, 100); // ...for instance, this circle 
masker.graphics.endFill(); 
addChild(masker); // add your masker to the stage 

s.mask = masker; // set the mask property of your image holder to be the masker 

그게 당신이 필요한 일을해야합니다. 더 궁금한 점이 있으면 알려주세요.

관련 문제