ifFrameLoaded question

hey everyone, how can i make a script on loading the whole movie. i mean including all the scenes.

ifFrameLoaded (10); means loading upto frame 10 in the same scene
ifFrameLoaded (“Scene 2”,10); means loading upto frame 10 in Scene 2

all scenes >>> how???

tnx!!!