# Brief function question

**URL:** <https://forum.kirupa.com/t/brief-function-question/177228>\
**Category:** flash\
**Created:** [January 31, 2006, 6:24am UTC](https://forum.kirupa.com/t/brief-function-question/177228 "2006-01-31T06:24:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [January 31, 2006, 6:24am UTC](https://forum.kirupa.com/t/brief-function-question/177228/1 "2006-01-31T06:24:51Z")

</div>

```auto

function animateDown(target_Y:Number, target_mc:String, speed:Number) {
    //i want to reference the target_mcs _y
}

```

I have this function definition in a keyrame on the \_root timeline. It chucks an error if i try to set the

target\_mc.\_y

how can i set up my function so it can be passed any target\_mc from anywhere and change its \_y? wahts the syntax?
