I import a sprite from SWF that contains only vector graphics. I then set the scale9Grid property of the sprite and 9-slice scaling works as intended. However, whenever I tweak the width/height or scaleX/scaleY properties of the sprite, the 9-slice scaling turns off by itself and in order to enforce it back, I have to either set the cacheAsBitmap property to false and then to true, or to call the invalidate () function of the sprite. It is not a big deal to do it either way, but I was wondering if this is the intended behavior or a bug?
As a side note, in my case the 9-slice scaling works only when the cacheAsBitmap property is set to true, even though the sprite contains vector-only graphics. This is somewhat weird.