# Calling Flash Function on specific frame?

**URL:** https://forum.kirupa.com/t/calling-flash-function-on-specific-frame/255549
**Category:** flash
**Created:** [March 24, 2008, 6:00pm UTC](https://forum.kirupa.com/t/calling-flash-function-on-specific-frame/255549 "2008-03-24T18:00:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ibanez271](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@Ibanez271](https://forum.kirupa.com/u/Ibanez271)
#### Post date: [March 24, 2008, 6:00pm UTC](https://forum.kirupa.com/t/calling-flash-function-on-specific-frame/255549/1 "2008-03-24T18:00:10Z")

</div>

I have a function declaration on frame 1. Is there any way to call this function from frame 1 but use information on lets say frame 3?

For ex.

Frame 1:

```auto

function getTSText()
{
   var TS:TextSnapshot = this.textSnapshot;
   textArray.push({curFrame:currentFrame, curText:TS.getText(0,10000)});
}
//I want to do something like this:
frame3.getTSText(); //This would still be in frame 1, so I can pull all the text before 
                               //getting to frame 3 in my movie.

```

Thanks.
