Are there any limitation on how many sub-apps can be loaded into child domain? It seems that we hit the limit of about 32 or so.
Attempt to load more causes browser crash (actually it depends on browser it might hang or crash or report that Shockwave Flash crashes,
but outcome same - Web client becomes unusable). Do we have to do something special to workaround such restriction?
We built app in Flex 3.0.2 and load sub-application using SWFLoader as follows:
private static function loadSwf(perspectiveView:PerspectiveView):void
var swfLoader:SWFLoader = new SWFLoader();
swfLoader.showBusyCursor = true;
swfLoader.trustContent = true;
swfLoader.scaleContent = true;
swfLoader.percentHeight = 100;
swfLoader.percentWidth = 100;
startLoad = getTimer();
swfLoader.source = perspectiveView.viewInstanceVO.viewDefinitionVO.asset.serverUri;
private static function loadCompleteHandler(event:SWFLoadCompleteEvent):void
Where PerspectiveView is the subclass of TitleWindow and
perspectiveView.viewInstanceVO.viewDefinitionVO.asset.serverUri points at sub-app SWF URI
There is no restriction other than available memory.
Thank you very much Alex!
Then it means that we run out of memory in Flash Player. Is there any way to allocate more memory for Flash Player
(we are using FP 10.1) to prevent out-of-memory browser crash?
To verify, examine the amount of memory used by the browser. If you are
running out of memory, then you should optimize your application and use the
profiler to make sure you don't have memory leaks.