Hi
I'm useless with Flash, but I've followed a tutorial on creating an mp3 player ( which can be found at
http://www.artifactinteractive.com.au/w4c/ ), and all seems fine...
Except the mp3 audio loops don't loop properly - they suffer from pausing each time they end. Upon searching the web, it seems that the mp3 format generally doesn't loop well. So my question is how do I change the Flash movie to use the wav format after converting the loops?
I've tried reimporting the loops as wavs to the library, and simply changing the *.mp3 references to *.wav, but this doesn't seem to work.
The results of the mp3 version can be seen here:
http://www.impelgd.co.uk (temporary site - please excuse).
Here is the Actionscript code on frame 1 of the player movieclip:
songArray = new Array();
songArray[0]="loop1.mp3";
songArray[1]="loop2.mp3";
songArray[2]="loop3.mp3";
songArray[3]="loop4.mp3";
mySound = new Sound(this);
function newSong(songNumber){
mySound.loadSound( songArray[songNumber], false);
}
function playSong() {
mySound.start();
}
mySound.onLoad = playSong;
mySound.onSoundComplete = playSong;
this.onEnterFrame = function() {
bar._width=(mySound.getBytesLoaded()/mySound.getBytesTotal())*100;
}
newSong(0);
- songArray = new Array();
- songArray[0]="loop1.mp3";
- songArray[1]="loop2.mp3";
- songArray[2]="loop3.mp3";
- songArray[3]="loop4.mp3";
- mySound = new Sound(this);
- function newSong(songNumber){
- mySound.loadSound( songArray[songNumber], false);
- }
- function playSong() {
- mySound.start();
- }
- mySound.onLoad = playSong;
- mySound.onSoundComplete = playSong;
- this.onEnterFrame = function() {
- bar._width=(mySound.getBytesLoaded()/mySound.getBytesTotal())*100;
- }
- newSong(0);
The buttons code:
on (release) {
newSong(0);
}
- on (release) {
- newSong(0);
- }
Many thanks for any help you can give.
Web and print design