# Dynamic Drawing not showing in Load Event

**URL:** <https://forum.kirupa.com/t/dynamic-drawing-not-showing-in-load-event/151733>\
**Category:** flash\
**Created:** [June 17, 2005, 5:16pm UTC](https://forum.kirupa.com/t/dynamic-drawing-not-showing-in-load-event/151733 "2005-06-17T17:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![goldleader](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@goldleader](https://forum.kirupa.com/u/goldleader)\
**Post date:** [June 17, 2005, 5:16pm UTC](https://forum.kirupa.com/t/dynamic-drawing-not-showing-in-load-event/151733/1 "2005-06-17T17:16:07Z")

</div>

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.
