I believe one problem is that I'm using static initializers, for example:

`private static var eventDisp:EventDispatcher = new EventDispatcher();`

The current dependency considerations seem to assume that everything will be 
"new'd" after program start, and the static initializers come in early and 
throw it for a loop.

For my own code, it's probably best for me to use lazy init methods instead of 
statics anyway, but my eventual aim is an Enterprise-grade system that can work 
with messy, legacy Flash code. As an example, I want it to compile and run the 
Actionscript version of TweenMax, which uses a static initializer for its 
ticker.

As a stop-gap solution, I've made a quick Python script which can read a JSON 
list of dependencies that are definitely required and add them if needed - it 
may be useful to some devs while we continue to try to nail these issues down, 
just to keep things rolling along:

https://github.com/tdprogramming/xfltools/blob/master/js-src/dependency_assistant.py

[ Full content available at: https://github.com/apache/royale-asjs/issues/297 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to