On 10/31/16, 10:40 PM, "PKumar" <[email protected]> wrote:
>problem with <inject_html>is that it is not copying the amf.js inside the >bin-debug/bin-release folder. i also tried -include-resources compiler >option but nothing working. That's correct. <inject_html> is for "linking" to code. For the debug builds, there are a pile of JS files to load. <inject_html> allows you to add <Script> blocks to the <head> and specify a URL for a script to load. Other JS files are cross-compiled from AS and contain the goog.provide and goog.require so that Google Closure Library loads all of the other JS files in correct dependency order. We don't currently have a capability of copying other .JS files from a SWC into the output folder. One thing that might work today is to customize the SWC build. I haven't looked at amf.js, or your SWC code, but if you take a copy of wmf.js and add the goog.require and goog.provide and put it in the SWC under a js/out folder, then the compiler will use it if the app references it. HTH, -Alex
