PDA

View Full Version : Problem with dataprovider(multiple)


airgrace1
03-17-2009, 02:00 PM
Hi,
I am having a very bizarre problem. I am passing in an object into two functions, but for some reason one function seems to be overriding the other in terms of displaying data. The application I am developing is using the last.fm api's from http://code.google.com/p/lastfm-as3-api/downloads/list and the accompanying ASdocs http://www.spry-soft.com/LastFMAS3API/documentation/index.html. Essentially the data that I am calling is xml based (xmllist). In short the problem is that, I am calling a function called getSimilar() and getTopTracks() from the Artist class. Both of these functions use different dataproviders.

In short when a user searches for an artist, it generates a datagrid. When a user clicks on the datagrid item, it shows a popup with a list of the topTracks for that artist. When I ever I click on an artist from the datagrid, it generates the list but the artist datagrid clears out. I am not sure what is going on, but any help will be very much appreciated. I have to release the applicaiton very soon, and its become really urgent. To give you a better perspective, here is the link to the problem. http://www.netsoc.dit.ie/~airgrace/app/App2V2Album.html

I am not sure if this is in the right category, if the mod's deem necessary please move it to the right category.