PDA

View Full Version : Calling Flash Function on specific frame?



Ibanez271
March 24th, 2008, 02:00 PM
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:


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.

Felixz
March 24th, 2008, 06:43 PM
this looks like predicting:
being in frame 1 u don't know about existing anything in frame 3 unless u go there.