# Help converting these actions to a function

**URL:** https://forum.kirupa.com/t/help-converting-these-actions-to-a-function/103745
**Category:** Uncategorized
**Created:** [March 8, 2004, 9:23pm UTC](https://forum.kirupa.com/t/help-converting-these-actions-to-a-function/103745 "2004-03-08T21:23:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gonzales](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gonzales](https://forum.kirupa.com/u/gonzales)
#### Post date: [March 8, 2004, 9:23pm UTC](https://forum.kirupa.com/t/help-converting-these-actions-to-a-function/103745/1 "2004-03-08T21:23:06Z")

</div>

hi all -

will someone help me convert these actions to a function? attached is my .fla. im trying to create a button that has three states: up, over, and visited. i have one working but it uses actions specific to it (ie: on(release), on(rollOver)…). so i made another using a function and the button calls it but the rollOver state isnt working… any help would be great.

thanks!
