Tht is because this:

source="../../data/bag.xml" 

Is a *compile-time* operation.  The XML gets baked into the swf.

 

You want to use HTTPService to load your xml at run time.  You should find
plenty of examples of that.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of jam35bond
Sent: Monday, May 04, 2009 9:42 PM
To: [email protected]
Subject: [flexcoders] Data changed in xml file does not updated in <mx:xml>

 






Hi all,
My mxml has 2 components like this:
<mx:XML id="bagXML" source="../../data/bag.xml" />
<mx:Repeater id="bagRepeater" dataProvider="{bagXML.image}">
<mx:Image source="{bagrepeater.currentit...@src}" 
width="130" height="130" click='showSWF2(event,
event.currentTarget.getRepeaterItem()....@swf);'/>
</mx:Repeater>

I have to recompile the program with Flexbuilder everytime I got data
changed in the XML file.

How do I do that if I only want to get the front end display data changed by
only update the XML file without recompiling the whole program?

I am using Flex SDK3.2
Thanks



Reply via email to