El código es este:
Código:
this.onEnterFrame = function () { sload = mySound.getBytesLoaded(); stotal = mySound.getBytesTotal(); percentload = (Math.round((sload/stotal) * 100)) + "%"; if (counter < 2) { counter = counter + 1; loadVariablesNum("flashmusic.txt", 0); songtitle = musictitle.split(":"); count2 = 0; songplaying = (count2+1) + " - " + songtitle[count2]; } if (stopped!=true) { mySoundDuration=Math.round(_root.mySound.duration/1000); mySoundPosition=Math.round(_root.mySound.position/1000); texttime = mySoundPosition; timemin = 0; if (texttime < 10) { texttime = "0" + texttime; } while(texttime >= 60) { texttime = texttime - 60; timemin = timemin + 1; if (texttime < 10) { texttime = "0" + texttime; } } } timeformat = timemin + ":" + texttime; //Reverse if (REV==1 && mySoundPosition>0) { _root.mySound.stop(); mySoundPosition=mySoundPosition-1; _root.mySound.start(mySoundPosition,0); } revButton.onPress = function () { REV=1; mySoundPosition=Math.round(_root.mySound.position/1000); // } revButton.onRelease = function () { REV=0 } //Fast Forward if (FF==1 && mySound.position<mySound.duration) { _root.mySound.stop(); mySoundPosition=mySoundPosition+1; _root.mySound.start(mySoundPosition,0); } FFButton.onPress = function () { FF=1; mySoundPosition=Math.round(_root.mySound.position/1000); } FFButton.onRelease = function () { FF=0 } }
DESDE YA GRACIAS