Dynamic Drawing not showing in Load Event

I am loading an XML file and while parsing it, I am drawing some buttons on the stage using the drawing api. Problem is that if I do that from the onLoad event of the XML class, nothing shows on the stage. If I do it from the frame’s load event, then I see what I drew. It seems to me that there needs to be something like a screen refresh triggered, similar to Java’s validate() command. Is there anything like that in Flash that I need to call or it there something else wrong? I will post code if you need it. Thanks.