Hello, I'm new to this forum. I have situation with my preloader. I am loading audio from an external folder. When I click on the audio a preloader loads the audio and upon completion plays audio.
My problem lies in that when I test the movie everything works as expected. I was joyous. BUT, once I view the actual .swf or the .exe after I publish, the preloader doesn't work. The audio still loads but the preloader does nothing.
Does anyone know what I might be doing wrong? Is there a setting in the publish settings I need to change.
This is the first time I've had this happen. Usually I have a pre-loader at the begining of a flash file and load the file. This one is in a movie clip and only activated upon a mouse action.
Any help or suggestions is greatly appreciated.
//ACTION SCRIPT I AM USING (AS2)//
My problem lies in that when I test the movie everything works as expected. I was joyous. BUT, once I view the actual .swf or the .exe after I publish, the preloader doesn't work. The audio still loads but the preloader does nothing.
Does anyone know what I might be doing wrong? Is there a setting in the publish settings I need to change.
This is the first time I've had this happen. Usually I have a pre-loader at the begining of a flash file and load the file. This one is in a movie clip and only activated upon a mouse action.
Any help or suggestions is greatly appreciated.
//ACTION SCRIPT I AM USING (AS2)//
Code:
switchTrack = function (trackNr) {
mcLoader.mcBar._visible = true;
txtPercent._visible = true;
snd.stop();
snd.loadSound(soundUrls[trackNr]);
bt = snd.getBytesTotal();
this.onEnterFrame = function () {
bl = snd.getBytesLoaded();
pr = bl/bt*100;
txtPercent.text = 'LOADING '+Math.ceil(pr)+'%';
mcBar._xscale = pr;
if (pr == 100) {
mcBar._visible = false;//Hide pre-loader bar after load
txtPercent._visible = false;//Hide pre-loader text after load
_parent.mcSoundStop._visible = true;
_parent.mcSoundPlay._visible = false;
snd.setVolume(100);
delete this.onEnterFrame;
}
}
}