2 Replies Latest reply on Feb 24, 2011 1:03 PM by yamill3

    mediaPlayer.seek not seeking to the correct point

    yamill3

      Ok so my player is almost done. I'm just doing the seek control, but for some reason wherever you click on the track it's off.

       

      Here's my function:

       

              private function onTrackClickHandler( e:MouseEvent,trackWidth:Number):void
              {
              mps.mediaPlayer.seek((skinControls.trackBg.mouseX/trackWidth) * mps.mediaPlayer.duration);
              }

       

      My event listeners:

       

              playerSkin.skinBottom.trackLoaded.addEventListener(MouseEvent.CLICK, function(event:MouseEvent){onTrackClickHandler(event,trackWidth)});
              playerSkin.skinBottom.trackPos.addEventListener(MouseEvent.CLICK, function(event:MouseEvent){onTrackClickHandler(event,trackWidth)});

       

       

      I can't find what is wrong here, please help!