A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: Requesting help tkx?!

Threaded View

  1. #4
    Member
    Join Date
    Mar 2011
    Posts
    68
    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:
    Code:
    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);
    };
    };
    };
    }
    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 :s

    Thanks:

    Duarte V.
    Last edited by Alienoiz; 02-28-2013 at 12:46 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center