100% liquid layout Event.ACTIVATE delay

Ave Kirupers!

I’m coding my first AS3 based mini commercial project. Nothing fancy, just a dynamic splash screen for launching interstitials dynamically.

The idea is having a liquid layout with AS3, positionning objects on the fly with Event.RESIZE and Event.ACTIVATE.

I have 2 movieclips on the stage. The problem is that there’s a small (but visible and annoying :m:) delay before the ACTIVATE event fires, and for a few milliseconds you can see the mess on the stage…

Any ideas?

Thx

I solved it by creating a function outside the handler and caling that function from the handler, but also from the constructor of the document class. This way, the positioning is instantaneous.

It’s an ugly solution, but it works until I find out what the heck is causing the delay.