# Call a function on last frame of external SWF

**URL:** <https://forum.kirupa.com/t/call-a-function-on-last-frame-of-external-swf/246735>\
**Category:** flash\
**Created:** [December 13, 2007, 11:15pm UTC](https://forum.kirupa.com/t/call-a-function-on-last-frame-of-external-swf/246735 "2007-12-13T23:15:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [December 13, 2007, 11:15pm UTC](https://forum.kirupa.com/t/call-a-function-on-last-frame-of-external-swf/246735/1 "2007-12-13T23:15:13Z")

</div>

I have a bunch of SWF files that have x amount of frames on them…When it reaches the end, I want to call a function. The problem is I dont have access to the FLA files. I have the total number of frames by doing

slideHolder.\_totalframes

which gives me all the frames…The only thing I can think of is doing an interval that checks \_currentframe against \_totalframes, but I want to know is their another way to do it? Thanks.  
-Ronnie
