Now what I want to do is preload another .swf into an empty holder MC. This is the part I can’t seem to acomplish.
Do I need to put the preloader AS into the holder clip or into the .swf that’s being loaded? Should I use scenes? I’m really at a loss here. Any help would be greatly appreciated.
The code will go into the swf, that is loaded into holder.
In the swf in the first scene or frames where the preloader is, use
_root.holder.getBytesLoaded.
And you’ll have to do this for each swf that you load, because as they load into holder, they’ll work out their own bytesLoaded, etc. by using _root.holder (ie the clip they lie in).
That’s what I have now. It works fine when I test the movie being loaded, it displays the progress and loads. It just dosen’t seem to work when I try to load it into the ain movie.
Something still not quite right. Now when I test it it just loads the .swf without showing the preolader. It skips over it, seems like. I even cleared my cookies.
Everytime you test your preloader - you will have to clear your browser cache.
Why don’t you use Web Speed Simulator (the name of the app says that all) from xat.com ?
You can test preloading, on various simulated modem speed.
You can use it on file mode and… localhost mode (port 81)
ehm… it’s trial I know… Just download it!