# Functions

**URL:** <https://forum.kirupa.com/t/functions/122541>\
**Category:** Uncategorized\
**Created:** [September 14, 2004, 5:25pm UTC](https://forum.kirupa.com/t/functions/122541 "2004-09-14T17:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jive](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jive](https://forum.kirupa.com/u/jive)\
**Post date:** [September 14, 2004, 5:25pm UTC](https://forum.kirupa.com/t/functions/122541/1 "2004-09-14T17:25:35Z")

</div>

I’m reading Colin Moocks Actionscript for flash MX book and upon reading functions he instructs to create a symbol named ballSymbol, than put an instance on the stage (frame 1 maintimeline) and call it ball. Than on frame 1 on the main timeline put the following actionscript:

```auto

_global.mainTimeline = this;
 
function moveBall() {
mainTimeline.ball._x += 10;
mainTimeline.ball._y += 10;
};
moveBall();

```

The ball is supposed to move diagonally. But my problem is when I test the movie, nothing happens. No movement, nothing…

What am I missing?
