# Targeting user-defined function?

**URL:** <https://forum.kirupa.com/t/targeting-user-defined-function/183024>\
**Category:** Uncategorized\
**Created:** [March 23, 2006, 5:58am UTC](https://forum.kirupa.com/t/targeting-user-defined-function/183024 "2006-03-23T05:58:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neutrino](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@neutrino](https://forum.kirupa.com/u/neutrino)\
**Post date:** [March 23, 2006, 5:58am UTC](https://forum.kirupa.com/t/targeting-user-defined-function/183024/1 "2006-03-23T05:58:31Z")

</div>

I created a function that is called correctly when a combobox change() event occurs. Everything is fine in this movie, but when I load the movie (using loadMovie()) with a preloader, it breaks! I can’t call the function no matter what pathname I use (this.\_parent, this.\_parent.\_parent, \_root., etc etc) It’s a relative path:

```auto
on(change) {
this._parent._parent.myfunc();
}

```

Everything should be exactly the same because of the relative target - but the function is not called when loadMovie() is used.

If this matters, the movie (not the preloader) has this.\_lockroot = true in it.

Any ideas? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![neutrino](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@neutrino](https://forum.kirupa.com/u/neutrino)\
**Post date:** [March 23, 2006, 6:22am UTC](https://forum.kirupa.com/t/targeting-user-defined-function/183024/2 "2006-03-23T06:22:21Z")

</div>

Nevermind, I solved the problem.

The target path was correct - everything is as it should be regarding relative references. The problem was that my function was taking arguments which depended on the exact path…when I updated those, it worked fine :pa:
