Framescript loading before display objects in that frame?

I have a project, that uses a set of buttons, between a predetermined set of frames, with the code for each, on the same frame. When it reaches the first frame with framescript, it lists one of the objects on stage as null. It seems like it is trying to run the framescript, before the frame finishes loading/changing. Is there a event to listen for when the frame is fully loaded?

Also, I’ve noticed this does not happen, when the framescript starts on the first frame of the main timeline. However if it starts at any other point, this issue comes up. Any suggestions?