# Function learning!

**URL:** <https://forum.kirupa.com/t/function-learning/161762>\
**Category:** Uncategorized\
**Created:** [September 6, 2005, 11:20pm UTC](https://forum.kirupa.com/t/function-learning/161762 "2005-09-06T23:20:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAMON](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@RAMON](https://forum.kirupa.com/u/RAMON)\
**Post date:** [September 6, 2005, 11:20pm UTC](https://forum.kirupa.com/t/function-learning/161762/1 "2005-09-06T23:20:49Z")

</div>

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.
