Function learning!

I am working on learning how to work with functions in flash. I ran into a bit of trouble. What I am trying to do is make a function that creates a random _x number. Then have another function that takes that _x number and adds some easing to it. Finally I have a movie clip that will read that last function and move the object to the random _x position and ease into it when clicked. I think I have the basics of it done but I just cant seem to get it to run! I included a file so you can see were I am at with this. If anyone has a more efficient solution to this I am all ears. My hope is that with using functions I will be able to add this script to other objects in the movie more easily. Let me know any thoughts you have I would really appreciate it.