5 Replies Latest reply on Mar 30, 2010 3:31 PM by kglad

    How do you execute external javascript on last frame?


      I have searched and read and searched some more, but have had no luck . . . could be because I'm new to Flash and Action Script and don't know enough to know what terms to search for.


      I'm authoring in Flash CS4 using Motion Tweens.


      Here is the situation.  I have a JavaScript that closes the DIV containing my flash object.  It currently closes after 15 seconds.  That is supposed to be how long the Flash movie lasts.  however, slower machines run the movie longer.  this means the flash object closes too quickly and they don't see the entire movie . . . if I increase the time, the users of fast machines have to wait around awhile for the movie to disappear.


      So, I would like the movie to execute the javaScript when it gets to the last frame.