# XML availability on all frames

**URL:** <https://forum.kirupa.com/t/xml-availability-on-all-frames/633225>\
**Category:** flash\
**Created:** [May 23, 2015, 1:27am UTC](https://forum.kirupa.com/t/xml-availability-on-all-frames/633225 "2015-05-23T01:27:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottiescotsman](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@scottiescotsman](https://forum.kirupa.com/u/scottiescotsman)\
**Post date:** [May 23, 2015, 1:27am UTC](https://forum.kirupa.com/t/xml-availability-on-all-frames/633225/1 "2015-05-23T01:27:59Z")

</div>

If I have one as3 code frame and multiple layers.  
if the xml is loaded into arrays is it available to all layers with something like

MovieClip(root).firstArray[i];

hope I explained it ok 🙂

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [May 23, 2015, 2:37am UTC](https://forum.kirupa.com/t/xml-availability-on-all-frames/633225/2 "2015-05-23T02:37:20Z")

</div>

Layers don’t matter to ActionScript. For example, if you have `var n = 5` on layer 1, and `trace(n)` on layer two (in the same frame), then it’ll all work just fine.

You mentioned _loading_ XML. If you’re loading in asynchronously, you’ll still have to do the usual event handling to access it. Sort of hard to tell if this’ll be an issue for you.
