Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another stupid preloader question 1

Status
Not open for further replies.

Umfaffa

Technical User
Mar 1, 2004
7
US
thanks to everyone for the tips and suggestions regarding the setup of my network at the office.

moved on to the website.

having trouble with the preloader showing. It appears to work when I test movie, and view it streaming. It doesn't show up when you go to the website online.

I read somewhere, I think it was this forum, about a modification you make to the code for the preloader. So it shows up once like 10% of the index page is loaded.

I can't find that post anywhere...ring a bell with anyone??

Thanks in advance.

Dave
 
Confusion?
A preloading code doesn't show up.
A preloading code may make something displayed and/or modified when only 10% is loaded, 20% is loaded, and so fourth...
Is that what you're after?
 
confusion? probably.

sure I can get thru it though.

There was a setting somewhere. Maybe I'm imagining it.
To make the preloader animation start playing when only a small amount of the movie has been loaded. (the loading bar, and the xx%, etc.)

On a dialup, it appears as the link doesn't work. If you let it sit for a few minutes, the movie ends up loading...but the preloader animation never shows.

better explanation? sorry.
 
Are you using components, and/or attached movie clips and/or soundObjects with Linkage set to export on the first frame, and/or setting up new Fonts in your Library, in this movie?
 
I did, but removed them when I noticed that the first frame contained 75% of the weight of the movie.

Trimmed off a lot of the sound completely just to see if it would make a difference.

Don't think I have any other links to the first frame, the preloader scene is on top, followed by index, contact, etc...I'll go back and check tho.

Only things on the preloader scene are the

actions
loadtext
loadbar

layers

with text animation saying loading....
the xx%, and bar

first frame of actions

Code:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._height = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
	this.gotoAndPlay(3);
}

second frame

Code:
this.gotoAndPlay(1);

bar and percent loaded seem to work ok in the streaming preview mode. frame three has no actions.


 
A better workaround (IMHO) is to leave everything as it was, but remove your preloader from your movie and use a preloader only movie, which sole purpose in life, is to preload your movie and dissappear! In fact when it's job is done, that preloader only movie does in fact become your present movie...


 
This just might do it.

I think I tried to use this type of preloader before, but gave it up when it didn't work. The tutorial I had to go off of was from an earlier version or something.

I understand the commands a bit better after a couple of weeks of sifting thru posts. It'll just take a while to learn how the bits fit together. Just change the reelmc to my animation movie name, and it should work great.

Once again, tek-tips is the last place I go to figure something out. Thanks oldnewbie





 
Take note that the reel animation, and the loading bar, have been set to be invisible to start with, by setting their visibility to false on their first frames. The loadbar has also been scaled down.
You should do the same on all your elements you use to replace mine, and that includes a border if you ever decide to add one, on the loading bar. It should be in it's own movie clip, with it's visibility set to false to start with, and turned on only if needed as the loadbar itself.
Otherwise, you will get flash frames of these elements on a re-load or refresh or your movie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top