Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:12:23+00:00 2026-05-28T16:12:23+00:00

I embedded an mp3 file be used as background music for my app. Though

  • 0

I embedded an mp3 file be used as background music for my app. Though it works fine, the problem is that it doesn’t play the whole track, it just plays the first 32 seconds of it (the mp3 file is 1:30 min).

Does anyone here has any idea why?

I’ve read here that maybe the sound doesn’t fit into the supported flash player sound format, but I don’t think that’s the problem! The file is not that big, but maybe I am wrong?

Any idea whats causing the problem? Or how to fix it? The code is fine, am sure of it (its pretty simple. Just embedded the mp3, initialized the required variable and played the sound. Nothing fancy)

EDIT: the mp3 is encoded at 44100 KHz

EDIT Here is the code, just incase

package 
{
    import flash.display.Sprite;
    import flash.media.Sound;
    import flash.media.SoundChannel;

    public class BackgroundMusic extends Sprite
    {
        [Embed(source="swfs/bg.mp3")]       
        private var BG:Class;

        public function BackgroundMusic() 
        {   
            var backgroundMusic:Sound = new BG();
            backgroundMusic.play();
        }

    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:12:24+00:00Added an answer on May 28, 2026 at 4:12 pm

    As the aforementioned link suggests, the problem was indeed with the mp3 file itself. Basically it was too big. So after reducing it from 44kHz stereo 32 bit to 44kHz stereo 16 bit it worked fine, and now it runs all the way through. With that said its kinda weird that we can’t embed higher quality mp3 files. I presume that this problem wouldn’t be an issue with loading (rather than embedding) but I haven’t tested it. If anyone here has an idea on how to fix this problem without reducing the quality of the mp3 please share

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this http://nunzioweb.com/streaming_audio-example.htm to embed and play.mp3 files The problem is that
Is it possible to play an embedded AAC file in Flash/Flex somehow? I know
Let's say the sound input is either an embedded mp3 file or the microphone.
I embedded a opentype font with @font-face. Works fine, but the bbox or descent
How can i extract the information embedded in ID3 tag from mp3 file in
Embedded custom-tag in dynamic content (nested tag) not rendering. I have a page that
I embedded .NET's WebBrowser into a form that has some other buttons. The application
I embedded a swf file in my application <mx:SWFLoader source=@Embed(source='mod/VideoModule.swf') width=50 height=50 id=loader creationComplete=initLoader()
In an embedded application, we have a table describing the various address ranges that
I want to produce a simple, static HTML file, that has one or more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.