Reputation: 18295
I've got a timer event which seems to once in a while call itself before the ENTER_FRAME
event handler which I made to force a Bitmap
object to be top-most at all times by adding itself to the stage again.
The timer event fires every 50 milliseconds.
I tried setting the priority of the ENTER_FRAME
event to 1, which reduced the ugly flickering, but did not remove it.
How can I force this Bitmap
object to be top-most at literally all times with no flickering whatsoever?
Upvotes: 0
Views: 67
Reputation: 15570
Create two container MovieClips at the root of your application. Put all of your other display objects in the lower one and the Bitmap in the higher one. It saves you having to run a loop at all.
Alternatively, whenever you add something to the stage, instead of using addChild, use addChildAt(newChild,getChildIndex(bitmap)-1);
Upvotes: 3