A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: Requesting help tkx?!

Threaded View

  1. #5
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Without seeing your set up and stuff is this any help to you
    PHP Code:
    onClipEvent (load) {
        
    BarWidth 200;
        
    //BarWidth = MyBar._width;// sets it to whatever width the bar is
    }

    onClipEvent (enterFrame) {
        
    loadbar Math.floor(_root.mysound.getBytesLoaded BarWidth);
        var 
    position Math.floor(_root.mysound.position 1000);
        var 
    duration Math.floor(_root.mysound.duration 1000);
        var 
    pos Math.floor((BarWidth _root.mysound.position) / _root.mysound.duration);
        
    scroller._x pos;
        
    cue Math.floor((scroller._x duration) / BarWidth);
        
    //cue = Math.floor(((scroller._x * duration) / BarWidth) / 1000);// probably better !!
        
    scroller.onPress = function()
        {
            
    startDrag(scrollertrue00BarWidth0);
            
    _root.mysound.stop();
        };
        
    scroller.onRelease scroller.onReleaseOutside = function ()
        {
            
    stopDrag();
            
    _root.mysound.start(cue,true);
        };

    Last edited by fruitbeard; 02-28-2013 at 03:04 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