PDA

View Full Version : Preloader Problem



bcogswell11
August 5th, 2002, 04:31 AM
Hey guys, this is an update to the preloader problem where the preloader doesn't appear until it gets to like 75%. Me and Dan were up till 1 this morning trying to fix it, yet we couldn't figure out the problem. We almost had it when Dan made his version, but for some reason when it got to mine it didn't work. The show streaming mode shows the problem, and the internet also, however with fast connections it is very hard to tell. If one of you 56kers go to one of the sites below and it starts at 0%, then let me know and I have nothing to worry about. :)

Examples of the problem are at:

1) Example 1 (http://www.someoneleet.com/testing2.html)
This is my the version after I tried to make it match Dan's working version. Doesn't work.

2) Example 2 (http://www.someoneleet.com/dan.html)
Dan posted his version on Tripod and it worked. On my computer, once I published it it did not work.

Thank you all for your help. If any of you can help me out as to why it starts at 75 please let me know.

Thanks!
-brad-:(

pom
August 5th, 2002, 04:57 AM
Nope. None of them works. Since the last part does work, I assume it's not a code problem. So my advice would be: totally change the code, make it differently, and if it still doesn't work, wel...

Nice site by the way.

pom :asian:

telekinesis
August 5th, 2002, 01:32 PM
Hey Brad,

Can you send the file over to me at my work e-mail dan@macromotive.com so I can break it apart again to find out why the hell its not previewing the whole preloader until its like 3/4 completed...I am sure I can figure it out!

bcogswell11
August 5th, 2002, 03:31 PM
Everything was sent! Good Luck! I will work on it some more here and tell you what I come up with.

-brad-:asian:

Ultim8Master
August 16th, 2002, 10:24 PM
Hey, I happen to know some stuff on preloaders, do you still have the problem?
Let me know, thanks.




email address (hntr4@powercom.net)

upuaut
August 17th, 2002, 01:07 AM
What do you know?? :) I'm compiling information on preloaders for a tutorial.. any tips or tricks you might know would certainly be appreciated.

bcogswell11
August 17th, 2002, 06:33 PM
Yes Ultimat8Master I still have the problem. It jujst doesn't display the loader until it gets to about 70%. I dont know, when I add stuff to make it a bigger file size it works fine. I don't understand it and basically I have given up on it.

-brad-

telekinesis
August 17th, 2002, 06:37 PM
I have a quick suggestion...don't place embedded fonts on your preloader screen because Flash has to preload frames with embedded fonts before it shows any visual content on the screen and that could be your problem, I just found out about embedded fonts loading just a little bit ago!

upuaut
August 18th, 2002, 08:23 AM
good tip.. I'll add that to my notes.

Ultim8Master
August 23rd, 2002, 06:13 PM
Hello once again! Sorry I keep leaving for a while, but hey...

Anyway, two things:

1. The flash movie you have the preloader for is way to small to even have a preloader (which would explain the 70% thing) OR
2. You have it coded wrong

Could you send the script or file to me, or post it here? THanks


If you need more help check out my new thread called "the long awaited preloader", it has an example.

email (hntr4@powercom.net)

JayFranchize
September 16th, 2005, 08:09 PM
The reason you see the preloader percentage only after 75% loaded is because most of your content is one frame. So, once that particular frame has loaded, that's when your preloader updates. In other words,after that frame with 75% of the content loads into the Flash player, that's when u will see the percentage. Conversely, if your content was spreaded out in many frames, you would see the percentage...


Hello once again! Sorry I keep leaving for a while, but hey...

Anyway, two things:

1. The flash movie you have the preloader for is way to small to even have a preloader (which would explain the 70% thing) OR
2. You have it coded wrong

Could you send the script or file to me, or post it here? THanks


If you need more help check out my new thread called "the long awaited preloader", it has an example.

email (hntr4@powercom.net)

Krilnon
September 16th, 2005, 08:15 PM
You do realize that no one has posted in this topic for over 3 years, right?

I'm guessing this person solved his/her problem or moved on already.

robbatse
September 25th, 2005, 07:42 AM
hi there,

I have almost the same problem!
I thought it was good to deselect the option "export to first frame" in every clip and place them on the screen in frame 2 or 3 with the belonging name (for using it in as) - quite logical, so flash would "export it to frame 2 - or any other) and I can place a really small as-preloader in frame 1 but ...

... my loader starts displaying at 41% ! all I exported to frame 1 is a simple vector form for using as a loadbar. but even when I deselect its export to frame 1 it doesn't work!

the bandwith profiler tells me there are 40kb in frame one - frame one is EMPTY in my movie! the only thing I have there is a 20 line script...
I actually can't understand that ...

I you have any tipps for optimization, tell me

robbatse
September 25th, 2005, 08:24 AM
I searched for that problem at http://www.flashguru.co.uk
he wrote a 1k preloader which loads every swf you want!
so I think it's better to create an extra swf for the preloader! lets do it on our own:



//create a new project with the name "preloader" and
//put that in the first frame:

/*quality settings*/
_quality = "BEST";
stop();


/*load movie*/
_root.createEmptyMovieClip("movie",0);
movie.loadMovie("folio.swf");


/*for displaying the loading status*/
this.createEmptyMovieClip("loading", 400);
loading.createEmptyMovieClip("loadtext", 0);
loading.loadtext.createTextField("loadtext",0,0,0,200,20);
loading.loadtext.loadtext.selectable=false;
ltf = new TextFormat();
//ltf.font = "Verdana";// use that only for astetical purposes ;)
ltf.size = 11;
ltf.color = 0x0674B1;
loading.loadtext.loadtext.text="loading...";
loading.loadtext.loadtext.setTextFormat(ltf);
//loading.loadtext.loadtext.embedFonts = true;//only needed if font is chosen
loading._x = 250;
loading._y = 200;
loading._alpha = 0;

/*loadbar*/
loading.createEmptyMovieClip("loadbar", 1);
loading.loadbar.attachMovie("form", "bar", 0);
//you need a clip here with a simple quadratic vector form
//and export it for AS with the name "form"
loading.loadbar._width = 1;
loading.loadbar._height = 5;
loading._alpha = 100;


/*here begins the real preloader ;)*/
_root.movie.onEnterFrame = function(){
if (_root.movie.getBytesLoaded()<_root.movie.getBytesTotal()) {
bloaded = _root.movie.getBytesLoaded();
btotal = _root.movie.getBytesTotal();
loading.loadbar._width = bloaded/btotal*200;
loading.loadtext.loadtext.text = "loading... "+Math.floor(bloaded/btotal*100)+"%";
loading.loadtext.loadtext.setTextFormat(ltf);
} else {
loading.loadbar._width=200;
loading.loadtext.loadtext.text = "";
loading.loadtext.loadtext.setTextFormat(ltf);
loading._alpha = 0;
}
};


the preloader must be 1k till 20k (it depends on the vector form and embedded fonts you use). you can draw the loadbar form even with AS - so it would be smaller.

my only problem is: I already have dozens of code in my main clip wich uses absolute paths, such as "_root.main.container...."
so there is one thing that happens: the main movie doesn't work - because the path's are now different.

so my question to the harder AS-gurus there is: can I move the main movie from _root.movie to _root after it is loaded? is that possible or do I have to change all my code... ?(nooooo) :)