Actionscript3 alpha masking?

后端 未结 3 636
名媛妹妹
名媛妹妹 2021-01-07 06:54

I was trying to apply a spotlight effect on a google map application. Specifically, I draw a circle that follows the mouse and set it as a mask over the map. The problem is

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-07 07:21

    To use alpha masking you need to do the following:

    • apply the mask using actionscript, not the Flash authoring.

    i.e. googleMap.mask = alphaMask;

    • turn bitmap caching on(cacheAsBitmap = true);

    That should do it.

提交回复
热议问题