Using addFrameScript

addFrameScript is a function that allows you to add actionscript to a specific frame (never would have guessed...). You need to pass in 2 parameters, the first is which frame you want to add the script on and the second is the function that you want to trigger on that frame. Now here is the pain with it, the frames start at zero. So if you wanted to put a script on frame 10 you would reference it with :

addFrameScript(9, myFunction);

So it can be a little tricky at first, but once you remember how to reference the frames it can be a very handy little function.

One Response to “Using addFrameScript”

  1. iloveyongsi Says:

    wow. that is cool.

Leave a Reply