# Problem passing variable values (from XML) to variable in child movie

**URL:** <https://forum.kirupa.com/t/problem-passing-variable-values-from-xml-to-variable-in-child-movie/276423>\
**Category:** flash\
**Created:** [November 27, 2008, 1:54am UTC](https://forum.kirupa.com/t/problem-passing-variable-values-from-xml-to-variable-in-child-movie/276423 "2008-11-27T01:54:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Testy](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Testy](https://forum.kirupa.com/u/Testy)\
**Post date:** [November 27, 2008, 1:54am UTC](https://forum.kirupa.com/t/problem-passing-variable-values-from-xml-to-variable-in-child-movie/276423/1 "2008-11-27T01:54:59Z")

</div>

[SIZE=2]I’m reading something from XML, and store it in a variable. I can trace the variable and it shows two items. I can display those two seperately with variable[0] and [1], meaning that it works as intended.[/SIZE]

[SIZE=2]After that, I’m calling a movieclip, which is supposed to read that variable… sadly, it can’t do it. So I resorted to passing the content of the first variable to a variable inside the called movieclip. This works, and tracing the second variable shows both items from the first. However, I cannot access the items seperately with variable2[0] for example. [/SIZE]

[SIZE=2]What’s the problem? The second variable is currently a string. I tried to declare is as other things (like xml or array) as well, but that didn’t help. Is there also a way to make this procedure unnecessary, i.e. can I somehow access the first variable?[/SIZE]

[SIZE=2]I’ve attached the fla/xml/swf in case my description doesn’t make sense![/SIZE]
