# Xml loads in preview mode, not with swf

**URL:** <https://forum.kirupa.com/t/xml-loads-in-preview-mode-not-with-swf/271960>\
**Category:** Uncategorized\
**Created:** [September 30, 2008, 6:48pm UTC](https://forum.kirupa.com/t/xml-loads-in-preview-mode-not-with-swf/271960 "2008-09-30T18:48:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![panzhuli](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@panzhuli](https://forum.kirupa.com/u/panzhuli)\
**Post date:** [September 30, 2008, 6:48pm UTC](https://forum.kirupa.com/t/xml-loads-in-preview-mode-not-with-swf/271960/1 "2008-09-30T18:48:13Z")

</div>

Hey all -

I have a movie working perfectly when I test it, but when I play the swf, the xml doesn’t load. The .fla and .swf and .html file are all in the same directory, above the ‘\_xml’ directory.

Ideas? here’s my xml load code:

```auto

document_xml.load('_xml/t4Data_en.xml');
ocm_xml.load('_xml/ocmLocal.xml');

```

Thanks!
