You can use loadJavascript instead.
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/js/loadJavascript.as
 
<https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/js/loadJavascript.as>

> On Jun 16, 2019, at 4:32 PM, Carlos Rovira <[email protected]> wrote:
> 
> Hi,
> 
> I found the following problem working with modules:
> 
> https://github.com/apache/royale-asjs/issues/427
> 
> Hope we can think in some way to solve this problem so modules can use
> class with inject
> the workaround for now is import the library and use the class in the main
> app, but this defeats the module purpose to avoid
> loading code that you are not using in the shell app.
> 
> thanks
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira

Reply via email to