# Playing Songs In Flash Player, which are stored on Remote Server

**URL:** <https://forum.kirupa.com/t/playing-songs-in-flash-player-which-are-stored-on-remote-server/323792>\
**Category:** flash\
**Created:** [July 18, 2011, 7:22pm UTC](https://forum.kirupa.com/t/playing-songs-in-flash-player-which-are-stored-on-remote-server/323792 "2011-07-18T19:22:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![supreetrai](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@supreetrai](https://forum.kirupa.com/u/supreetrai)\
**Post date:** [July 18, 2011, 7:22pm UTC](https://forum.kirupa.com/t/playing-songs-in-flash-player-which-are-stored-on-remote-server/323792/1 "2011-07-18T19:22:52Z")

</div>

Hi,

I have a flash player which can play the songs stored on the Local Server, under “mp3” directory.

I would like to modify this player, so that i can play the songs stored on the remote server, through an API.

Following is the code of the player :  
   
var request:URLRequest = new URLRequest(“mp3/” + \_currentItemObject.songFile);

\_primary\_snd.load(new URLRequest(“mp3/” + \_currentItemObject.songFile));

The location or say URL of every song ( stored on the remote server ) is different. So i need to pass dynamic values to my player.

Kindly suggest an approach to achieve this as I am pretty new to flash and actionscript world.

Thanks in advance.
