HTML Link - To Flash - To XML ( Music PLayer Like Amazon.com )

Special Mp3 Player - Using Javascript and Xml

Page 1 of 1

1 Replies - 1977 Views - Last Post: 29 April 2008 - 12:48 PM

#1 bmcc81  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 312
  • Joined: 10-July 07

HTML Link - To Flash - To XML ( Music PLayer Like Amazon.com )

Post icon  Posted 28 April 2008 - 02:06 PM

Hi,

I'm making this Music Player which is kinda like the one found at Amazon

So basically I use html Link to send the playhead to specific frames that load XML Song url and track Name.

What I wanna do now (in the HTML) is have another function that let's flash know what CD to pick out of the XML.

So I need a function like this one to tell flash what CD to pick
function CDID() {
  if (movieIsLoaded(thisMovie(movieName))) {
	thisMovie(movieName).Play();
  }
}



and also in the html the a ref where I send the CDID = name // The CD ID Name

<a href= "#" CDID= "ElvisCD "VALUE="Goto Frame 9" onclick="go(9)" >go to the frame 9</a>



Then I would need an If Statement in flash to realize what flash to play.

Does anyone know how to write the CDID to choose what CD to pick in the XML.


Once it pick the right CD in XML the I can load the approriate songs.


Thanks,

Is This A Good Question/Topic? 0
  • +

Replies To: HTML Link - To Flash - To XML ( Music PLayer Like Amazon.com )

#2 bmcc81  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 312
  • Joined: 10-July 07

Re: HTML Link - To Flash - To XML ( Music PLayer Like Amazon.com )

Posted 29 April 2008 - 12:48 PM

I basically figured it out you can check out THIS THREAD where I got some help.

All I have to do know is get the passed variable that I sent into flash to replace the relative link in my actionscript.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1