Play mp3 from remote url

Hi Everyone,
I am Completely new to Flash and Flash based development. I
require some help in creating a flash document.
I need to connect to a remote URL file and play the audio, it
is an MP3 file. I have tried some methods but as i am starting from
scratch i do not have any idea and I am stuck.
Basically, i want a simple label like "play" to appear and
when clicked on it connect to a URL specified (probably using
Action script) and play the MP3 file.
I have tried searching the forums and Internet before asking
this question but I did not get any accurate answer.
Kindly respond to this query if anyone has the answer.I
require this very urgently.
Thank you for the support.

You could do something as plain and simple as putting a place
holder movie
clip on the stage and give it an instance name of
placeholder.
Then for your button:
myBtn.onRelease = function(){
placeholder.loadMovie("myURLtoMP3.mp3")
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
<--check this
***Stop Piracy
http://www.adobe.com/aboutadobe/antipiracy/***
"LeifKolt" <[email protected]> wrote in
message
news:f5ukov$cij$[email protected]..
> Hello,
>
> Can anyone give me the ActionScript to solve this
problem.
>
> I have a button, when this button is clicked I want it
to play an MP3 from
> a
> URL somewhere on the web. In this case
> "
http://www.leifkolt.com/WeAreAllTerrorists.mp3"
>
> I am trying to build my own player within my website
(entirely built in
> flash)
> and don't want to mess with the hassle of a scripting a
playlist etc... I
> just
> want to have the song names as buttons, and when you
click the button it
> plays
> the desired MP3 off of my web server.
>
> Any help is greatly appreciated. THANKS!
>
> LEIF(kolt)
>

Similar Messages

  • Playing mp3s from the iphone music library

    i'd like to play around with making my own mixing software on the iphone.
    does anyone know if it's possible to play mp3s from the phones music library using the iphone sdk?
    -V

    There are both composite and component out cables for the iPhone for sale at the online store:
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=228 360E7&fnode=home/shopipod/ipod_accessories/cablesdocks&nplm=MB128LL/A

  • Progressive Flash Not playing properly from remote server

    I have Flash CS3.
    PROBLEM: I've encoded a video using Flash's CS3 "Progressive
    Download" option and then uploaded the resulting video (along with
    it's associated files created by Flash ie: .fla, .swf, script
    folder with action script, etc.) to my server (webpage and video
    was created through Dreamweaver CS3).
    RESULT: A flash video that plays on the web, but has pink
    colored digital boxes that breakup the picture... poor quality.
    Please follow this link for an example:
    http://rivhawk.tripod.com/index.html
    I've watched multiple step-by-step tutorials by Adobe for
    creating and uploading Flash video, both with Flash CS3 and even
    Dreamweaver CS3. I've tested by creating the flash content in Flash
    CS3 and directly through Dreamweaver. The same digital noise, pink
    blocks occured.
    NOTE: Before uploading the flash content and associated
    files, I tested the flash video in my browser through Dreamweaver
    (from my local directory, not remote server)...and it
    plays/operates perfectly. It's only once it's uploaded that the
    problem occurs.
    I've encoded the video with Flash 8 and Flash 9 at low,
    medium and high qualities...same results (even by different
    computers accessing the content on the internet). It happens in
    Firefox and Internet Explorer.
    After 3 days of tests and research (and viewing samples of
    other beautiful progressive download videos on the internet) I'm
    wondering if I am missing something very simple, if there is a bug,
    is this a known issue etc.
    Please help, and please understand that I've been through all
    the tutorials on creating/using Flash Video...and specifically
    using the Progressive Download option for use on remote servers
    that don't have the Flash Media Server.
    Please assist.

    > Hi, I am very new to the video thing. I created a Flash
    swf that plays an
    > flv
    > file and everything works fine when I upload the swf and
    the flv file to
    > the
    > same directory on our web server. We'd like other web
    sites to be able to
    > place
    > this video on their site, but we do not want to give
    them the actual
    > files,
    > rather have the video files pull from our server.
    You can play video from any server by using a full URL ie
    http://www.anotherdomain.com/flashvideo.flv
    <param name="movie" value="videos/rep.swf" />
    Looks like you're building an FLV player in Flash to play
    your video rather
    than embedding it using DW. If so you need to open the source
    FLA you used
    to generate 'rep.swf' and insert a full URL to your flv file,
    then publish
    the swf and upload again.
    > I've tried changing the value and embed source tags to
    be complete urls
    > referencing the actual video location, but I still get
    an error saying the
    > flv
    > file cannot be found. Is there a way to do what I'm
    requesting?
    As above, or you can just embed the video on a web page in
    DW, using a full
    URL to your flv. If your flvs are on a server and you are
    connected to the
    internet, you should be able to play the flv using preview in
    browser before
    uploading the page.

  • Play MP3 from server

    Hello I've he next problem. I need to play mp3 files in my mobile phone that are stored on a server using bluetooth connections. I think i can use streaming or http, but i don't how can i join it with bluetooth connection. I have a lot of ideas but nothing clear.

    Are you asking how to use the Bluetooth API? These tutorials should be helpful:
    [http://today.java.net/pub/a/today/2004/07/27/bluetooth.html]
    [http://www.ibm.com/developerworks/java/library/wi-boogie1/index.html]
    [http://www.ibm.com/developerworks/java/library/wi-boogie2/index.html]
    acisse wrote:
    Hello, all times that i have asked something nobody answer me. Please could someone tell me i'm something wrong? Or posting message in the wrong place?Well, there are fewer people here than in some other sections of the forums, so it can take some time before someone replies.

  • I want to play mp3 from usb flash disk . what adapter do i use?

    i need to play mp3 on ipad using flash disk or sd card . how can i du that?

    You cannot ,not supported ,load the mp3 on to iPad via iTunes on a PC or Mac

  • Playing MP3 from database

    I have an access database which holds MP3 filename.
    Icreated a browse list with several records. I can I have
    user click the
    link in a table to play / download that MP3 file in order to
    play it ?
    Arthur

    thanks, but I'm still confused on that....
    what do you mean by:
    >make the link to download the file from DATA SOURCES
    I don't understand what do you mean here ?
    I have a repeated region with CD_Number, CD_Title and CD_Name
    I can add extra column woth the FILE_PATH just by inserting
    apropriate
    column from BINDINGS panel, but what LABEL you talking about
    > and choose the column in the database with the file name
    for the label and
    > you will need a column with the path to the link for the
    action of the
    > link.
    also - as far as FILE_PATH do I need to keep path as URL
    (i.e.
    HTTP://Folder/File) or just standard
    (i.e. D:\FOLEDR\FILE_PATH) ???
    >
    >
    > --
    > Nancy Gill
    > Adobe Community Expert
    > BLOG:
    http://www.dmxwishes.com/blog.asp
    > Author: Dreamweaver 8 e-book for the DMX Zone
    > Co-Author: Dreamweaver MX: Instant Troubleshooter
    (August, 2003)
    > Technical Editor: DMX 2004: The Complete Reference, DMX
    2004: A
    > Beginner's
    > Guide, Mastering Macromedia Contribute
    > Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced
    PHP Web
    > Development
    >
    >
    >
    > "Artuhr K" <[email protected]> wrote in
    message
    > news:e3dctc$jdo$[email protected]..
    >>I have an access database which holds MP3 filename.
    >> Icreated a browse list with several records. I can I
    have user click the
    >> link in a table to play / download that MP3 file in
    order to play it ?
    >>
    >> Arthur
    >>
    >>
    >
    >

  • PLaying MP3 from dB

    I have number of MP3 files. I created a database that would
    hold the
    location and the filenames.
    How would I implement a feature that will allow a user to
    display list of
    MP# files from the database and then play particular file
    upon clicking a
    link (in a tbale list) ???
    Thank for haelp and suggestions....
    Arthur K

    thanks, but this doesn't answer the question.
    Assume that I have a dB table, which data is listed in
    repeated region in
    DW.
    So i.e. the tbale lists CD_Number, CD_Title and CD_Time. How
    would I make a
    link from any of the database field, so when the user clicks
    on the link it
    will either play the MP3 file in user's default player, or
    open a page that
    will play the file. Another words the whole idea is to insert
    a filename and
    path to the MP3 file so the table with the files list can be
    updated weekly
    and the user can play any file who's name is in adtabase ???
    Arthur
    "crash" <[email protected]> wrote in message
    news:e37tmj$g40$[email protected]..
    > Flash player would be your best bet.
    > "Artuhr K" <[email protected]> wrote in
    message
    > news:e36gpi$lf5$[email protected]..
    >>I have number of MP3 files. I created a database that
    would hold the
    >>location and the filenames.
    >> How would I implement a feature that will allow a
    user to display list of
    >> MP# files from the database and then play particular
    file upon clicking a
    >> link (in a tbale list) ???
    >>
    >>
    >> Thank for haelp and suggestions....
    >>
    >> Arthur K
    >>
    >>
    >
    >

  • Recorded Meeting plays audio from connect url but offline does not

    Hello,
    I recorded my meeting using audio from telephone conference (which is a nice new feature for 7.5 if not using one of the supported phone conferencing systems).  When I play the recording from the adobe connect site URL (or choose edit) the audio plays.  When I do a "make offline" it creates the presentation only with no audio.  Is this a limitation that I did not read about or am I doing something wrong?
    thank you

    use this code "Component control = player.getVisualComponent(); "
    instead of this code " Component control = player.getControlPanelComponent();"
    But if you want show both of them, modify as following
    Component control1 = player.getControlPanelComponent();
    Component control2 = player.getVisualComponent();
    then add the two control (control1 & control2 ) to your JFrame panel

  • Error when retrieving data from remote url

    Hello,
    I'm trying to do something that should be very simple --
    letting a user enter something in a textbox, then using that data
    as a script parameter when calling a remote cgi script, and
    returning the results to the screen.
    The remote cgi is sending data in plain text. I have looked
    at several examples, and I've tried using an XMLHttpRequest, I've
    tried using the servicemonitor.swf methods, and I've tried with
    URLRequest and URLLoader methods. All fail in one way or another.
    Here's the code for the URLRequest/URLLoader method...
    function fetchISSN(myform) {
    air.trace("Starting Fetch");
    var mytitle = myform.title.value;
    air.trace("TITLE: " + mytitle);
    var reqURL = "
    http://grlinker.coalliance.org/grbin/ilu_rmt.cgi";
    air.trace("URL: " + reqURL);
    var variables = new air.URLVariables("title=" + mytitle +
    "&isf=plain");
    air.trace("URLPARMS: " + variables);
    // var element = document.getElementById('results');
    var request = new air.URLRequest(reqURL);
    air.trace("Request Object Created");
    request.data = variables;
    air.trace("Data Added to request");
    request.method = air.URLRequestMethod.POST;
    var loader = new air.URLLoader();
    air.trace("Loader Object Created");
    loader.addEventListener(air.Event.COMPLETE, loadComplete);
    loader.addEventListener(air.Event.OPEN, loadOpen);
    try {
    loader.load(request);
    } catch(e) {
    alert('Could NOT load data: ' + e);
    } // end of function fetchISSN
    function loadComplete(event) {
    // alert('Downloaded ' + loader.bytesTotal);
    alert('Complete');
    // element.innerText = loader.data;
    } // end of function loadComplete()
    function loadOpen(event) {
    alert('Downloading');
    } // end of function loadComplete()
    And the HTML that calls it...
    <table width="280" border="1" align="center">
    <tr><td align="center">
    <font size="2">Enter a title and click
    submit.</font>
    <form name="issn">
    <input type="text" name="title" /><br>
    <input type="submit" name="submit" value="Submit"
    onClick="javascript:fetchISSN(this.form)" />
    </form>
    </td></tr>
    </table>
    Things go fine until it hits the loadComplete function. At
    that point, the following error is generated...
    Error: The application attempted to reference a JavaScript
    object in an HTML page that is no longer loaded.
    at __HTMLScriptFunction/throwJSObjectDead()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    Can anyone give me any advice or even a reason for this
    failure. I did find a bug about this in the bugtracker, it says it
    is resolved with an "external" resolution. I'm not sure what that
    means. Is there a patch I'm missing? Am I doing something really
    stupid?
    Just for reference, I'm on a Mac running OS X 10.5.6, using
    the SDK for development.
    Thanks!
    Scott

    Hi,
    Can you try putting the declaration of the URLLoader instance
    outside your fetchISSN function and see?
    That is:
    var loader;
    function fetchISSN(myform) {
    //your code above this line
    loader = new URLLoader();
    //rest of your code

  • Play Video from Youtube URL

    I would like to create a Flex Video player with a text box.
    User can enter a Youtube video URL, such as http://www.youtube.com/watch?v=wuEcLjbUS1E and the video plays.
    Any way to accomplish this?
    PrimoDolce

    This code works:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          private function playVid():void{
            navigateToURL(new URLRequest(txt.text), '_blank');
        ]]>
      </mx:Script>
      <mx:TextInput id="txt" width="100%"/>
      <mx:Button label="View" click="playVid();"/>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.

  • Playing .mp3 directly from internet (http) possibl...

    Dear all,
    I created a correct M3U playlist, containing some MP3 files which are stored remotely (on a server). I put in URLs like:
    http://www.test.com/123.mp3
    http://www.test.com/456.mp3
    Opening the playlist in Winamp works like a charm, all the files will play. However, opening the playlist on my N78 will result in a "Error, File damaged" message.
    Is it possible at all to have the phone play MP3 stored remotely (using http, via the music player or RealPlayer, etc.?)
    N78 promised to be good!

    I don't know how this would work exactly in Firefox as I don't use it but in Safari you can right click on the MP3 link in the webpage and choose "Download Linked File" Or "Download Linked File As". In Camino you right click and choose " Download Link Target". As Camino and Firefox are related this second option may be the one you would see. You can download the file and use the normal Add to Library process to put the file into iTunes.

  • Making link play .mp3 URL?

    Hello,
    I'm wondering if there is a way to make a simple text link play an .mp3 through its URL instead of opening up a tab of the .mp3 itself when it is clicked on.  Also, it would be nice if, when clicked, the .mp3 would play and the text link would toggle to another word like "stop" or something of that sort; and when clicked on again, would stop it or pause it.
    Thanks for your time!

    You could do something as plain and simple as putting a place
    holder movie
    clip on the stage and give it an instance name of
    placeholder.
    Then for your button:
    myBtn.onRelease = function(){
    placeholder.loadMovie("myURLtoMP3.mp3")
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    <--check this
    ***Stop Piracy
    http://www.adobe.com/aboutadobe/antipiracy/***
    "LeifKolt" <[email protected]> wrote in
    message
    news:f5ukov$cij$[email protected]..
    > Hello,
    >
    > Can anyone give me the ActionScript to solve this
    problem.
    >
    > I have a button, when this button is clicked I want it
    to play an MP3 from
    > a
    > URL somewhere on the web. In this case
    > "
    http://www.leifkolt.com/WeAreAllTerrorists.mp3"
    >
    > I am trying to build my own player within my website
    (entirely built in
    > flash)
    > and don't want to mess with the hassle of a scripting a
    playlist etc... I
    > just
    > want to have the song names as buttons, and when you
    click the button it
    > plays
    > the desired MP3 off of my web server.
    >
    > Any help is greatly appreciated. THANKS!
    >
    > LEIF(kolt)
    >

  • [ADF Mobile] remote url feature

    I have several questions from a customer regarding ADF mobile capabilities. They have already developed an ADF application and are looking at reusing that in an ADF Mobile application.
    1. How can I access phone features from inside a Remote URL feature? Do I need to add the phonegap javascript libraries and code to the remote app or do I need to do smth on my mobile app?
    2. Can I access content exposed by the page in the remote URL feature? For instance, let's say that on my remote app I have a list of POIs that I want to display on a map in my mobile app. Can I achieve that with remote url + an additional feature(to show the map) or should I use web services +amx pages?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi ,
    i want to tell my knowledge that i know about your questions.
    1) You cant access native features from remote url.
    2) You can only reach native features by using mobile app. ADF mobile can do this as you know.
    3) Phonegap is using on mobile platforms.
    4) You cant access content exposed by the page in the remote URL feature but u can use content via calling webservices from your mobile app.
    Fuat OZERGIL
    Edited by: FuatOZERGIL on 06.Ara.2012 08:14

  • Ipad mini remote app will connect to my itunes library and apple tv but can't play content from itunes library on the apple tv

    What I am trying to do is very simple, and I am sure I have done it before.
    I have an Apple TV (2nd Gen) connected to Wifi Network (Airport Extreme 802.11n) I want to stream content from the itunes library on my macbook pro over the wifi network to the Apple TV. This works no problem, home sharing is set up and I can see the itunes library under 'Computer' on the Apple TV interface. I can use the Apple Remote to scroll through and play content from my itunes. Works no problem.
    Now I want to use the remote app on my ipad mini to control the apple tv. Using up to date app (Version 3.01) Again, everything looks like it should work. I have turned on Home Sharing on the remote app settings. It works fine and both my itunes library and Apple TV show up on the interface. I can touch the itunes icon and control the itunes on my computer and play music and video on my computer screen. 
    Now when I touch the apple tv icon I can't see my itunes library content to play on the apple tv. I see the below image. If I tap on the icon in the bottom left it takes me back to the screen in the first image. What is the strangest thing is that I can control the apple tv using the gestures interface! This isn't what I want though and I want to be able to see the itunes library on the screen of the ipad and play it on the apple tv. You can see in the video on this link (http://www.youtube.com/watch?v=UvEpgcE9KCs). This is what I am trying to do and I just don't understand why I don't get the screen seen at 1:25 in the video. Instead I get the screen seen in the below image.

    OK, Problem solved. Software on Apple TV was VERY outdated. It had been sitting in the box for over a year and needed an update. Problem solved!

  • How can I play music from the icloud using apple tv (2) controled by remote app  on iphone so the TV is switched off but stereo on

    I was blown away when I started using the new remote app with Apple tv to play music from my iMac on my best music speakers in the living room!!!  However there are still 2 things required to make things ultra simple:
    1 Not to have my iMac switched on to have to stream music to the Apple tv (I've now started using iTunes Match which has almost fixed this one)
    2 Not have to have my TV switched on to control my amplifier through the apple tv.  (I can do this using the remote app on the iphone but only for music streaming from my iMac it wont work for music I have in iCloud, apart from music now playing.  I can't search/browse any other music)
    If this is fixed it will be absolutely awesome!!! As my apple tv will replace all the HIFI separates apart form my amplifier and I can control what music my amp plays using the best user interface in the world my iphone/ipad
    Dylan

    Hi, I don't have this bug. I can play music through my apple tv with the TV switched off and use the apple remote app to control the apple tv.
    My problem involves:
    icloud music ----> broadband router ----> apple tv ---->music amplifier.  Using the remote app on the iphone to control whats playing.  This almost works but in the remote app you can only see the currently playing song, you can't search/browse your music in the icloud (itunes match).
    What does work is:
    iMac-itunes music ----> apple tv ---->music amplifier controlled by the remote app in the iphone with teh tv off.  I can view my itunes library with the tv off using the iphone remote app. I would like to do this but using my music in iCloud. That would be awesome!!!

Maybe you are looking for

  • Flex sdk 4.6 maven repo

    Hi there wasa blog post last October (http://justinjmoses.wordpress.com/2011/10/) saying that Adobe was getting invovled in getting the flex 4.6 sdk into a maven repository. There is still no mention of this either here or in the flexmojos google gro

  • Muse not saving

    After making some pretty substantial changes to a site, I went to save the site. Adobe is letting me click Save Site or Save Site As, it even pulls up the box for Save Site As, but when I confirm the Save, it just does nothing. No error message but t

  • Problems with RAW files transferred via SDHC

    Hi, Hoping someone here can help me out with a strange issue i'm having. I recently got a new Canon 450D and i'm having some weird issues with transferring the RAW files to my iMac (I previously had a 350D which used CF cards and never had an issue).

  • Digital Stamp

    I have created a dynamic stamp in Adobe Reader and would now like to show someone the process for creating a stamp from scratch. The problem is that one the stamp was created it's always there under my name. How do I delete this stamp from the menu s

  • Incompatible in unix? calculating cpu time in swing ?

    I am confused about the fact that when I run my swing program in netbeans on windows xp platform. The buttons have the ability to traverse the focus around using TAB key. But when I run the program in unix, the TAB key has no effect on the focus at a