tags:

views:

21

answers:

1

I want to place a player (flash) in the top-right corner of a page and that player will change it songs based on what play button is clicked (they are in the center of the page). Do I have to use ActionScript in order to accomplish that? If I have to, how?

I want something like hits:

alt text

Each time the user clicks one of the 10 buttons the song playing in the player in the top-right should change into the selected song.

Thanks in advance!

+2  A: 

Are the buttons and the Music Player in the same .swf file? If not (which I'm guessing), you will have to use ExternalInterface for flash to communicate with javascript, and you would need javascript to get the data from the button that is clicked and send it to the music player .swf

jonathanasdf
@jonathanasdf No. I think they aren't in the same file. What's the easiest way of doing this?
janoChen
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.htmlyou can google for more examples, but that should get you started
jonathanasdf
@ jonathanasdf Thanks! I'll check it out.
janoChen