You have to put the loading code in frame 1 and make frame 2 have no script.
That way you are doing it now, it keeps returning to the point where it starts loading.