I’m not sure why I am so incompatible with preloaders. After so much struggling I got my first one to work, but now I can’t get preloaders to work again with the site I’m currently working with. It just either goes straight to the main screen, or ignores the preloader and just loads while having a blank screen.
only for animations, and not web navigation purposes? I tried using this for my <A HREF=“http://sonmi.150m.com/flash/”>site</A> that I’m working on, but it did not do anything.
Could my problem be that I’m putting the loader in a separate scene? It seems it should work okay then, though, because on frame two I have it gotoAndPlay the next appropriate scene.
Bah. I don’t know why this isn’t working now. Even kirupa’s show bytes/total bytes preloader isn’t working. :sleep:
Well…first of all you shouldnt use scenes. Scenes are outdated and Macromedia themselves recommend you not to use them. Remnants from older versions where they actually were useful. Today: use layers. Anyway, your script is checking if ALL frames are loaded. If yes, then continue, if no, repeat the procedure. Thus it only involves your flash movie, not whatever site it links to.
But try Kirupa’s thingy again:
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
_root.gotoAndPlay (2);
}
are you talking about not using scenes with the preloader, or just using scenes at all? if you mean the latter, then i’m confused. i use scenes to animate between different contents, which often requires more than just a loadmovie action.
bah! nevermind. i guess it was just a matter of not being able to view the preloader in flash mx. when i actually uploaded it to my server it worked. is there any way to see how the preloader looks in flash mx? i thought that the ctrl+enter thing twice would work the same as flash 5, but i guess not!
With the movie in test mode (CTRL+Enter) click on the menu item “view/bandwidth profiler”. The movie will then have a section at the top that shows how much k each frame has in it. From here, you can use the menu item “debug” to select a bandwidth that you like. For viewing preloaders your best bet is to pick something small like 56k.
With both of those set you can select menu item “view/show streaming” and it will reload the movie as if it were viewing it on that type of connection.