# Seating Plan from XML - Problem

**URL:** <https://forum.kirupa.com/t/seating-plan-from-xml-problem/247191>\
**Category:** flash\
**Created:** [December 19, 2007, 12:42pm UTC](https://forum.kirupa.com/t/seating-plan-from-xml-problem/247191 "2007-12-19T12:42:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GerryNoble](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@GerryNoble](https://forum.kirupa.com/u/GerryNoble)\
**Post date:** [December 19, 2007, 12:42pm UTC](https://forum.kirupa.com/t/seating-plan-from-xml-problem/247191/1 "2007-12-19T12:42:37Z")

</div>

I am trying to construct a seating plan using a movie clip and an external XML file.

The external XML file holds the seat number and the seat booking status Y or N

I can load the external XML file successfully and draw the seating plan on the screen.

The problem arises when I try to assign the seat status from the xml file to the movie clip I get an “undefined” in the trace window. I believe this is happening because the movie clips are being drawn before the XML file data is loaded.

To correct this I tried setting the XML load code on Frame 1 and the code for drawing the seating plan on frame 2. Interestingly the seating plan on frame 2 appears to draw before the XML file loads (frame 1) - as shown in the trace window output.

.xml and .fla files attached.

Can anyone help?

==============================================================
