# Mx.utils.Delegate.create

**URL:** <https://forum.kirupa.com/t/mx-utils-delegate-create/212886>\
**Category:** Uncategorized\
**Created:** [January 15, 2007, 1:52pm UTC](https://forum.kirupa.com/t/mx-utils-delegate-create/212886 "2007-01-15T13:52:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![octopus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/octopus/32/3176_2.png) [@octopus](https://forum.kirupa.com/u/octopus)\
**Post date:** [January 15, 2007, 1:52pm UTC](https://forum.kirupa.com/t/mx-utils-delegate-create/212886/1 "2007-01-15T13:52:17Z")

</div>

Hi,  
I am using the mx.utils.Delegate.create class to run a function after an event listener is invoked such that:

datareceiver.onLoad = mx.utils.Delegate.create(this,dothis);

The dothis function executes properly, but datareceiver becomes unscopeable in the dothis function. datareceiver is receiving variables back from a php script, so I need access to datareceiver.returnData So, in the dothis function I want to do something like:

this.php\_response.text = datareceiver.returnData;

How is this accomplished? and if you could provide a bit of theory behind it that would be great…TIA
