View Single Post
  #1 (permalink)  
Old Dec 11th, 2006, 13:14
Lassjus Lassjus is offline
Junior Member
Join Date: Sep 2006
Location: Oslo
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Loading external swf's in preloader.

I have made a site, and lots of "sub sites" outside my main page, that I just load by scripting:
on (release) {
loadMovie("Filmer.swf",_root.Ramma);

}
And I have inserted a preloader in the first frame in my main site, it goes like this:
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
Can I make this load other swf's as well, so you dont have to load every single page at my site?
Lassjus
Reply With Quote