A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Sound files

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Posts
    7

    Sound files

    Hi,

    Is there any way of pausing an mp3 file and restarting it again. I know I can stop it but after restart it will always go to the beginning.

    thank you for your help

  2. #2
    Member
    Join Date
    Jul 2007
    Posts
    91
    Try make somethings width this code:
    Code:
    mySound = element ("applause")
    mySound.stop(); 
    element ("Pause and Play").onRelease = function() { 
       if (!pause_bol) { 
          pause_point = mySound.position / 1000; 
          mySound.stop(); 
          pause_bol = true; 
       } else { 
          mySound.start(pause_point); 
          pause_bol = false; 
       } 
    };
    Last edited by 3DH; 08-02-2007 at 07:18 PM.

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