我正在为舞台上的动画制作的图像上设置一个可以正常工作的图像,但是当我使用as3更改蒙版时,蒙版会停止跟随图像并停留在一个位置...当图像在图像周围移动时舞台......有没有办法强迫面具粘在图像上?
// set the current mask to null
face_mc.face_one.mask = null;
// assign the new mask
face_mc.face_one.mask = customShape;
// the movie clip is animated by this method whcih tracks a point in a video clip
function cuepointlistener(evt:MetadataEvent):void{
paramObj = evt.info.parameters;
var values:Array = paramObj["Track Point 1_Attach Point"].split(/,/);
face_mc.x = values[0];
face_mc.y = values[1];
}
答案 0 :(得分:1)
您可以将两者放在Sprite
中,然后移动它吗?
答案 1 :(得分:0)
// customShape has to be a child of face_mc
face_mc.addChild( customShape );
face_mc.face_one.mask = customShape;