Actionscript3 alpha masking?

后端 未结 3 656
名媛妹妹
名媛妹妹 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:12

    Make the mask much larger than it needs to be and fill it with some 'gray' so the map will show through and put the circle in the middle.

    There's an example here: http://www.flashandmath.com/howtos/alphamask/

    The key is the cacheAsBitmap = true, bit.

提交回复
热议问题