hey. I've done a couple of preloaders before, But for some reason, this one isnt working for me. Does anybody know why?
This is what Im doing:
First Frame
loadedbytes = _root.getBytesLoaded();
totalbytes = _root.getBytesTotal();
if (loadedbytes >= totalbytes)
{
gotoAndPlay(3);
}
else
{
amount_loaded = int((loadedbytes/totalbytes)*100);
loaderbar._width = amount_loaded * 3;
} Second Frame
gotoAndPlay(1);
The content in 3rd frame is nothing accept actionscript. The actionscript attaches movieclips from the library. I want to preload all the images/mc's in the library, before moving to the 3rd frame.
I tried it out, and it works fine for me. Did you forget to put the instance name "loaderbar" on the movieclip of the movie clip? or did you forget to select the "Top Down" loading order option on the export swf screen? Thats all I can think of...
Here is an example I made using your actions, I added a big song at the end, so that it would take a while to load.
http://bloodshed. s y t e s . n e t/bsd/yo.html (remove all of the spaces in the url)
I attached the .fla file, (without the song in it). It is in Flash MX format.
I think it has something to do with your 3rd frame with actionscript attached to it. I am having the same kinda proble, so far no luck.
Thoguht you might wanna take a look my thread.
Hopfully, we'll solve this problem.
I have read that there is a bug in Flash in a few threads on this subject. I also have a few preloaders on a page I am working on. All of them are the same, code wise (the frames are just copied to different MC's), and some of the preloaders work fine, some only show the load bar and my spinny graphic at the end of the load sequence for 1/11 of a second, and some work fine except my spinning logo doesn't spin.
It is so weird because they are litterally just copied frames between files.
My link does work, u have to remove the spaces inbetween each letter, the reason I put spaces in is because, for some reason this site bleeps it out other wise, look i'll try right now
If you're all using components, and/or attached movie clips and/or sounds (both with linkage set to "export on the first frame"), and/or setting up new fonts in the Library, then that's your problem right there. All downloading elements on the first frame, will prevent your preloader from showing up, until they have all downloaded.
One workaround is to create a new preloader only movie, that will preload your present main movie, cleared of any of it's own preloader.
Originally posted by stacyfla I think it has something to do with your 3rd frame with actionscript attached to it. I am having the same kinda proble, so far no luck.
Thoguht you might wanna take a look my thread.
Hopfully, we'll solve this problem.
Originally posted by stacyfla oops, I thought it was the same problem..hehe...my bad
I'm trying your method, thanks
actually, I think drakmonkey had the same problem, he is using oldnoobs method, which is fine, just makes the whole thing more complicated then it actually has to be. And may screw up some of your actionscripting in the movie.
Hells Fury,
I tried it and still not working though, and I don't really understand oldnewbie's method.
Oldnewbie,
Does it mean I should link my button from my website to the preloader, then link the preloader to a html file which contains my main movie swf,instead of the second scene? (this main movie is a popup window from my website)
If so, I don't know how to change the code.......can you tell me?
ok, now I tried this:
I made the preloader a seperate swf file and have my website button link to this gallerypreloader.swf, and then made the 3rd frame of preloader link to the gallery.html.
(code:
Originally posted by Hells Fury Stacyfla, in internet explorer do this,
1.Click Tools > Internet Options
2. Click Delete Files
3. Select Delete all offline content
4. Press ok
5. Go to your .html file on your site.
You will see the loader now, cuz I see it. All you neded to do is delete the .swf file out of ur temp files, that way it reloads it.
yeah, you can kinda see the preloader, but it didn't show up for the first 89% though, that's the problem.
by the way, I just change the file, so the gallery html file is not including preloader now.