Help me,for Sound Action Code in Flash

Discussion in 'Programming' started by RAFIQULLAH0102, Jul 16, 2012.

  1. #1
    My problem is I can't continuously play my "music.mp3" file in flash.It is play just one time and stop.How i play this sound continuously.Please help me.My code is:

    var mySound = new Sound();
    mySound.loadSound("music.mp3",true );
     
    Last edited: Jul 16, 2012
    RAFIQULLAH0102, Jul 16, 2012 IP
  2. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #2
    You can try the below code. Here 0 is the offset and 9999 is the times that the sound will loop.
    
    mySound.start(0,9999); 
    
    Code (markup):
     
    Unni krishnan, Jul 19, 2012 IP