-
I have a preloader that i know works, I also have a movie that uses linked wav files. When the wav files aren't linked the preloader works perfectly but when the wavs are linked the preloader does not appear and goes to the movie and the movie works fine. I have tried using simple preloaders such as:
//frame 1
ifFrameLoaded (5) {
gotoAndPlay ("Start");
}
Still does not work, so is there a way around this, do I have to change the way i constructed the movie or is there a line in which I insert into the preloader for loading linked wav files?
See for for yourself.
http://thespot.dhs.org/links.html
Oh yeah this is the script im using for the preloader:
//last frame of preloader
loadedBytes = _root.getBytesLoaded();
totalBytes = _root.getBytesTotal();
totalKB = int(totalBytes/1024);
if (loadedBytes<totalBytes) {
percentageOutput = int((loadedBytes/totalBytes)*100);
if (percentageOutput<10) {
_root.bar0._yscale = (100-(percentageOutput*10));
percentageOutput += "%";
gotoAndPlay ("preload_loop");
} else {
_root.bar0._yscale = .1;
perString = String(percentageOutput);
perString1 = substring(perString, 1, 1);
perString2 = substring(perString, 2, 1);
if (perString1 == "1") {
_root.bar1._yscale = (100-(perString2*10));
} else {
for (i=1; i<=perString1; i += 1) {
setProperty (("bar"+i), _yscale, .1);
}
setProperty (("bar"+perString1), _yscale, (100-(Number(perString2)*10)));
}
percentageOutput += "%";
gotoAndPlay ("preload_loop");
}
} else {
gotoAndStop ("MethRed", 2);
}
Thanks in advandce.
takeover@myto.com
-
all linked objects will load before the movie loads - you just have to think of other ways of doing it - why dont you load them from other .swfs - you can still have all your music controls.
-
#1 create an external swf to contain your attached sounds.
#2 use timeline sounds with your sound object instead of attached sounds. load the timeline sounds further down the timeline, in a traditional way.
read Remixology #6 (see sig for link) for more information on creating load progress messages for attached sounds.
read Remixology #1 (see sig for link) for more information on how to use timeline sounds with sound objects.
-
Thanks guys..
It works
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|