Flash MP3 Player Support Product Page

Mp3 player and Ajax data grid

Asked 24 Sep 2010 15:23:27
has this question
24 Sep 2010 15:23:27 Sally Carr posted:
I purchased the mp3 player and ajax data grid earlier this week with the purpose of using row behaviors to tell the mp3player to play specific mp3 when a specific row is clicked.

There is no specific tutorial for this, but I have watched the one about controlling a slide show with the grid along with creating a dynamic flash mp3 player and other references but so far no luck.

I either end up with the mp3 player not showing up on my page at all, or it will only play the mp3 I had to add when inserting it on my page, which is unrelated to the ajax grid. I can't figure out how to make it play the mp3 who's path is a part of the record on the ajax grid.

I'm guessing I need to modify Messages.addVariable but nothing has produced anything other than what I've stated above.

Can someone please tell me how to do this? I feel like I'm so close but I just can't get it which is frustrating because that's why I bought it.

Thank you.



Replied 27 Sep 2010 10:26:12
27 Sep 2010 10:26:12 Miroslav Zografski replied:
Hello Sally.

First of all both Ajax Data Grid and MP3 Player need to get their information dynamically from one and same database table: MP3 Player gets the mp3s paths to files, data grid displays the rest.
Afterwards you apply to Data Grid in Details Tab through paperClip icon a behavior on "When Row Is Clicked" Event - "Control Flash MP3 Player", where you choose Mp3 player id(it is set automatically inmost cases) in first field, and then you select in Action field "Go To".
Then in number you need to set a column from data grid ( database table) that will content a number which will correspond to the position of the MP3 file in the MP3 Player. This can be done by eider setting a flag Column in you table, which will always have numbers from 0 to Number of MP3s without doubles and is used to sort the record-set used for dynamically adding MP3s in Flash MP3 Player OR by assigning the id column if it will will always fit the requirements mentioned above. (Note that deleting record from table may distort the id column order.)
If you need more information or guidelines you can contact Miro on Live Support Chat or on my e-mail:


Reply to this topic