<inject_html> is used in classes which subclass Application. How would it work for classes which might be used in multiple locations in an app?
For example, if I want to implement a BinaryData.inflate() (in a subclass or utility class) how could I use <inject_html> and be sure it will be injected once and only once? On Oct 31, 2016, at 3:28 PM, Alex Harui <aha...@adobe.com> wrote: > > > On 10/30/16, 7:24 AM, "Harbs" <harbs.li...@gmail.com> wrote: > >> >> I’m not sure whether to do an ActionScript port of one of these >> libraries, or just link to the original JS library. The advantage of >> linking is that it can be linked to a CDN to make downloads smaller. >> i.e.[4] >> >> Is there a standardized way of integrating CDN links of JS libraries at >> output? > > Unless you need something that ByteArray.compress can't do on the SWF > side, might as well just link to the original. The <inject_html> > "directive" should work. See how it is used in CreateJS and elsewhere. > > HTH, > -Alex > >