# Url Encoding of link to MP3 to pass back to Flash

**URL:** https://forum.kirupa.com/t/url-encoding-of-link-to-mp3-to-pass-back-to-flash/176544
**Category:** flash
**Created:** [January 24, 2006, 9:51pm UTC](https://forum.kirupa.com/t/url-encoding-of-link-to-mp3-to-pass-back-to-flash/176544 "2006-01-24T21:51:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kungFuChris](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kungFuChris](https://forum.kirupa.com/u/kungFuChris)
#### Post date: [January 24, 2006, 9:51pm UTC](https://forum.kirupa.com/t/url-encoding-of-link-to-mp3-to-pass-back-to-flash/176544/1 "2006-01-24T21:51:09Z")

</div>

Hey guys,

I am trying to load and mp3 file dynamically into flash via flash variable and php… Now in my test the flash variable is being passed to the php script and the php script is passing back the values with the exception of the actual mp3 file name.

Now debugging proves that it is getting the file name of the required mp3 from the server… it show it when i run a php print\_r()

I am thinking that it has to do something with the actual file name since it contains spaces for example the name are like “[http://www.mysite.com/music\_folder/some](http://www.mysite.com/music_folder/some) file.mp3”

Do I need to encode the url befor it is passed back to flash?

Edit: Hey guys… problem solved… Turned out not a flash issue… simple typo error…
