# Please Help with understanding parameters being passed in a function

**URL:** https://forum.kirupa.com/t/please-help-with-understanding-parameters-being-passed-in-a-function/255214
**Category:** flash
**Created:** [March 20, 2008, 4:59am UTC](https://forum.kirupa.com/t/please-help-with-understanding-parameters-being-passed-in-a-function/255214 "2008-03-20T04:59:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nubian](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nubian](https://forum.kirupa.com/u/nubian)
#### Post date: [March 20, 2008, 4:59am UTC](https://forum.kirupa.com/t/please-help-with-understanding-parameters-being-passed-in-a-function/255214/1 "2008-03-20T04:59:26Z")

</div>

how is it that the parameters being passed in the loaderListener.onLoadProgress function a reference of the mc doing the events? i’m having a hard time understanding this. :-/

```php

var mcl:MovieClipLoader = new MovieClipLoader();

somBtn.onRelease = function() {
    mcl.loadClip("some.swf",someMc);
};

var loaderListener:Object = new Object();

loaderListener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
    txtLoaded.text = String(Math.floor(bytesLoaded/bytesTotal*100))+"% loaded";
    mcProgress._xscale = bytesLoaded/bytesTotal*100;

mcl.addListener(loaderListener);
};

```

please can someone explain this to me in layman terms would very much be appreciated.

thank you
