Preloader help!

Hello,

Having a bit of a problem with preloaders. Ive created an application where all of the content is in one frame, however I’ve not put it all into one ‘main’ movieclip so the preloader just doesn’t want to work.

I’m presuming you have to reference a movieclip to use getBytesLoaded?
I’ve tried turning all of the main content into a movieclip, the preloader works then, however all of my functions don’t as the path changes eg.

pHolder[mc+j]._alpha = whatever;

becomes:

main.pHolder[mc+j]._alpha = whatever;

Is there anyway around this, like loading it from another scene as I really don’t want to change all the functions - there’s quite a few of them!!!

I just want all the content on frame1 to load before hand, I’ve tested it online and its a blank screen for 5 secs then the application!

This is the preloader I’m using:

onClipEvent (enterFrame) {
    loading = _root.getBytesLoaded();
    total = _root.getBytesTotal();
    percent -= (percent-((loading/total)*100))*.25;
    per = int(percent);
    percentage = per+"%";
    loadBar._width = per;
    if (percent>99) {
        _parent.gotoAndStop('main',2);
    }
}

Hope someone can help, apologies if this question has been answered, I’ve had a real good look.

Cheers…