This content has been marked as final.
Show 3 replies
-
1. Re: remove then add a Sprite clears its graphics.lineStyle
kglad Apr 19, 2011 9:02 AM (in response to eprevot123)from which sprite are you trying to create a bitmap (without rectangle.graphics)? rectangle or its parent?
-
2. Re: remove then add a Sprite clears its graphics.lineStyle
eprevot123 Apr 19, 2011 9:15 AM (in response to kglad)I try to create a bitmap from the parent Sprite, but without its Sprite child that is a rectangle.
As another idea, I set the visible property of the rectangle Sprite to false, then take the snapshot, then reset it to true.
But it does not tell me why removing then re-adding a Sprite, clears the lineStyle color (the thickness stays the same)...
-
3. Re: remove then add a Sprite clears its graphics.lineStyle
kglad Apr 19, 2011 10:15 AM (in response to eprevot123)use:
rectangle.parent.removeChild(rectangle);
// create your bitmap using rectangle.parent, thenrectangle.parent.addChild(rectangle); // restore the rectangle to its parent.



