# Performing function when reach frame number

**URL:** https://forum.kirupa.com/t/performing-function-when-reach-frame-number/278815
**Category:** flash
**Created:** [January 6, 2009, 9:11am UTC](https://forum.kirupa.com/t/performing-function-when-reach-frame-number/278815 "2009-01-06T09:11:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Alize](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Alize](https://forum.kirupa.com/u/Alize)
#### Post date: [January 6, 2009, 9:11am UTC](https://forum.kirupa.com/t/performing-function-when-reach-frame-number/278815/1 "2009-01-06T09:11:22Z")

</div>

I am creating a simple mini-gallery in flash, I am quite new to AS3 and trying to learn it all, I am stuck on trying to execute some code when an animation of mine has finished. I have a fade out, when it reaches the last frame of the animation, I want to execute a function, how can I do this? From what I understand, I can’t call the function from the timeline?

If you would like to see my code, let me know! Cheers
