I would try to find out what happened to the other 9? Are they showing progress bars? Is the app stuck? Is CPU usage running high?
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nick Durnell Sent: Tuesday, December 18, 2007 6:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with RSL and SWFLoaders Hi all, I have built a large Flex application which consists of a main application window and a number of 'widgets' that are displayed in various areas of the screen. Each widget is itself a Flex application in its own right. When the main application starts up it checks which widgets should be loaded and creates SWFLoaders for each one. As the widgets share a lot of code I have recently created an RSL, core.swc, which holds all the common stuff. Unfortunately a lot of the widget applications now fail to load/start correctly. Here is the typical debug output when running the RSL-based application (with 11 widgets): [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\Main.swf - 254,721 bytes after decompression # Loading WorldClocks1 (WorldClocks.swf) # Loading ComboGrid1 (GroupTreeMarketGridCombo.swf) # Loading PositionGrid1 (PositionGrid.swf) # Loading PositionGrid2 (PositionGrid.swf) # Loading TradeHistoryGrid1 (TradeHistoryGrid.swf) # Loading OrderBook1 (OrderBook.swf) # Loading AccountTransactions1 (AccountTransactions.swf) # Loading CommsControl1 (CommsControlContainer.swf) # Loading TradeTicketContainer1 (TradeTicketContainer.swf) # Loading AccountSummary1 (AccountSummary.swf) # Loading SignalQualityDisplay1 (SignalQualityDisplay.swf) [SWF] C:\Dev\Flex\childapps\bin\WorldClocks.swf - 274,452 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\GroupTreeMarketGridCombo.swf - 330,684 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\PositionGrid.swf - 314,513 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\PositionGrid.swf - 314,513 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\TradeHistoryGrid.swf - 281,184 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\OrderBook.swf - 313,875 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\AccountTransactions.swf - 287,520 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\CommsControlContainer.swf - 279,246 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\TradeTicketContainer.swf - 312,721 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\AccountSummary.swf - 276,915 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\SignalQualityDisplay.swf - 275,342 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after decompression [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf [Unload SWF] C:\Dev\Flex\childapps\bin\core.swf # applicationComplete in PositionGrid1 # applicationComplete in AccountSummary1 11 out of 11 widget applications are loaded and decompressed but applicationComplete only fires in 2 of them! There is no sign of life from the other 9 widgets. I am guessing that there is an issue somewhere when using multiple SWFLoaders at the same time with an RSL. To clarify, everything works fine if I do not use the RSL or if I change the main application to load one widget, wait for applicationComplete, load the next, wait again etc etc - although doing this is *very* slow. Also, what is going on with the loading, decompressing and unloading of the RSL (core.swf) for each widget? I am wondering if this is anything to do with the problem. Thoughts, anyone? Regards, Nick.