View Full Version : Multidimensiona lUrl Query String
waffe
January 17th, 2003, 05:35 PM
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:
h88
January 17th, 2003, 06:21 PM
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%2 6playing%20%3D%201*/
waffe
January 17th, 2003, 07:31 PM
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?
h88
January 17th, 2003, 07:34 PM
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!
waffe
January 17th, 2003, 07:46 PM
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
h88
January 17th, 2003, 07:49 PM
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...
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.