Here's another preloader question to add to all the rest of them.
I have an external swf file with it's own preloader that I am trying to load into a movieclip of another swf. The code for the preloader is as follows:
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay("start");
}
- totalBytes = Math.round(getBytesTotal() / 1024);
- loadedBytes = Math.round(getBytesLoaded() / 1024);
- percentDone = Math.round((loadedBytes / totalBytes) * 100);
- if (_root._framesloaded >= _root._totalframes) {
- gotoAndPlay("start");
- }
This code works fine when I play the restaurants.swf file by itself but when I try to load it into my control_panel it doesn't load at all.
The code to load the restaurants.swf file into the movieclip is as follows:
on(release) {
loadMovie("restaurants.swf", "crit_content_tg");
}
- on(release) {
- loadMovie("restaurants.swf", "crit_content_tg");
- }
Without the preloader code everything works fine so I'm at a loss at what I need to do. Also, everything works great offline but when I upload it to the site I start having these problems.
Here is the link for the restaurants.swf by itself (preloader works fine):
http://www.sacritic.com/new/test2.html
Here is the link to the control panel (preloader doesn't work-file hangs)
http://www.sacritic.com/new/test.html
(You'll need to click on the critiques button and then the restaurants button)
My gues is that the _root is screwing me up so I tried _parent and that totally killed it.
Any ideas will be appreciated.
Thanks
Gene