# Var problem

**URL:** <https://forum.kirupa.com/t/var-problem/77813>\
**Category:** Uncategorized\
**Created:** [January 30, 2005, 4:45pm UTC](https://forum.kirupa.com/t/var-problem/77813 "2005-01-30T16:45:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phatbyte](https://avatars.discourse-cdn.com/v4/letter/p/5f9b8f/32.png) [@phatbyte](https://forum.kirupa.com/u/phatbyte)\
**Post date:** [January 30, 2005, 4:45pm UTC](https://forum.kirupa.com/t/var-problem/77813/1 "2005-01-30T16:45:17Z")

</div>

hello!

if i set variable like this - it works!  
t.picUrl = prefix + \_parent.\_parent.ldir + “/”+xmlNode.childNodes\*.attributes.href;

if i set it like this - it doesn’t! but why??  
\_root.pic\_mc.picUrl = prefix + \_parent.\_parent.ldir + “/”+xmlNode.childNodes\*.attributes.href;

\_root.pic\_mc is created and instance name given…  
so it should work - right??

thanks in advance!  
oli
