Thank you for your helpful responses.

I can't get the inject_html tags in the comments to work - do they need to be 
in a certain place (eg. before a constructor?). However, from your examples I 
saw how to use a custom HTML template. This allowed me to do the injection that 
way.

I'm using the 0.9.4 build from today (9/17/2018). A lot of the dependency 
issues have gone - there is just one, I'm using an EventDispatcher class to 
mimic the Actionscript EventDispatcher. It uses a Vector of Event listeners, 
and the compiler doesn't add the requirement for Language.js automatically. 

It's hard to simplify the sample code itself as the "Main" function is doing 
very little, but spins up my mimicked DisplayObject classes which inherit back 
to EventDispatcher. If you download the full checkout at the framework site: 
https://github.com/tdprogramming/xfltools

You can open the sample project in Moonshine IDE and compile for JS-debug (I 
need to remove my public vars for release build). If you run the JS-Debug build 
in Google Chrome, you'll see the console throws an error trying to spin up a 
Vector in EventDispatcher. You can run the patchIndex.py script on the output 
JS to fix this. 

Note that this sample needs to run in a browser or simulated server debug 
environment such as WAMP, in order to load the XFL file.

I'll keep investigating and try to get some simpler sample code.

[ 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