Sorry to keep asking so many questions, but you guys are the best at answering what Google does not. :thumb:
I want several more features in getBounds()! What are my options for workarounds on the following? Do they already exist somewhere?
Ignore all Graphics data. Only get total bounds of all children. getRect() will ignore storkes, but not fills, so that’s not what I’m looking for. This may be achieved by looping through each and every child, getting the getBounds of it, and then using Rectangle.union() to combine all. However, this seems very inefficient.
Ignore all Children, only get Graphics data bounds. There isn’t anything in the Graphics class that tells you what is already on the screen. You could temporarily copy graphics data to a blank shape, use Graphics.clear(), and then copy the graphics data back, but again, slow and inefficient.
**Also, does anyone have any idea of the overhead involved in getBounds? **(Mainly speed wise, memory footprint makes little difference at this point) Does Flash need to recalculate everything every time the function is called, or is it smart enough only to update the value if it’s contents actually change in any way? Will it bogg down my code if I put several for various items in an ENTER_FRAME or tween?