Sorry for not directly answering your question, but do you actually need a “beginBitmapFill” here? You could use “beginFill” and just use a solid colour if you don’t require the features of a bitmap.
It’s just an example. In a real project, I need to fill the bitmap with the preloaded texture. Unfortunately, beginBitmapFill only draws the original texture and does not fill the area completely.