Hello everybody.

I am consistently bugged with some errors that come and go without my understanding of what is happening.

Every time I draw a gradient box throuh the code (I use a lot of them for the backgrounds with dynamic colours) I can just pray that it shows on the stage. Most of the time it does, but some times it doesn't. The trace statement is lying to me that the graphics is on the stage.

I resize dynamically a textfield to the height of the text in it. Most of the time it resizes correctly, but some times it doesn't, and makes my next line of text invisible. The trace statement again is lying to me that the textfield was resized.

Is there any way to make sure that my code is executed correctly or at least to find the error and fix it?

The example of the text animation and dynamic background I use is here:
http://rxtv.ca/DSS_demo/demoDell.html