ok..i made it...i could get the time for my mp3s....since im not run the time and its there just to tell how much time the mp3 has im ok on this one... now i have a small problem with another thing..well...it can be bypassed if there is no reply to this but i will try to have one anyway...
i have a scroller on my player, but is now fixed and it only moves when i try to find a part of the mp3 ...i tried to put in on move with the playbar and it worked but when i try to scrub it it works ..lets say 1/2 of it.... what i mean is i can scrub but not perfectly as when its quiet waiting for a drag... when i put it on moving along with the playbar and try to drag it it just goes back and foward from the position of the playbar to where i have the mouse, and its not precise, although i can drag it foward but with no precision......this is the code im using:
Well this is just to try to mmake it better but its not properly very needed...despite of im a complete amateur i dont expect many visitors in my webpage :sCode:onClipEvent (enterFrame) { loadbar = Math.floor(_root.mysound.getBytesLoaded/200); var position = Math.floor(_root.mysound.position/1000); var duration = Math.floor(_root.mysound.duration/1000); var pos = Math.floor((200*_root.mysound.position)/_root.mysound.duration); scroller._x = pos; scroller.onPress = function (){ _root.mysound.stop(); startDrag("scroller", true, 0, 0, 200, 0); scroller.onRelease = function (){ stopDrag(); var cue = Math.floor((scroller._x*duration)/200); _root.mysound.start(cue, true); scroller.onReleaseOutside = function (){ stopDrag(); var cue = Math.floor((scroller._x*duration)/200); _root.mysound.start(cue, true); }; }; }; }
Thanks:
Duarte V.




Reply With Quote
