wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

browser terminated unexpectedly #209

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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('','');

Original issue reported on code.google.com by wming1...@gmail.com on 27 Mar 2009 at 4:31

Attachments:

GoogleCodeExporter commented 8 years ago
<flexlib:SuperTabNavigator id="contentTab"
            backgroundColor="#F5DE9A" scrollSpeed="25" 
dropShadowEnabled="true"
            stopScrollingEvent="{MouseEvent.MOUSE_UP}" 
startScrollingEvent="{MouseEvent.MOUSE_DOWN}"
            width="100%" height="100%" horizontalGap="0"
            closePolicy="{SuperTab.CLOSE_ROLLOVER}" 
popUpButtonPolicy="off" dragEnabled="false" dropEnabled="false">
            </flexlib:SuperTabNavigator>

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

Original comment by wming1...@gmail.com on 27 Mar 2009 at 4:33