The FalconJX::MXMLFlexJSEmitter implementation keeps track of which
types ("instances") are actually used in the MXML and writes the
"goog.requires" from that list.The FalconJX::JSGoogEmitter (the parent class of JSFlexJSEmitter) uses the "getAllImports" method on the ScopedNode representing the AS class. These two seem to be sufficiently generic to "work". I think you are referring to the handling of the imports in a fx:script tag in MXML, correct? I'm sure we can use one of the methods above to handle those as well. Or do you have a rewrite that handles all three "types" of imports? EdB On Tue, Apr 9, 2013 at 12:25 PM, Alex Harui <[email protected]> wrote: > > > > On 4/9/13 9:52 AM, "Erik de Bruin" <[email protected]> wrote: > >> Ah, hard for me to review ;-) >> >> Do you plan to commit it, or do you want me to look at the current >> implementation and try to fix that? >> > If it builds the test app and my customer's app then I will check it in. It > sounds like you agree that using imports is insufficient. > > -- > Alex Harui > Flex SDK Team > Adobe Systems, Inc. > http://blogs.adobe.com/aharui > -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl
