# SpotlightEffect? beginGradientFill

**URL:** <https://forum.kirupa.com/t/spotlighteffect-begingradientfill/223913>\
**Category:** Uncategorized\
**Created:** [April 26, 2007, 5:36pm UTC](https://forum.kirupa.com/t/spotlighteffect-begingradientfill/223913 "2007-04-26T17:36:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)\
**Post date:** [April 26, 2007, 5:36pm UTC](https://forum.kirupa.com/t/spotlighteffect-begingradientfill/223913/1 "2007-04-26T17:36:37Z")

</div>

I cant get a spotlight effect with gradientfill to work right i  
create an object that represents the gradient and then i tween it from small to huge… and draw a box the size of the screen and fill it and on each updateMovement I redraw the gradient with a alpha 0 center and a 255 edge…

but it doesnt center right at all…no matter what i do. anyone have any ideas or can make me an example gradient that grows and at the end just the corners are darker?  
It always is off Center…(oh Im using Stage.width/height since it needs to be dynamically resized based on browser…)
