flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
205 stars 88 forks source link

browser terminated unexpectedly #209

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by wming1...@gmail.com on 2009-03-27T04:31:01

What steps will reproduce the problem?

  1. Create a series of tabs in a supertabnavigator
  2. switch tab and reload module from different modules between tabs
  3. when switching tabs frequently suddenly prompt out error Internet Explorer encountered problem and indicated FIDbg10a.ocx, then browser crash and terminate closed immediately.

What is the expected output? What do you see instead? It should not through the error.

What version of the product are you using? On what operating system? Flex 3.0, Windows, IE 6

Please provide any additional information below.

private function addTab (lbl:String,cid:String,navigator:SuperTabNavigator,contentUrl:String):void {
if(lbl=="") lbl = "(Untitled)";

        var curNum:Number = navigator.numChildren+1;
        var content:VBox = new VBox();
        content.setStyle("closable", true); 
        content.label = lbl;
        content.id = cid;
        content.percentWidth = 100;
        content.percentHeight = 100;

        var frameContent:ModuleLoader = new ModuleLoader();
        frameContent.percentWidth = 100;
        frameContent.percentHeight = 100;
        frameContent.url = contentUrl;

        content.addChild(frameContent);
        navigator.addChild(content);
    }

public function switchModule(labelName:String, moduleName:String):void
{ addNew = true; tabExist = 0;

        for(var i:int=0; i<contentTab.numChildren; i++)
        {
            if(VBox(contentTab.getChildAt(i)).label == 

labelName) {
addNew = false; tabExist = i; } }

        if(addNew == true)
        {
            addTab(labelName, moduleName, 

contentTab,moduleName+fileExtension); contentTab.selectedIndex = contentTab.numChildren - 1; } else { ModuleLoader(VBox(contentTab.getChildAt (tabExist)).getChildAt(0)).unloadModule(); VBox(contentTab.getChildAt (tabExist)).label = labelName; VBox(contentTab.getChildAt(tabExist)).id = moduleName; ModuleLoader(VBox(contentTab.getChildAt (tabExist)).getChildAt(0)).url = moduleName+fileExtension; ModuleLoader(VBox(contentTab.getChildAt (tabExist)).getChildAt(0)).loadModule(); contentTab.selectedIndex = tabExist; } }

//switch module by calling this.parentDocument.switchModule('','');

nicoulaj commented 13 years ago

Updated by wming1...@gmail.com on 2009-03-27T04:33:10

addTab("","",contentTab,".swf"); //add Tab