# dropShadow Pixel shift

**URL:** <https://forum.kirupa.com/t/dropshadow-pixel-shift/298678>\
**Category:** flash\
**Created:** [October 22, 2009, 8:42pm UTC](https://forum.kirupa.com/t/dropshadow-pixel-shift/298678 "2009-10-22T20:42:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tical](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@Tical](https://forum.kirupa.com/u/Tical)\
**Post date:** [October 22, 2009, 8:42pm UTC](https://forum.kirupa.com/t/dropshadow-pixel-shift/298678/1 "2009-10-22T20:42:43Z")

</div>

I’m adding a drop shadow on a vector based movieClip and am placing it on the stage w/ a x and y tween…it is in the library and am calling to it via its class name.

It is placed on the stage just find and looks good, then once it is rolled over it has a 1 pixel shift…after that it never does it again…

Would anyone know why I am getting the pixel shift on the first time it is rolled over?

basically it looks like so:

```
addChild(introBtn);

introBtn.twn3 = new Tween(introBtn, "x", Strong.easeOut, brainOB._pageWidth / 2, (brainOB._pageWidth / 2) - (introBtn.width / 2), 1, true);
introBtn.twn4 = new Tween(introBtn, "y", Strong.easeOut, 1500, (brainOB._pageHeight / 2) + (startCapTxt.height), 1, true);

```

\_dropShdwFilter(introBtn);

function \_dropShdwFilter(obj:Object):void {  
var shadow:DropShadowFilter = new DropShadowFilter();  
shadow.distance = 3;  
shadow.angle = 45;  
shadow.alpha = .55;  
shadow.blurX = 8;  
shadow.blurY = 8;  
obj.filters = [shadow];  
}
