Load mp3 file from a URL : MP3 : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » MP3 »

 

Load mp3 file from a URL


 

package{
  import flash.display.Sprite;
    import flash.media.*;
    import flash.events.*;
    import flash.net.*;
    import flash.text.*;
  public class Main extends Sprite{
    public function Main(){

        var song:Sound = new Sound(new URLRequest("http://server.com/robotPicksFlowers.mp3"));
        song.play();

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» MP3