You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/09/18 02:03:22 UTC

[GitHub] tdprogramming commented on issue #297: Compiler doesn't seem to catch all dependencies

tdprogramming commented on issue #297: Compiler doesn't seem to catch all dependencies
URL: https://github.com/apache/royale-asjs/issues/297#issuecomment-422228687
 
 
   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.

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


With regards,
Apache Git Services