rickreliv AFC Member
Joined: 17 Jul 2008 Posts: 6
|
Posted: Mon Jul 21, 2008 3:10 pm Post subject: XML & variables |
|
|
Restated, Let's try this!
Here's what I'd like to happen:
When calling to the flash program, I like to pass some variables to the flash player. For instance, I'd like to tell the flash player what country this is from, what language to display, and what month to display. From my understanding I should be able to pass these variables like this:
<embed src="/flash/IntroMovie_Pg/IntroMovie_2.swf?country=US&language=EN&date=123456789" ... />
These values will then need to be passed on the the xml sheet with the folling url:
songList.xml?country={$country}&language=($language)&date={$date}
{$country}, ($language), {$date} in the url above would need to be replaced with what I passed the original flash file.
P.S. Don't get hung up on the xml extension in the url. While yes it does produce an xml sheet it is actually a dynamic page written in php.
----------
Link to MP3
http://reliv.com/flash/SpotlightAUSSIJUN_MP3/relivSpotlightAUSSI_JUNEmp3player.swf
-----------
Maybe this will help! Sorry for the confusion!
Rick
---------------
need to add to this code in my mp3
songList_xml = new XML ();
songList_xml.ignoreWhite = true;
songList_xml.onLoad = function (success) {
if (success) {
songListLoaded ();
}
};
***//tell it how many rows to display***
songList_lb.setRowCount (6);
***//Define change handler for listBox component***
songList_lb.setChangeHandler ("doPlay");
***//Finally! Load the xml document.***
songList_xml.load ("songList.xml"); |
|