0
我將蒙版追加到我的mx:VideoDisplay元素中,以便我可以有圓角。面具,甚至是陰影濾鏡效果都很好,但我無法得到面具的描邊(使用lineStyle)來顯示。研究了很多,並嘗試了很多修復。在我的智慧結束。任何幫助將非常感激。無法在視頻蒙版上獲取描邊以顯示在Flex中
private function applyMask():void {
myMask.graphics.clear();
myMask.graphics.lineStyle(2,0xFFFFFF);
myMask.graphics.beginFill(0xFFFFFF);
myMask.graphics.drawRoundRect(0, 0, 180, 156, 35);
myMask.x = 0;
myMask.y = 0;
videoMy.mask = myMask;
videoMy.filters = [new DropShadowFilter(3)]
}
後來我撥打視頻元素:
<mx:VideoDisplay id="videoMy" right="10" top="10" width="240" height="196"/>
嘗試將視頻和蒙版上的cacheAsBitmap設置爲true – box86rowh 2012-01-06 06:37:32