I have some fairly large modules, for example one which has a swf file that is 120KB on disk a little over 2,000 lines of mxml & as code combined). When run in the IDE it reports "2,674,599 bytes after decompression." While I am not particularly concerned about the size per se, it does take between 3 & 5 seconds to display the module and start the "Init" (CreationComplete) code.
Trace output tells the tale; Starting addModuleThu Feb 7 22:43:21 GMT-0500 2019 [SWF] I:\MyProject\src\bin\MyModule.swf - 2,674,599 bytes after decompression Starting ModuleLoadDoneThu Feb 7 22:43:21 GMT-0500 2019 Starting Init Thu Feb 7 22:43:26 GMT-0500 2019 >From the time the Module is loaded until the Init fires is about 5 seconds. >ModuleLoadDone is fired when the ModuleEvent.READY is dispatched. "Starting >Init" is the first line in the function called by "CreationComplete" on the >module. What could be causing the delay? What can I do to improve things? Is it the expansion of the module? Setting up all the objects? Can I display the panel sooner while it is catching up in the background? This is running on an I7 with a fair amount of memory, and it behaves the same in production as the IDE, time wise. Paul R. Stearns Advanced Consulting Enterprises, Inc. 15280 NW 79th Ct. Suite 250 Miami Lakes, Fl 33016 Voice: (305)623-0360 x107 Fax: (305)623-4588