Hi, this is because you are making the web service call and then setting the playerInfo instantly, without waiting for the result of the web serivce.
The Flash player doesn't block (stop and wait) after you give the podData.send(), it simply starts the call then continues executing your code. And the result property of the service hasn't been set yet so you don't see it after the first call, and it hasn't been re-set so you see the result of the first call on the second try, etc etc. You have to use the result event of the service, something like this: <mx:HTTPService id="podData" url="{podURL}" useProxy="true" showBusyCursor="true" result="playerInfo=podData.result.rss" /> You should also handle the fault event so if it fails it does so nicely. And of course you should probably have the code in a method rather than right in the service declaration... Hope that helps. Jason --- In flexcoders@yahoogroups.com, "Drew Falkman" <[EMAIL PROTECTED]> wrote: > Hi- > > > > I have this odd behavior going on in my application that I'm hoping someone > can help me figure out. Basically here's what happens: > > > > 1) A component broadcasts an event containing a URL to an XML file > when an item is clicked on in a datagrid. > > 2) The controller receives this event, then retrieves the XML file via > an HTTPService tag. > > 3) A binding passes the result to another component, which displays > the data. > > > > Here's the oddness: the component displays only the data from the PREVIOUSLY > selected item that calls the event. So for example, if the user clicks "a", > the HTTPService is called, but no results are displayed in the display > component. However, then the user clicks "b", and the contents of "a" > appear. > > > > Ideas? > > Drew Falkman Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/