flashplayer9 setMasker 不工作原因及解决办法

问题:当设置 mc.catchAsBitmap=true;

masker.catchAsBitmap=true;

mc.setMask(masker);

在flashplayer8中能正常工作,在flashplayer9中不能。(player10也有这个问题)

原因:Basically when you set the bitmap caching for an instance in AS2, you are giving ActionScript control over those objects so they no longer honor the timeline control (the animation)

当你在AS2里面用代码设置影片剪辑catchAsBitmap后,时间轴就默认不播放。

解决办法,去掉mc.catchAsBitmap=true;

masker.catchAsBitmap=true;

在影片剪辑属性面板选上catch as Bitmap。

原文地址:https://www.cnblogs.com/1000pen/p/2742258.html