# Reference problem

**URL:** <https://forum.kirupa.com/t/reference-problem/57566>\
**Category:** flash\
**Created:** [July 14, 2004, 11:04am UTC](https://forum.kirupa.com/t/reference-problem/57566 "2004-07-14T11:04:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariachi77](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@mariachi77](https://forum.kirupa.com/u/mariachi77)\
**Post date:** [July 14, 2004, 11:04am UTC](https://forum.kirupa.com/t/reference-problem/57566/1 "2004-07-14T11:04:06Z")

</div>

Does anyone know, why-o-why, the following function call won’t work?

I have an object, dRoot, that contains a LoadVars() object, dat. This LoadVars object has an onLoad handler which \*should \*call a function, init(), in dRoot. Unfortunately, it isn’t. Am I referencing it wrong? Please take a look…

```auto

 dat.parent = dRoot;
 dat.onLoad = function() {
   this.parent.otherVar = this.var.toString();
   this.parent.init();
 }
 

```

Cheers,

Mike
