Maybe this [2] is closer to what you want.


I’ve tested [1] but not [2]. According to [2] your syntax was ok, so maybe post 
a test case demonstrating your problem.



[2] 
https://github.com/apache/royale-asjs/blob/develop/examples/mxroyale/tourdeflexmodules/src/spark/controls/TextLayout3Example.mxml



________________________________
From: Yishay Weiss <[email protected]>
Sent: Tuesday, July 9, 2019 5:10:27 PM
To: [email protected]
Subject: RE: Support for XML embedded via 'source' attribute

Hi Andrew,



There’s an example [1] here.



[1] 
https://github.com/apache/royale-asjs/blob/develop/examples/mxroyale/tourdeflexmodules/src/explorer.mxml



________________________________
From: Frost, Andrew <[email protected]>
Sent: Tuesday, July 9, 2019 4:52:36 PM
To: [email protected]
Subject: Support for XML embedded via 'source' attribute

Hi all

Am I missing something, or do we not yet have support for something like:
  <fx:XML id="myXML" source="xml_source_file.xml"/>

This is creating an XML object with ID 'myXML' but then not picking up and 
initialising it with the contents of that source file..

If this isn't implemented yet, then what would people think is the best way to 
do it: should we try to dynamically fetch the XML file at runtime? or should we 
build the XML into the JavaScript initialisation somehow?

thanks

   Andrew



Reply via email to