Hi there all you guys!
I have this movie in which I load from the library 20 mp3s using Linkage. Everything works fine. If I add the preloader these mp3s will load on the first frame so normally that my preloader won't start from the begining it actually starts from 47%.
I did another movie that has a blank container that loads that big swf into and I use this movie as preloader...clasic solve to the linkage things preloding.
But now I have another problem...my sounds don't start. So if I won't use this new movie as preloader all the sound work just fine but the preloader doesn't . If I use the new movie to preload the preloader is just fine but the sound won't start.
Code used to add a sound object (in the main movie):
Scene5_sound = new Sound();
if (Scene5snd_playing!=true) {
Scene5snd_playing=true;
Scene5_sound.attachSound("Scene5Snd");
Scene5_sound.start(0,1);
if(_global.audio=="on"){
Scene5_sound.setVolume(70);
}
else{
Scene5_sound.setVolume(0);
}
}
1. Movie (in which I have the sounds) structure:
_root.main_mc so all the content is in a movie that is on the first frame.
2. Preloader movie has a container_mc (instance name) with this clasic code:
total=_root.container_mc.getBytesTotal();
loaded=_root.container_mc.getBytesLoaded();
kbloaded=int(loaded/total*100);
if(kbloaded==100){
gotoAndPlay(22);
}
percentage=Math.round(_root.container_mc.getBytesLoaded()/_root.container_mc.getBytesTotal()*100);
So basicaly my question is why all the sound are not working when using the new movie as preloader...to solve the linkage preload case.
Thanks a lot!
Dragos.
Regards,
Dragos.
I have this movie in which I load from the library 20 mp3s using Linkage. Everything works fine. If I add the preloader these mp3s will load on the first frame so normally that my preloader won't start from the begining it actually starts from 47%.
I did another movie that has a blank container that loads that big swf into and I use this movie as preloader...clasic solve to the linkage things preloding.
But now I have another problem...my sounds don't start. So if I won't use this new movie as preloader all the sound work just fine but the preloader doesn't . If I use the new movie to preload the preloader is just fine but the sound won't start.
Code used to add a sound object (in the main movie):
Scene5_sound = new Sound();
if (Scene5snd_playing!=true) {
Scene5snd_playing=true;
Scene5_sound.attachSound("Scene5Snd");
Scene5_sound.start(0,1);
if(_global.audio=="on"){
Scene5_sound.setVolume(70);
}
else{
Scene5_sound.setVolume(0);
}
}
1. Movie (in which I have the sounds) structure:
_root.main_mc so all the content is in a movie that is on the first frame.
2. Preloader movie has a container_mc (instance name) with this clasic code:
total=_root.container_mc.getBytesTotal();
loaded=_root.container_mc.getBytesLoaded();
kbloaded=int(loaded/total*100);
if(kbloaded==100){
gotoAndPlay(22);
}
percentage=Math.round(_root.container_mc.getBytesLoaded()/_root.container_mc.getBytesTotal()*100);
So basicaly my question is why all the sound are not working when using the new movie as preloader...to solve the linkage preload case.
Thanks a lot!
Dragos.
Regards,
Dragos.