The code is compiled inside the program. The script outside customizes the effect.

It is difficult to synchronize timing in action scripting with main movie frames. I suggest tweeking the number of frames/tweens containing the object with the effect so that it ends when you want. Then add your go to url or whatever on the last frame.