Hi Pashmina, [Embed] doesn't work in Royale JS targets. You either need to load it at runtime, or put it directly in your code, like this:
private static const MY_XML:XML = <tag></tag>; -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Thu, Nov 18, 2021 at 1:47 PM Pashmina Kazi <pashminak...@gmail.com> wrote: > Hello Everyone, > Hope you all are well, > I was using Embed in my .AS class like > > *[Embed("config/eps_config_test.xml", mimeType = > "application/octet-stream")]* > private static const configCT:Class; > > > > private var _configXml:XML = new XML(); > > [Bindable(event='configXmlChanged')] > public function get configXml():XML > { > return _configXml; > } > > > public function set configXml(pConfigXml:XML):void > { > if (pConfigXml != null && pConfigXml != _configXml) > { > _configXml = pConfigXml; > > dispatchEvent(new Event("configXmlChanged")); > } > } > > _configXml = Util.classToXML(configCT); > > > In Royale when i write this line [Embed("config/eps_config_test.xml", > mimeType = "application/octet-stream")] > It will not through any error but launched screen is blank > How can I Embed any .xml file into Class type var like i was doing in Flex > Please Help me, waiting for your reply > I will be very thankful to you all. > > > Thanks and regards, > Pashmina >