aharui commented on issue #529: Compile time issue on accessing a file into 
script Block
URL: https://github.com/apache/royale-asjs/issues/529#issuecomment-545813073
 
 
   Please do not use .RAR files.  I am unable to open them.
   
   Please be very careful about the use of the words Component vs Module vs 
File.
   
   I'm assuming you are using Module and not TitleWindow as mentioned earlier.  
If you are using Modules, then you should not reference the module class in 
some other module's code, or even in the main application's code.  You are 
supposed to use Interfaces instead.
   
   If you reference the module class, then the compiler will look for a source 
file or class in a swc and actually link the module's class into the compiled 
output, which defeats the whole purpose of Modules.  And in order to do that, 
the Module's source code must either be in the source-path, or the library-path 
must include a version of the Module's compiled output.
   
   Instead, an Interface should be defined and shared between the 
module/application that is loading the module and the module itself.
   
   Did your code work in Flex?  If it did, it was probably because the 
source-path included that module's source file.  But then there would not 
actually be a need to load the module as it was linked into the loading module 
or application.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to