A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Playing music - problem

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702

    Playing music - problem

    I put this code into my first frame:

    mySound = new Sound(); // Create new sound variable
    mySound.loadSound("come.mp3",true); // Load the sound
    mySound.start(); // Begin playing the loaded sound
    mySound.setVolume(50); // Set the volume level at 50

    But for some reason, the sound only plays a 2nd or two then loops back making is sound as if the sound is skipping.

    Any thoughts? (I've checked the file. It works fine. 3 min long)
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  2. #2
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    Can you post the fun file. Sounds like the swf is looping. (a guess). Thats why I use movie clips myself. Looping means that the frames are looping and keep repeating the frame were the music starts over and over. A stop(); action on the last frame should help.
    Last edited by tmoore935; 11-22-2006 at 11:27 PM.
    Any programming language is at its best before it is implemented and used.

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    OMG! I didn't even think of that. I forgot that I was just building the site in one frame to get the graphical elements into place. LOL..
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

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