Hi All,

I have a datagrid, data's are from external XML file.

Once .swf file is created. I changed few values in XML & reopend .swf file, 
it's not updating. The values are updating if .mxml is recompiled.

by just reopening the .swf file, the data's must update

Here is my code

xx.mxml

<?xml version="1.0" encoding="utf-8"?>

<mx:XML id="xmlCatalog" source="testX.xml"/> 
 <mx:XMLListCollection id ="testcatlog" source="{xmlCatalog.product}"/>  
<mx:DataGrid dataProvider="{testcatlog}" >
    <mx:columns>
        <mx:DataGridColumn dataField="name" headerText="Name"/>
        <mx:DataGridColumn dataField="description" headerText="Description"/>
        <mx:DataGridColumn dataField="price" headerText="Price"/>
        <mx:DataGridColumn dataField="series" headerText="Series"/>
    </mx:columns>
</mx:DataGrid>
</mx:Application>


testX.xml

<catalog>
      <product productId="1">
        <name>Nokia 6010</name>
        <description>Easy to use without sacrificing styl</description>
        <price>99.99</price>        
        <series>6000</series>      
      </product>
      <product productId="2">
        <name>Nokia 3100 Blue</name>
        <description>Light up the night with a glow-in-the-dark cover 
</description>
        <price>139</price>
        <image>assets/pic/Nokia_3100_blue.gif</image>
        <series>3000</series>       
      </product>
      <product productId="3">
        <name>Nokia 3100 Pink</name>
        <description>Light up the night with a glow-in-the-dark cover 
</description>
        <price>139</price>
        <image>assets/pic/Nokia_3100_pink.gif</image>
        <series>3000</series>        
      </product>     
</catalog>
 
                    Thanks 
Vinoth Babu T.J.
  
 















__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to