# Passing mc name as as a parameter

**URL:** https://forum.kirupa.com/t/passing-mc-name-as-as-a-parameter/67398
**Category:** Uncategorized
**Created:** [October 15, 2004, 1:35pm UTC](https://forum.kirupa.com/t/passing-mc-name-as-as-a-parameter/67398 "2004-10-15T13:35:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![leadtrum](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@leadtrum](https://forum.kirupa.com/u/leadtrum)
#### Post date: [October 15, 2004, 1:35pm UTC](https://forum.kirupa.com/t/passing-mc-name-as-as-a-parameter/67398/1 "2004-10-15T13:35:36Z")

</div>

I’m trying to pass an mc instance as a paramter of a function. is this possible because I keep getting errors.

```auto
function moveCircle(sIncrement:Number, sMovie:String):Void {
	sMovie._x +=sIncrement;
}

```

sMovie is the instance i’m trying to reference

```auto

on(release){
	moveCircle(10, "mc_Circle");
}

```

this is the button code

I’m trying to do this to cut down on redundant functions I’ve used in the past for simple as movements and controls. Is this possible?
