Object.registerClass

Hello all I am having a small problem preloading my movie. I have my preloader code on the first 2 frames and my movie begins on the 3rd frame I have a skinned scrollbar component inside a movie clip that starts on the 3rd frame and scrolls some dynamic loaded text.

Everything works fine until I tell the scrollbar component and scrollbar assets “VScrollBar Assets” not to export in the first frame so that my preloader will start.

Problem is when I uncheck export for first frame and change the flash settings for “Export frame for classes” for frame 3 my skinned scrollbar no longer has a skin it goes back to the default macromedia scrollbar?

I have been reading all around and I took this bit of information from senoculars website

" If a movie clip associated with a class loads before its class does, you can fix the association after the class has loaded using Object.registerClass. New instances of that class will then have the correct class association and function as intended."

But I dont understand how to use this information with the ScrollBar component to get my skinned scroll bar to show instead of the default one.

Any help or links would be greatly appreaciated thanx :slight_smile: