Hi

The only slight issue with that approach might be the asynchronous nature.. in 
the Flex world, if we embed something in this way, it's packaged into the SWF 
and available immediately, and set up during an object's initialisation prior 
to the "applicationComplete" event. If we do an async load via http, then we're 
perhaps likely to hit "applicationComplete" prior to loading it all? (Or maybe 
not, I'll have to look at how that works! I'm guessing we should be waiting for 
a browser's 'document complete' event before we kick off our initialisation?).

My only other thought on the approach to embed this into the initial JS/HTML 
file means we would need to update the compiler..

No console output is happening, but when I add breakpoints and trace what's 
happening, the XML element is being initialised as an empty object, the 
contents of the 'source' property are ignored and the source isn't found in the 
generated JS code at all.

thanks

   Andrew
 

-----Original Message-----
From: Piotr Zarzycki <piotrzarzyck...@gmail.com> 
Sent: 09 July 2019 15:00
To: dev@royale.apache.org
Subject: [EXTERNAL] Re: Support for XML embedded via 'source' attribute

Hi Andrew,

To me if it is possible it should be a bead which is able to load external file 
and inject to source.

Do you get any kind of console output in the browser ? What will happen if you 
set full path to source property to that XML file ?

Thanks,
Piotr

wt., 9 lip 2019 o 15:52 Frost, Andrew <andrew.fr...@harman.com> napisaƂ(a):

> 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
>
>
>
>

-- 

Piotr Zarzycki

Patreon: 
*https://clicktime.symantec.com/32MPrsdnaA1JPJeYg4FTB6a7Vc?u=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki
<https://clicktime.symantec.com/32MPrsdnaA1JPJeYg4FTB6a7Vc?u=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki>*

Reply via email to