Advanced Flash Components
Search!
Search!
Home >  Forum
  SearchSearch   
XML & variables

 
Post new topic   Reply to topic     Forum Index -> MP3 Player
View previous topic :: View next topic  
Author Message
rickreliv
AFC Member


Joined: 17 Jul 2008
Posts: 6

PostPosted: Mon Jul 21, 2008 3:10 pm    Post subject: XML & variables Reply with quote

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");
Back to top
View user's profile Send private message
nerfkhat
AFC Team


Joined: 19 Nov 2007
Posts: 2105

PostPosted: Tue Jul 22, 2008 8:35 pm    Post subject: Reply with quote

Hi Rick,
I believe I have been helping you in other forum?

Thanks,
Nerath
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MP3 Player All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group