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 6856399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:52:51+00:00 2026-05-27T01:52:51+00:00

I have a Android Actionscript project that I am trying to incorporate sound in,

  • 0

I have a Android Actionscript project that I am trying to incorporate sound in, but having a problem that I cannot figure out. I have the sound file in the same directory as my class file and my .xfl file. I am trying to start the music file as soon as the application starts via class reference, but am getting the same error everytime:

  Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
  at playAudio()[C:\pathtoerror\playAudio.as:9]
  at networkScores/frame1()[networkScores::frame1:7]

Here is my class file:

package  
{
   import flash.media.Sound;
   import flash.net.URLRequest;
   import flash.media.SoundChannel;

   public class playAudio extends Sound
   {
         public var music:Sound = new Sound(new URLRequest("mathHomeSong.mp3"));
         public var sc:SoundChannel;
         public var num:int;

        public function playAudio(controlNum:int) 
        {
           num = controlNum;

           if(num == 1)
           {
              sc = music.play();
           }
           else if(num == 2)
           {

           }

        }

    }

}

Here is my call from the timeline:

  import playAudio;
  var playMusic:playAudio = new playAudio(1);

Just figured this out, I had to put a link to the mp3 file in my server, instead of putting it in my directory.
Sorry about the confusion

  • 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-27T01:52:51+00:00Added an answer on May 27, 2026 at 1:52 am

    I posted too soon. I just figured out my question, figures. Ok, so what I did not do is post this file on my server and with the URLRequest(“”); I had to put a link to my file on my server, not linki

    The answer to this question is that I forgot to add this music file to a server and then link it via hyper link. For example http://mysite.com/audio.file

    Sorry about this

    thanks

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

Sidebar

Related Questions

I have android.permission.READ_OWNER_DATA but I can't find any reliable code that would explain how
I have an Android project that branched into three different applications, app-1 , app-2
I'm developing an ActionScript 3.0 project for Blackberry Playbook, Android and iOS. I have
We have Android 3D Carousel here: http://www.codeproject.com/KB/android/androcarousel.aspx There my problem is that: i want
I have a project that was written using ACtionScript 3 in the Flash Builder
I have Android ListView that holding some items, the flow that I'am trying to
I have Android widget that contains two buttons. But i have no idea how
I may be assigned an Android project, and have minimal experience with Java but
I have ready made android installation apk file. But i dont have android device
I have Android pet-project DroidIn which utilizes HttpClient 4 (built into Android) to do

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.