flash onResize Q???
flash onResize Q???
Out of context: Reply #1
- Started
- Last post
- 16 Responses
- kult0
I have to run out for a sec, and this isn't answering your question, but you should not be calculating the Stage.width / 2 every single time.
Calculate it once at the top of your loop, set it to a variable, and pass it around where necessary.
It's not as noticeable since you're only doing it in onResize events, but if you were to have an animated positioning (like in a frame event handler loop) it would really speed things up for you.