Reputation: 1
I am making buttons for scaleform with Flash. I want to have the background of each button be a grid of squares kind of like graph paper. I have been using bitmap fills of a grid in order to achieve this however if I simply stretch the button in any direction, the grid stretches along with it. I don't want this to happen.
I have attached a picture illustrating what I am talking about.Click here
Upvotes: 0
Views: 114
Reputation: 1042
You need to specify a Matrix parameter in beginBitmapFill() to counter scale against the size of the bitmap. The stretching is due to the button's scaling values affecting the child shape. The inverse of this should be used to re-render the bitmap fill.
Upvotes: 1