Very Quick Script!

Hey all i need a script, which i think is very simple, like a preloader, but not nearly as complicated. I just need the code to say something like, if frames 1-46 have loaded, goto and play frame 2.

But in actionscript for the first frame!

Thanks Matt