Multidimensiona lUrl Query String

Ok,

This 1st part works

I am loading a sound by reading a Url Query String

mSound.loadSound(url, true);

This is what the url string looks like

/dev/profile/profile_manager_top_frame.asp?url=/media/mp3/719_6343.mp3&playing = 1

It is taking the word url and puting the mp3 path in its place,
works great.

Problem,
Flash does not see the second part of the string,“playing=1”
Why is this? Does flash not read multidimensional Url Quary Strings?

Help
:sure:

Try escaping the url:

escape("/dev/profile/profile_manager_top_frame.asp?url=/media/mp3/719_6343.mp3&playing = 1")/*returns %2Fdev%2Fprofile%2Fprofile%5Fmanager%5Ftop%5Fframe%2Easp%3Furl%3D%2Fmedia%2Fmp3%2F719%5F6343%2Emp3%26playing%20%3D%201*/

I beleive I found a differnt way to pass data to flash via the object/embed command in html. Still interested in what you mean by escapeing the URL, is this a php. function, or can asp. do this as well?

mSound.loadSound(escape("/dev/profile/profile_manager_top_frame.asp?url=/media/mp3/719_6343.mp3&playing = 1"), true);

let me know if it works!

I don’t understand why that would do what I need, this would no longer let the mp3s be dynamic, it would be static. You see the loadsound comand states url, which reads the ?url=“thePath”.
If you already know this and your talking about something else I apologies for not understanding, but I think the object/embed command will work just fine.

Thanks,

Bill

*Originally posted by waffe *
Problem,
Flash does not see the second part of the string,“playing=1”
Why is this? Does flash not read multidimensional Url Quary Strings?

This was your problem, that playing 1 doesn’t get triggered using the above way, using my solution, it get triggered, that’s all…