# Passing Movie clips as parameters

**URL:** <https://forum.kirupa.com/t/passing-movie-clips-as-parameters/135832>\
**Category:** Uncategorized\
**Created:** [January 31, 2005, 12:50am UTC](https://forum.kirupa.com/t/passing-movie-clips-as-parameters/135832 "2005-01-31T00:50:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlyWooD](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@PlyWooD](https://forum.kirupa.com/u/PlyWooD)\
**Post date:** [January 31, 2005, 12:50am UTC](https://forum.kirupa.com/t/passing-movie-clips-as-parameters/135832/1 "2005-01-31T00:50:57Z")

</div>

Hi,

I have a flash movie where I make several duplicate movies using this code:

```auto
 for(i=0; i < 5; i++) {
duplicateMovieClip(_root.clover, "clover"+i, i);
}

```

In the actions for my “\_root.clover” movie clip, I have the following:

```auto
 
onClipEvent (enterFrame) {
 
this._x +=1;
this._y +=1
}

```

Is there anyway I can pass the current movie clips to another outside method and perform actions on it instead of referencing it from inside the movie clip?

For example,

```auto
 
 
onClipEvent (enterFrame) {
 
_root.outsideMethod(this);
}
 

```

and have this excecuted in an outisde method:

```auto

outsideMethod = function(movieClip) {
 
movieClip._x +=1;
movieClip._y -=1;
 
}
 

```

Where movieClip could be any random variable, _ **not** _ the name of the movie clip.

Any thoughts?

Any help would be greatly appreciated.

Thank you for your time!
