# Using external variable with components?

**URL:** <https://forum.kirupa.com/t/using-external-variable-with-components/62177>\
**Category:** flash\
**Created:** [August 25, 2004, 3:54pm UTC](https://forum.kirupa.com/t/using-external-variable-with-components/62177 "2004-08-25T15:54:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [August 25, 2004, 3:54pm UTC](https://forum.kirupa.com/t/using-external-variable-with-components/62177/1 "2004-08-25T15:54:03Z")

</div>

hi all,

I am using a component “Hierachical Menu” with a component parameter that loads a xml file by “dir/dir/load.xml”  
([http://www.flashcomponents.net/](http://www.flashcomponents.net/) and then under Menu’s)

Now i want to use a language var in the parameter how would i do that. I am trying “dir/dir/” +lang+ “load.xml”

Is this the good way?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 5:24pm UTC](https://forum.kirupa.com/t/using-external-variable-with-components/62177/2 "2004-08-25T17:24:40Z")

</div>

is there another way? :h:

make sure you validate the language var if it is user input (ie. spelling mistakes/languages not supported by u etc etc ;))

Prophet.
