# blendMode + rotationX/Y/Z

**URL:** <https://forum.kirupa.com/t/blendmode-rotationx-y-z/306836>\
**Category:** flash\
**Created:** [March 23, 2010, 9:17am UTC](https://forum.kirupa.com/t/blendmode-rotationx-y-z/306836 "2010-03-23T09:17:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmivaL](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@SmivaL](https://forum.kirupa.com/u/SmivaL)\
**Post date:** [March 23, 2010, 9:17am UTC](https://forum.kirupa.com/t/blendmode-rotationx-y-z/306836/1 "2010-03-23T09:17:08Z")

</div>

Hi all!  
so, I happened to use blendMode )  
situation: if you change the sprite blendMode and him parent has rotationY (for example), then the blend is not working (bug? ).

Here’s the code does not work (not see the overlay)  
ps: GlobalUtils.createRec, draws a rectangle and returns the sprite

```php
var sp:Sprite = new Sprite();
var sp0:Sprite = GlobalUtils.createRec(20, 20, 300, 40, 0xd70d29, 1);
sp0.blendMode = BlendMode.MULTIPLY;
sp.addChild(sp0);
sp.rotationY = 30; // if you remove this string or rotate sp0, it works
 
var sp1:Sprite = GlobalUtils.createRec(10, 10, 300, 40, 0x0000FF, 1);
 
super.addChild(sp1);
super.addChild(sp);

```

how to solve the problem given the constraints?  
thanks!

Valentin
