# Function with properties what's wrong?

**URL:** <https://forum.kirupa.com/t/function-with-properties-whats-wrong/206593>\
**Category:** flash\
**Created:** [November 9, 2006, 5:44pm UTC](https://forum.kirupa.com/t/function-with-properties-whats-wrong/206593 "2006-11-09T17:44:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [November 9, 2006, 5:44pm UTC](https://forum.kirupa.com/t/function-with-properties-whats-wrong/206593/1 "2006-11-09T17:44:49Z")

</div>

Hi,

What am I doing wrong

```auto

function setNavTxt(name_mc:MovieClip, i:Number, navArray:Array) {
	trace(name_mc);
	trace(i);
	trace(navArray);
}
setNavTxt(test,2,testArray);

```

gives me

> 

undefined  
2  
undefined
