|
-
Query string mp3 player (one at a time)
[re-post, posted in the wrong forum]
 Originally Posted by Airstep
Hi guys,
I've been asked to put together a Flash replacement for an mp3 player we developed that uses WMP with Active-X and doesn't work on Firefox etc.
The mp3s are loaded via ASP 'cases' defined either manually or through the backend (users can upload their own mp3s). There are only two fields to worry about, the url of the mp3 and the track name. I've spoken to our backend developers and they are able to output those fields in any format I require (JavaScript, ASP, PHP, XML, Query string etc.).
I first started toying with an XML-playlist mp3 player, but that seemed to be an odd way of doing things when I was only needing to play one file at a time. I didn't want lots of XML files being generated just to include fields that could really be added in as query strings.
So, I looked into pulling variables from query strings in Flash - dead simple. But then I tried to port that method into the mp3 player I created and got stuck at the first hurdle - how do I define the sound to be loaded as a variable?
My AS is pretty weak to be honest and I'm wondering if you guys have seen this done anywhere/know the best way to do things. Have searched all over FK and the net and can't find anything that doesn't use XML or something similar.
Any ideas?
 Originally Posted by hp3
It is not clear whether your question is how to use name value pairs in a query string or how to apply it to your specific situation (which implies there is some other complication you did not mention).
 Originally Posted by Airstep
Hi hp3,
Thanks for the reply.
I do know the theory and the logical process, just not the exact code. I'm a lot quicker at learning code if I've something similar to compare it to, and in this case I just don't know what to compare it to as I can't find any mention of loadSound() with variables and I don't have the understanding to translate similar tutorials into what I'm trying to achieve.
Basically I need to know how to call variables in Actionscript and whether or not I need to create empty movie clips for them or not.
I was also intersted to see if anybody else has ever done this before (I thought it would be pretty common) or if anybody knows of a better method to use.
Really I just need to know how to tell loadSound() to play the 'sound' variable I think.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|