Why are my loading bars not working?
I am working in Flash CS3 and have actionscript 2.0 code in my files.
The problem I am having is when I open my site I go to my portfolio section and when I click on a button, say perhaps the "Direct Mail" I don't see anything for awhile and the button seems dead. Then after a awhile the gallery appears. The panel for the buttons for "Direct Mail" is supposed to slide down over the "Portfolio" buttons. It sometimes just pops up instead. The "Direct Mail" gallery is an external swf file that I made. All of the portfolio galleries are made up of individual swf files that are loaded along with the main site on the server.
Okay, so here is my code for my preloaders:
I found this in a tutorial I found doing a search for preloaders.
This is how I made my preloaders, but I created my own design and just followed the other directions.
I hope someone can help me, the site is live now and my boss will be upset if I don't get this fixed soon!
I am working in Flash CS3 and have actionscript 2.0 code in my files.
The problem I am having is when I open my site I go to my portfolio section and when I click on a button, say perhaps the "Direct Mail" I don't see anything for awhile and the button seems dead. Then after a awhile the gallery appears. The panel for the buttons for "Direct Mail" is supposed to slide down over the "Portfolio" buttons. It sometimes just pops up instead. The "Direct Mail" gallery is an external swf file that I made. All of the portfolio galleries are made up of individual swf files that are loaded along with the main site on the server.
Okay, so here is my code for my preloaders:
Code:
if (getBytesLoaded() > 4 && getBytesLoaded() == getBytesTotal()) {
gotoAndPlay("intro");
} else {
pct = Math.round(getBytesLoaded() / getBytesTotal() * 100);
// this is for the visual indicator movieclip:
loading_mc.gotoAndStop(pct);
}
I found this in a tutorial I found doing a search for preloaders.
This is how I made my preloaders, but I created my own design and just followed the other directions.
I hope someone can help me, the site is live now and my boss will be upset if I don't get this fixed soon!