# \[fmx2004\] learning functions

**URL:** <https://forum.kirupa.com/t/fmx2004-learning-functions/70691>\
**Category:** flash\
**Created:** [November 16, 2004, 4:10pm UTC](https://forum.kirupa.com/t/fmx2004-learning-functions/70691 "2004-11-16T16:10:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tracy981](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@Tracy981](https://forum.kirupa.com/u/Tracy981)\
**Post date:** [November 16, 2004, 4:10pm UTC](https://forum.kirupa.com/t/fmx2004-learning-functions/70691/1 "2004-11-16T16:10:05Z")

</div>

Im trying to learn AS and im following certain examples in the AS book, AS for flash mx, defin guide. Im starting to somewhat understand functions and i wrote the same code they have in the book(ch9,p186) and when i apply it, nothing happens. This is probably a very stupid question, but am i missing something, why isn’t working on my end?

```auto
// store a portable reference to the main timeline.
function moveClip(ball, xDist, yDist) {
	ball._x += 50;
	ball._y += 70;
}
moveClip(ball, 5, 15);

```

thanks  
Tracy
