Preload won't start at the beginning

I have the below preloader code. The actual preloader itself, works just fine. I have scene in this order: preload,main,view,viewad.

Here is the problem:

When I ctrl-enter, ctrl-enter to view the movie in 56K stream, I notice that the preloader doesn’t start until roughly 25K into the download. The entire size of the movie is 59K. I thought it may have had something to do with scene order, but I have the preloader scene at the top. The preloader timeline only has “2” frames. What could be going on here? Is this because I created my entire movie then added the preloader when it was all done? An I missing something? Any assistance, would be greatly appreciated.

Cheers,
Hubert

<snip>
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent100;
_root.loadText = Math.round(getPercent
100)+"%";
trace(bytes_loaded + “|” + bytes_total);
if (bytes_loaded == bytes_total) {
gotoAndStop(“main”, 1);
}
</snip>

my first guess would be that you’re using components in the movie …

if so … those components must load before everything else in your movie [size=1]the so called frame 0[/size] even before your preloader

also check that you have unselected export in first frame in the linkage properties of your movie clips

open your library F11. right click over your movie clips and/or buttons and select linkage…
you’ll see the option there :slight_smile:

[size=1]**PS: **run a search in the forums. you’ll find like 1’000’000 threads about this … you might find something useful ;)[/size]

sigh

I was searching for a way to “delete” this post. I posted this after searching through about 80 posts, with no success. On my 81st post review, I found the “linkage” answer.

Sorry to waste everyone’s time.

Hubert

lol :stuck_out_tongue:

no problem =)

I thought that all was well…until I tried to scroll.

I went into the library, and removed “load in first frame” from EVERY SINGLE library instance…including all of the FLASH UI Components (recursively).

Now, my scrollbars look like this: (attached).

Feedback?

Hubert

Very interesting. I found out why I couldn’t scroll. I’d deselected “export in first frame” for:

Library -> Flash UI Components -> Core Assets - Developer Only -> FUI Component Class Tree -> FUIComponent

Library -> Flash UI Components -> Core Assets - Developer Only -> Other Assets -> FScrollbar Assets -> [fsb_DownArrow,fsb_ScrollThumb,fsb_UpArrow]

I selected “export in first frame” as it as originally, and the scrollbars worked again. However, now my movie is starting at 29%, same place it started originally.

It’s useless to have a preloader that starts 1/4 into the download. Should I make my own scrollbars? Is there no way around this? Heck, I’d even load the scrollbar component AFTER the movie was already playing if this was possible.

Feedback anyone?

Hubert

Hey Apoc,

I had the same problem, but unfortunately there is no way around it. Besides, I have tried my website and there is no problem since the preloader actually will load in about 4 or 5 secs with 56k modem, and should be ok with cable. Well, check my site, I used the components and preloader.

http://www.csufresno.edu/studentorgs/permias/

and also find more conversation about the preloader:

http://www.kirupaforum.com/showthread.php?threadid=15203&highlight=preloader

tell me what you think!

I thank you all for your help. :slight_smile:

Hubert

hi

sorry i just posted the same question.

There must be a way to use components but not have them load in frame 0. Otherwise compnents are rubbish and we should get macromedia to find a work around.

what a waste of time! Compnents that suck and confuse 56k users.

kd

found a work around in case anyone needs it.

I just make each text section a separate swf with a component attached and then load it in. It does mean more loading throughout the site which sucks. Good for me as i only have one section with scrolling text

Not great, but it sorts out the preloader problems