[flexcoders] Re: Data changed in xml file does not updated in mx:xml

2009-05-06 Thread Tim Hoff

Hi Hery,

You probably have the Copy non-embedded files to output folder
compiler option selected.  So, the xml file that your application is
referencing is in the bin-debug folder.  If you change that file
directly, you should be able to get the new data without re-compiling
the application.  Of course, this file will be replaced each time that
you DO recompile; so be careful.

-TH

--- In flexcoders@yahoogroups.com, jam35bond jam35b...@... wrote:


 Hi all,

 mx:XML id=trendyXML source=data/casual.xml /

 Some where in my source code:
 imageRepeater.dataProvider=trendyXML.image;


 The result is the repeater display all records in the xml files.
However, I need to keep update xml file and RECOMPILE the app with flex
builder in order for the xml updates to take effect. I would like to get
the data updated by only editing the xml file without recpmpile the
program. Anyway how I can fix this?




 henry






[flexcoders] Re: Data changed in xml file does not updated in mx:xml

2009-05-06 Thread Tim Hoff

If not, you'll have to use URLLoader or HTTPService to load the xml.

-TH

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:


 Hi Hery,

 You probably have the Copy non-embedded files to output folder
 compiler option selected. So, the xml file that your application is
 referencing is in the bin-debug folder. If you change that file
 directly, you should be able to get the new data without re-compiling
 the application. Of course, this file will be replaced each time that
 you DO recompile; so be careful.

 -TH

 --- In flexcoders@yahoogroups.com, jam35bond jam35bond@ wrote:
 
 
  Hi all,
 
  mx:XML id=trendyXML source=data/casual.xml /
 
  Some where in my source code:
  imageRepeater.dataProvider=trendyXML.image;
 
 
  The result is the repeater display all records in the xml files.
 However, I need to keep update xml file and RECOMPILE the app with
flex
 builder in order for the xml updates to take effect. I would like to
get
 the data updated by only editing the xml file without recpmpile the
 program. Anyway how I can fix this?
 
 
 
 
  henry
 





[flexcoders] Re: Data changed in xml file does not updated in mx:xml

2009-05-06 Thread Tim Hoff

From the docs for mx:XML:

The source property specifies an external source, such as a file, for
the data model. The external source can contain static data and data
binding expressions. The compiler reads the source value and compiles
the source into the application; the source value is not read at
runtime.

-TH

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:


 If not, you'll have to use URLLoader or HTTPService to load the xml.

 -TH

 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
 
  Hi Hery,
 
  You probably have the Copy non-embedded files to output folder
  compiler option selected. So, the xml file that your application is
  referencing is in the bin-debug folder. If you change that file
  directly, you should be able to get the new data without
re-compiling
  the application. Of course, this file will be replaced each time
that
  you DO recompile; so be careful.
 
  -TH
 
  --- In flexcoders@yahoogroups.com, jam35bond jam35bond@ wrote:
  
  
   Hi all,
  
   mx:XML id=trendyXML source=data/casual.xml /
  
   Some where in my source code:
   imageRepeater.dataProvider=trendyXML.image;
  
  
   The result is the repeater display all records in the xml files.
  However, I need to keep update xml file and RECOMPILE the app with
 flex
  builder in order for the xml updates to take effect. I would like to
 get
  the data updated by only editing the xml file without recpmpile the
  program. Anyway how I can fix this?
  
  
  
  
   henry