Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将透明圆圈应用于flash movieclip_Flash_Actionscript_Transparency_Alpha - Fatal编程技术网

将透明圆圈应用于flash movieclip

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

有没有办法使电影剪辑的一部分透明?使用动作脚本。 我想在电影唇上创造“洞”,这样我就能看穿它

如果需要的话,我想我可以把movieclip变成一个精灵,如果这样做更容易的话,但是我不熟悉flash,所以我需要学习正确的方法来做这样的事情


我提前表示感谢。

尝试使用该属性尝试使用该属性您还可以签出
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
这应该能满足你的需要。如果您还有任何问题,请告诉我