On 12/5/16, 12:34 AM, "Harbs" <harbs.li...@gmail.com> wrote:
> >On Dec 5, 2016, at 9:58 AM, Alex Harui <aha...@adobe.com> wrote: > >> >> >> On 12/4/16, 11:38 PM, "Harbs" <harbs.li...@gmail.com> wrote: >> >>> If this is code in the SDK, changing the URL in the generated HTML is >>> painful. >> >> I have not tried monkey-patching. Does it not work? > >I’m not sure what you mean by monkey patching. (in this context) The intent is for SWF monkey-patching to work the way it used to (put the patched file in the source path). JS monkey-patching is provided by taking a copy of the output .JS file, placing it in the appropriate place inside FLEXJS_HOME/frameworks/js/generated-sources and modifying it. The compiler should pull JS files from there before pulling JS files from the SWCs. > >> Also, couldn't you just edit the output HTML? > >Sure. And that’s probably a good solution for deployment. But during >development and debugging, the auto-generated HTML is very handy >considering all the dependencies are automatically generated. Having to >manually edit that every time your compile and debug is painful to say >the least. I would just set up a build script to do it. -Alex