将透明圆圈应用于flash movieclip
有没有办法使电影剪辑的一部分透明?使用动作脚本。 我想在电影唇上创造“洞”,这样我就能看穿它 如果需要的话,我想我可以把movieclip变成一个精灵,如果这样做更容易的话,但是我不熟悉flash,所以我需要学习正确的方法来做这样的事情将透明圆圈应用于flash movieclip,flash,actionscript,transparency,alpha,Flash,Actionscript,Transparency,Alpha,有没有办法使电影剪辑的一部分透明?使用动作脚本。 我想在电影唇上创造“洞”,这样我就能看穿它 如果需要的话,我想我可以把movieclip变成一个精灵,如果这样做更容易的话,但是我不熟悉flash,所以我需要学习正确的方法来做这样的事情 我提前表示感谢。尝试使用该属性尝试使用该属性您还可以签出BlendMode。对于DisplayObject,在BlendMode选项上擦除:您还可以签出BlendMode。对于DisplayObject,在BlendMode选项上擦除:这应该满足您的需要,不需要
我提前表示感谢。尝试使用该属性尝试使用该属性您还可以签出
BlendMode。对于DisplayObject
,在BlendMode
选项上擦除:您还可以签出BlendMode。对于DisplayObject
,在BlendMode
选项上擦除
:这应该满足您的需要,不需要太多花哨的东西:
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
这应该能满足你的需要。如果您还有任何问题,请告诉我 这应该满足您的需要,不需要太多花哨的东西:
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
这应该能满足你的需要。如果您还有任何问题,请告诉我