Hello guys,
A newbie here.

I have this code:
<?xml version="1.0" encoding="UTF-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
    layout="absolute" creationComplete="bookData.send()">

    <mx:Script>
        <![CDATA[
            import mx.rpc.events.ResultEvent;
            import mx.rpc.events.FaultEvent;
            import mx.controls.Alert;

            [Bindable]
            private var bookInfo:XMLList;

            private function handleXML(event:ResultEvent):void{
                bookInfo=event.result.stock as XMLList;
                Alert.show(xmlBooks.toString());
                Alert.show(bookInfo);
            }
        ]]>
    </mx:Script>
    <mx:XMLListCollection id="xmlBooks"
         source="{bookData.lastResult.stock}"/>
    <mx:HTTPService result="handleXML(event)" id="bookData" url="books.xml" 
resultFormat="e4x"/>
    <mx:DataGrid x="56" y="250" width="950"
        dataProvider="{xmlBooks}"/>
</mx:Application>


How do I get the datagrid to be populated with rows? The alert.show calls 
somehow get the data.

What am i missing here?


JC

Reply via email to