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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:44:03+00:00 2026-05-21T03:44:03+00:00

If I have a url to a mp3, can I pass this in some

  • 0

If I have a url to a mp3, can I pass this in some way to a flash file so that it will play it? How could I do this?

  • 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-21T03:44:04+00:00Added an answer on May 21, 2026 at 3:44 am

    An example from the actionscript reference:

    package {
        import flash.display.Sprite;
        import flash.events.*;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.net.URLRequest;
    
        public class SoundExample extends Sprite {
            private var url:String = "MySound.mp3";
            private var song:SoundChannel;
    
            public function SoundExample() {
                var request:URLRequest = new URLRequest(url);
                var soundFactory:Sound = new Sound();
                soundFactory.addEventListener(Event.COMPLETE, completeHandler);
                soundFactory.addEventListener(Event.ID3, id3Handler);
                soundFactory.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                soundFactory.addEventListener(ProgressEvent.PROGRESS, progressHandler);
                soundFactory.load(request);
                song = soundFactory.play();
            }
    
            private function completeHandler(event:Event):void {
                trace("completeHandler: " + event);
            }
    
            private function id3Handler(event:Event):void {
                trace("id3Handler: " + event);
            }
    
            private function ioErrorHandler(event:Event):void {
                trace("ioErrorHandler: " + event);
            }
    
            private function progressHandler(event:ProgressEvent):void {
                trace("progressHandler: " + event);
            }
        }
    }
    

    You can combine the above with the parameters of the LoaderInfo: Those are flashvars passed by html or parameters in the url used to call the swf.

    In the reference are a lot of good examples,, I mostly learned actionscript by gotoandlearn.com and the reference.

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

Sidebar

Related Questions

I have this code (found from another StackOverflow question: $(document).ready(function() { $.ajax({ url: soundfile.mp3,
I'm going to write a function to play a mp3 file from an URL
I have an asp file that stores some values that are then used on
I have a problem where I can play an audio file if it is
I have a MediaPlayer that plays content from a URL, MP3s that can be
I have this gem working such that I can change the id3 data for
I have some jQuery working that starts a jPlayer playing an MP3 as shown
I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST_TITLE%/ Now i want to
I have URL like this: http://localhost/PMApp/temp.htm?ProjectID=462 What I need to do is to get
I have a url of a type where query string is like this... ?

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.