wiln / flexlib

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

SuperTabNavigator crashes with Error #1009: Cannot access a property or method of a null object reference. #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. The supertabnavigator inside the flexlib component ships with an 
example. I used this example not from an application but inside a 
component.this caused it to crash in the file PopUpButton.as line number 
69.

2.

3.

What is the expected output? What do you see instead?
I would like to view the complete supertabnavigator example running, when 
coded inside a canvas component, rather causing it to crash.

What version of the product are you using? On what operating system?
flexlib-.2.4, flexbuilder 3.0 and Windows XP Professional OS.

Please provide any additional information below.

The value of the variables just after the crash. You will find that the 
value of popup is Null, and this causes a crash in the below line of code.
    override protected function commitProperties():void
    {
        super.commitProperties();

        if (popUpChanged)
        {
            if (_popUp is IFocusManagerComponent)
                IFocusManagerComponent(_popUp).focusEnabled = false;

            _popUp.cacheAsBitmap = true; >> crashes here as popUp is null
==========================================================================

 This works perfectly well when run in an application, but when i use it as 
a component it crashes with the error  #1009: Cannot access a property or 
method of a null object reference.

this    mx.controls.PopUpButton (@7cf70a1)  
    [inherited] 
        $height 22 [0x16]   
        $parent mx.core.FlexSprite (@7f79661)   
            [inherited] 
                accessibilityImplementation null    
                accessibilityProperties null    
                alpha   1   
                blendMode   "normal"    
                buttonMode  false   
                cacheAsBitmap   false   
                contextMenu null    
                doubleClickEnabled  false   
                dropTarget  null    
                filters Array (@7f13431)    
                focusRect   null    
                graphics    flash.display.Graphics 
(@78f6281)  
                height  42 [0x2a]   
                hitArea null    
                loaderInfo  null    
                mask    null    
                mouseChildren   true    
                mouseEnabled    true    
                mouseX  1004 [0x3ec]    
                mouseY  489 [0x1e9] 
                name    "contentPane"   
                numChildren 2   
                opaqueBackground    null    
                parent  mx.containers.Box (@7ca9479)    
                root    null    
                rotation    0   
                scale9Grid  null    
                scaleX  1   
                scaleY  1   
                scrollRect  null    
                soundTransform  flash.media.SoundTransform 
(@7d0dd81)  
                stage   null    
                tabChildren true    
                tabEnabled  false   
                tabIndex    -1 [0xffffffff] 
                textSnapshot    flash.text.TextSnapshot 
(@7f1e421)  
                transform   flash.geom.Transform 
(@7730a19)  
                useHandCursor   true    
                visible true    
                width   40 [0x28]   
                x   0   
                y   0   
        $visible    true    
        $width  18 [0x12]   
        $x  0   
        $y  0   
        accessibilityImplementation null    
        accessibilityProperties null    
        activeEffects   Array (@7cdb661)    
        _affectedProperties Object (@7cea3d1)   
        alpha   1   
        automaticRadioButtonGroups  null    
        automationDelegate  null    
        automationName  ""  
        automationTabularData   null    
        automationValue Array (@7f13271)    
        autoRepeat  false   
        baselinePosition    15 [0xf]    
        blendMode   "normal"    
        buttonMode  false   
        buttonOffset    0   
        cacheAsBitmap   false   
        cacheHeuristic  <setter>    
        cachePolicy "auto"  
        centerContent   true    
        checkedDefaultIcon  false   
        checkedDefaultSkin  false   
        className   "PopUpButton"   
        contentMouseX   1004 [0x3ec]    
        contentMouseY   489 [0x1e9] 
        contextMenu null    
        currentIcon null    
        currentSkin flexlib.skins.TabPopUpButtonSkin (@7eeed71) 
        currentState    null    
        cursorManager   mx.managers.CursorManagerImpl (@76ed2e1)    
        data    null    
        defaultIconUsesStates   false   
        defaultSkinUsesStates   false   
        descriptor  null    
        _descriptor null    
        disabledIconName    "disabledIcon"  
        disabledSkinName    "disabledSkin"  
        document    
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
        _document   
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
        documentDescriptor  null    
        _documentDescriptor null    
        doubleClickEnabled  false   
        downIconName    "downIcon"  
        downSkinName    "downSkin"  
        dropTarget  null    
        _effectsStarted Array (@7cdb661)    
        emphasized  false   
        _emphasized false   
        enabled true    
        errorString ""  
        _errorString    ""  
        explicitHeight  NaN 
        explicitMaxHeight   NaN 
        _explicitMaxHeight  NaN 
        explicitMaxWidth    NaN 
        _explicitMaxWidth   NaN 
        explicitMinHeight   NaN 
        _explicitMinHeight  NaN 
        explicitMinWidth    NaN 
        _explicitMinWidth   NaN 
        explicitWidth   18 [0x12]   
        extraSpacing    20 [0x14]   
        filters Array (@7f13bd9)    
        flexContextMenu null    
        focusEnabled    true    
        focusManager    null    
        focusPane   null    
        focusRect   false   
        fontContext _main_mx_managers_SystemManager (@36800a1)  
        graphics    flash.display.Graphics (@7f1e4c1)   
        height  22 [0x16]   
        _height 22 [0x16]   
        hitArea null    
        iconName    "icon"  
        id  null    
        includeInLayout true    
        inheritingStyles    Object (@7cea6f1)   
        initialized true    
        instanceIndex   -1 [0xffffffff] 
        instanceIndices null    
        invalidateDisplayListFlag   false   
        invalidatePropertiesFlag    true    
        invalidateSizeFlag  false   
        isDocument  false   
        isEffectStarted false   
        isPopUp false   
        label   ""  
        labelPlacement  "right" 
        _labelPlacement "right" 
        listData    null    
        loaderInfo  null    
        mask    null    
        maxHeight   10000 [0x2710]  
        maxWidth    10000 [0x2710]  
        measuredHeight  22 [0x16]   
        measuredMinHeight   22 [0x16]   
        measuredMinWidth    40 [0x28]   
        measuredWidth   58 [0x3a]   
        minHeight   22 [0x16]   
        minWidth    40 [0x28]   
        moduleFactory   _main_mx_managers_SystemManager (@36800a1)  
        mouseChildren   false   
        mouseEnabled    true    
        mouseFocusEnabled   true    
        mouseX  1004 [0x3ec]    
        mouseY  489 [0x1e9] 
        name    "PopUpButton446"    
        nestLevel   8   
        nonInheritingStyles Object (@7cea769)   
        numAutomationChildren   0   
        numChildren 2   
        opaqueBackground    null    
        origBorderColor NaN 
        overIconName    "overIcon"  
        overlay null    
        overlayColor    0   
        overlayReferenceCount   0   
        overSkinName    "overSkin"  
        owner   mx.containers.Box (@7ca9479)    
            [inherited] 
                $height 42 [0x2a]   
                $numChildren    1   
                $parent 
flexlib.containers.SuperTabNavigator (@7400ae1) 
                    [inherited] 
                    allowTabSqueezing   true    
                    closePolicy "close_rollover"    
                    dragEnabled true    
                    dropEnabled true    
                    editableTabLabels   false   
                    minTabWidth 60 [0x3c]   
                    popUpButtonPolicy   
"POPUPPOLICY_OFF"   
                    scrollSpeed 25 [0x19]   
                    startScrollingEvent "mouseDown" 
                    stopScrollingEvent  "mouseUp"   
                $visible    true    
                $width  40 [0x28]   
                $x  0   
                $y  0   
                accessibilityImplementation null    
                accessibilityProperties null    
                activeEffects   Array (@7c9a699)    
                _affectedProperties Object (@7c862b9)   
                alpha   1   
                autoLayout  true    
                automaticRadioButtonGroups  null    
                automationDelegate  null    
                automationName  ""  
                automationTabularData   null    
                automationValue Array (@7ef7c49)    
                baselinePosition    14 [0xe]    
                blendMode   "normal"    
                blocker null    
                border  null    
                borderMetrics   mx.core.EdgeMetrics 
(@75e50b1)  
                buttonMode  false   
                cacheAsBitmap   false   
                cacheHeuristic  <setter>    
                cachePolicy "auto"  
                childDescriptors    null    
                childRepeaters  null    
                className   "Box"   
                clipContent true    
                contentMouseX   1004 [0x3ec]    
                contentMouseY   489 [0x1e9] 
                contentPane mx.core.FlexSprite 
(@7f79661)  
                contextMenu null    
                createdComponents   Array (@7c9a431)    
                creatingContentPane false   
                creationIndex   -1 [0xffffffff] 
                creationPolicy  null    
                currentState    null    
                cursorManager   
mx.managers.CursorManagerImpl (@76ed2e1)    
                data    null    
                defaultButton   null    
                descriptor  null    
                _descriptor null    
                document    
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
                _document   
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
                documentDescriptor  null    
                _documentDescriptor null    
                doingLayout false   
                doubleClickEnabled  false   
                dropTarget  null    
                _effectsStarted Array (@7c9a699)    
                enabled true    
                errorString ""  
                _errorString    ""  
                explicitHeight  NaN 
                explicitMaxHeight   NaN 
                _explicitMaxHeight  NaN 
                explicitMaxWidth    NaN 
                _explicitMaxWidth   NaN 
                explicitMinHeight   NaN 
                _explicitMinHeight  NaN 
                explicitMinWidth    NaN 
                _explicitMinWidth   NaN 
                explicitWidth   NaN 
                filters Array (@7ef72a9)    
                firstChildIndex 1   
                flexContextMenu null    
                focusEnabled    true    
                focusManager    null    
                focusPane   null    
                focusRect   false   
                forceClipping   <setter>    
                graphics    flash.display.Graphics 
(@7f374c1)  
                height  22 [0x16]   
                _height 22 [0x16]   
                hitArea null    
                horizontalLineScrollSize    5   
                horizontalPageScrollSize    0   
                horizontalScrollBar null    
                horizontalScrollPolicy  "off"   
                _horizontalScrollPolicy "off"   
                horizontalScrollPosition    0   
                icon    null    
                id  null    
                includeInLayout true    
                inheritingStyles    Object (@7c86219)   
                initialized true    
                instanceIndex   -1 [0xffffffff] 
                instanceIndices null    
                invalidateDisplayListFlag   false   
                invalidatePropertiesFlag    false   
                invalidateSizeFlag  false   
                isDocument  false   
                isEffectStarted false   
                isPopUp false   
                label   ""  
                loaderInfo  null    
                mask    null    
                maxHeight   10000 [0x2710]  
                maxHorizontalScrollPosition 0   
                maxVerticalScrollPosition   0   
                maxWidth    10000 [0x2710]  
                measuredHeight  22 [0x16]   
                measuredMinHeight   22 [0x16]   
                measuredMinWidth    18 [0x12]   
                measuredWidth   18 [0x12]   
                minHeight   22 [0x16]   
                minWidth    18 [0x12]   
                moduleFactory   
_main_mx_managers_SystemManager (@36800a1)  
                mouseChildren   true    
                mouseEnabled    true    
                mouseFocusEnabled   true    
                mouseX  1004 [0x3ec]    
                mouseY  489 [0x1e9] 
                name    "Box431"    
                nestLevel   7   
                nonInheritingStyles Object (@7c861c9)   
                numAutomationChildren   0   
                numChildren 2   
                _numChildren    0   
                numChildrenCreated  0   
                numRepeaters    0   
                opaqueBackground    null    
                origBorderColor NaN 
                overlay null    
                overlayColor    0   
                overlayReferenceCount   0   
                owner   
flexlib.containers.SuperTabNavigator (@7400ae1) 
                parent  
flexlib.containers.SuperTabNavigator (@7400ae1) 
                _parent 
flexlib.containers.SuperTabNavigator (@7400ae1) 
                parentApplication   main (@75240a1) 
                parentDocument  
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
                percentHeight   NaN 
                percentWidth    NaN 
                processedDescriptors    true    
                rawChildren 
mx.core.ContainerRawChildrenList (@7b9bd21) 
                repeater    null    
                repeaterIndex   -1 [0xffffffff] 
                repeaterIndices Array (@7edc271)    
                repeaters   Array (@7edc1c9)    
                resourceManager 
mx.resources.ResourceManagerImpl (@3604f61) 
                root    null    
                rotation    0   
                saveBorderColor true    
                scale9Grid  null    
                scaleX  1   
                scaleY  1   
                screen  flash.geom.Rectangle (@7ef74d9) 
                scrollRect  null    
                showInAutomationHierarchy   false   
                soundTransform  flash.media.SoundTransform 
(@7f24281)  
                stage   null    
                states  Array (@7c9a779)    
                styleDeclaration    
mx.styles.CSSStyleDeclaration (@7c979a1)    
                styleName   null    
                systemManager   
_main_mx_managers_SystemManager (@36800a1)  
                tabChildren true    
                tabEnabled  false   
                tabIndex    -1 [0xffffffff] 
                textSnapshot    flash.text.TextSnapshot 
(@7ef4b21)  
                toolTip null    
                _toolTip    null    
                transform   flash.geom.Transform 
(@77307d9)  
                transitions Array (@7c9a661)    
                tweeningProperties  null    
                uid "ViewSheets366.VBox368.nav.Box431"  
                unscaledHeight  22 [0x16]   
                unscaledWidth   18 [0x12]   
                updateCompletePendingFlag   false   
                useHandCursor   true    
                usePadding  true    
                validationSubField  null    
                verticalLineScrollSize  5   
                verticalPageScrollSize  0   
                verticalScrollBar   null    
                verticalScrollPolicy    "auto"  
                _verticalScrollPolicy   "auto"  
                verticalScrollPosition  0   
                viewMetrics mx.core.EdgeMetrics 
(@75e50b1)  
                viewMetricsAndPadding   mx.core.EdgeMetrics 
(@7ef7239)  
                visible true    
                width   18 [0x12]   
                _width  18 [0x12]   
                x   0   
                y   0   
            direction   "horizontal"    
            layoutObject    
mx.containers.utilityClasses.BoxLayout (@7c862e1)   
        parent  mx.containers.Box (@7ca9479)    
            [inherited] 
            direction   "horizontal"    
            layoutObject    
mx.containers.utilityClasses.BoxLayout (@7c862e1)   
        _parent mx.containers.Box (@7ca9479)    
            [inherited] 
                $height 42 [0x2a]   
                $numChildren    1   
                $parent 
flexlib.containers.SuperTabNavigator (@7400ae1) 
                $visible    true    
                $width  40 [0x28]   
                $x  0   
                $y  0   
                accessibilityImplementation null    
                accessibilityProperties null    
                activeEffects   Array (@7c9a699)    
                _affectedProperties Object (@7c862b9)   
                alpha   1   
                autoLayout  true    
                automaticRadioButtonGroups  null    
                automationDelegate  null    
                automationName  ""  
                automationTabularData   null    
                automationValue Array (@7ef7c49)    
                baselinePosition    14 [0xe]    
                blendMode   "normal"    
                blocker null    
                border  null    
                borderMetrics   mx.core.EdgeMetrics 
(@75e50b1)  
                buttonMode  false   
                cacheAsBitmap   false   
                cacheHeuristic  <setter>    
                cachePolicy "auto"  
                childDescriptors    null    
                childRepeaters  null    
                className   "Box"   
                clipContent true    
                contentMouseX   1004 [0x3ec]    
                contentMouseY   489 [0x1e9] 
                contentPane mx.core.FlexSprite 
(@7f79661)  
                contextMenu null    
                createdComponents   Array (@7c9a431)    
                creatingContentPane false   
                creationIndex   -1 [0xffffffff] 
                creationPolicy  null    
                currentState    null    
                cursorManager   
mx.managers.CursorManagerImpl (@76ed2e1)    
                data    null    
                defaultButton   null    
                descriptor  null    
                _descriptor null    
                document    
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
                _document   
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
                documentDescriptor  null    
                _documentDescriptor null    
                doingLayout false   
                doubleClickEnabled  false   
                dropTarget  null    
                _effectsStarted Array (@7c9a699)    
                enabled true    
                errorString ""  
                _errorString    ""  
                explicitHeight  NaN 
                explicitMaxHeight   NaN 
                _explicitMaxHeight  NaN 
                explicitMaxWidth    NaN 
                _explicitMaxWidth   NaN 
                explicitMinHeight   NaN 
                _explicitMinHeight  NaN 
                explicitMinWidth    NaN 
                _explicitMinWidth   NaN 
                explicitWidth   NaN 
                filters Array (@7ef72a9)    
                firstChildIndex 1   
                flexContextMenu null    
                focusEnabled    true    
                focusManager    null    
                focusPane   null    
                focusRect   false   
                forceClipping   <setter>    
                graphics    flash.display.Graphics 
(@7f374c1)  
                height  22 [0x16]   
                _height 22 [0x16]   
                hitArea null    
                horizontalLineScrollSize    5   
                horizontalPageScrollSize    0   
                horizontalScrollBar null    
                horizontalScrollPolicy  "off"   
                _horizontalScrollPolicy "off"   
                horizontalScrollPosition    0   
                icon    null    
                id  null    
                includeInLayout true    
                inheritingStyles    Object (@7c86219)   
                initialized true    
                instanceIndex   -1 [0xffffffff] 
                instanceIndices null    
                invalidateDisplayListFlag   false   
                invalidatePropertiesFlag    false   
                invalidateSizeFlag  false   
                isDocument  false   
                isEffectStarted false   
                isPopUp false   
                label   ""  
                loaderInfo  null    
                mask    null    
                maxHeight   10000 [0x2710]  
                maxHorizontalScrollPosition 0   
                maxVerticalScrollPosition   0   
                maxWidth    10000 [0x2710]  
                measuredHeight  22 [0x16]   
                measuredMinHeight   22 [0x16]   
                measuredMinWidth    18 [0x12]   
                measuredWidth   18 [0x12]   
                minHeight   22 [0x16]   
                minWidth    18 [0x12]   
                moduleFactory   
_main_mx_managers_SystemManager (@36800a1)  
                mouseChildren   true    
                mouseEnabled    true    
                mouseFocusEnabled   true    
                mouseX  1004 [0x3ec]    
                mouseY  489 [0x1e9] 
                name    "Box431"    
                nestLevel   7   
                nonInheritingStyles Object (@7c861c9)   
                numAutomationChildren   0   
                numChildren 2   
                _numChildren    0   
                numChildrenCreated  0   
                numRepeaters    0   
                opaqueBackground    null    
                origBorderColor NaN 
                overlay null    
                overlayColor    0   
                overlayReferenceCount   0   
                owner   
flexlib.containers.SuperTabNavigator (@7400ae1) 
                parent  
flexlib.containers.SuperTabNavigator (@7400ae1) 
                _parent 
flexlib.containers.SuperTabNavigator (@7400ae1) 
                parentApplication   main (@75240a1) 
                parentDocument  
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
                percentHeight   NaN 
                percentWidth    NaN 
                processedDescriptors    true    
                rawChildren 
mx.core.ContainerRawChildrenList (@7b9bd21) 
                repeater    null    
                repeaterIndex   -1 [0xffffffff] 
                repeaterIndices Array (@7edc271)    
                repeaters   Array (@7edc1c9)    
                resourceManager 
mx.resources.ResourceManagerImpl (@3604f61) 
                root    null    
                rotation    0   
                saveBorderColor true    
                scale9Grid  null    
                scaleX  1   
                scaleY  1   
                screen  flash.geom.Rectangle (@7ef74d9) 
                scrollRect  null    
                showInAutomationHierarchy   false   
                soundTransform  flash.media.SoundTransform 
(@7f24281)  
                stage   null    
                states  Array (@7c9a779)    
                styleDeclaration    
mx.styles.CSSStyleDeclaration (@7c979a1)    
                styleName   null    
                systemManager   
_main_mx_managers_SystemManager (@36800a1)  
                tabChildren true    
                tabEnabled  false   
                tabIndex    -1 [0xffffffff] 
                textSnapshot    flash.text.TextSnapshot 
(@7ef4b21)  
                toolTip null    
                _toolTip    null    
                transform   flash.geom.Transform 
(@77307d9)  
                transitions Array (@7c9a661)    
                tweeningProperties  null    
                uid "ViewSheets366.VBox368.nav.Box431"  
                unscaledHeight  22 [0x16]   
                unscaledWidth   18 [0x12]   
                updateCompletePendingFlag   false   
                useHandCursor   true    
                usePadding  true    
                validationSubField  null    
                verticalLineScrollSize  5   
                verticalPageScrollSize  0   
                verticalScrollBar   null    
                verticalScrollPolicy    "auto"  
                _verticalScrollPolicy   "auto"  
                verticalScrollPosition  0   
                viewMetrics mx.core.EdgeMetrics 
(@75e50b1)  
                viewMetricsAndPadding   mx.core.EdgeMetrics 
(@7ef7239)  
                visible true    
                width   18 [0x12]   
                _width  18 [0x12]   
                x   0   
                y   0   
            direction   "horizontal"    
            layoutObject    
mx.containers.utilityClasses.BoxLayout (@7c862e1)   
        parentApplication   main (@75240a1) 
        parentDocument  
edu.csula.cairngorm_emulator.view.training.ViewSheets (@ac72479)    
        percentHeight   NaN 
        percentWidth    NaN 
        phase   "up"    
        processedDescriptors    true    
        repeater    null    
        repeaterIndex   -1 [0xffffffff] 
        repeaterIndices Array (@7edcd61)    
        repeaters   Array (@7edc159)    
        resourceManager mx.resources.ResourceManagerImpl (@3604f61) 
        root    null    
        rotation    0   
        saveBorderColor true    
        scale9Grid  null    
        scaleX  1   
        scaleY  1   
        screen  flash.geom.Rectangle (@7ef74d9) 
        scrollRect  null    
        selected    false   
        _selected   false   
        selectedDisabledIconName    "selectedDisabledIcon"  
        selectedDisabledSkinName    "selectedDisabledSkin"  
        selectedDownIconName    "selectedDownIcon"  
        selectedDownSkinName    "selectedDownSkin"  
        selectedField   null    
        selectedOverIconName    "selectedOverIcon"  
        selectedOverSkinName    "selectedOverSkin"  
        selectedUpIconName  "selectedUpIcon"    
        selectedUpSkinName  "selectedUpSkin"    
        showInAutomationHierarchy   true    
        skinName    "skin"  
        soundTransform  flash.media.SoundTransform (@7f24741)   
        stage   null    
        states  Array (@7cdb5f1)    
        stickyHighlighting  false   
        styleDeclaration    null    
        styleName   "popupButton"   
        systemManager   _main_mx_managers_SystemManager (@36800a1)  
        tabChildren false   
        tabEnabled  true    
        tabIndex    -1 [0xffffffff] 
        textField   mx.core.UITextField (@7c93c81)  
        textSnapshot    flash.text.TextSnapshot (@8206a21)  
        _toggle false   
        toggleChanged   false   
        toolTip null    
        _toolTip    null    
        transform   flash.geom.Transform (@7730f29) 
        transitions Array (@7cdb629)    
        tweeningProperties  null    
        uid "ViewSheets366.VBox368.nav.Box431.PopUpButton446"   
        unscaledHeight  22 [0x16]   
        unscaledWidth   18 [0x12]   
        updateCompletePendingFlag   false   
        upIconName  "upIcon"    
        upSkinName  "upSkin"    
        useHandCursor   true    
        validationSubField  null    
        visible true    
        width   18 [0x12]   
        _width  18 [0x12]   
        x   0   
        y   0   
    arrowButtonsHeight  22 [0x16]   
    arrowButtonsWidth   18 [0x12]   
    closeOnActivity true    
    _closeOnActivity    true    
    inTween false   
    isShowingPopUp  false   
    openAlways  false   
    _openAlways false   
    popUp   null    
    _popUp  null    
    popUpChanged    true    
    popUpIconChanged    false   
    showingPopUp    false   
    toggle  false   
    tween   null    

Original issue reported on code.google.com by ashoks...@gmail.com on 9 Sep 2008 at 10:34

GoogleCodeExporter commented 8 years ago
I am sorry, it does not crash when used as a component but when i use it as a 
state 
inside of the application. the standard tabnavigator however works perfectly 
fine, 
when i use the component inside a state.

So the steps to recreate the problem will be
1. create a component which uses the supertabnavigator, something as shown 
below.
=====================================================================
filename:Sheets.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" 
xmlns:ns1="flexlib.containers.*">
    <ns1:SuperTabNavigator x="0" y="0" width="100%" height="300" 
allowTabSqueezing="true" >
        <mx:Canvas label="Test" width="100%" height="100%">
        </mx:Canvas>
        <mx:Canvas label="Test2" width="100%" height="100%">
        </mx:Canvas>
        <mx:Canvas label="Test3" width="100%" height="100%">
        </mx:Canvas>
    </ns1:SuperTabNavigator>
</mx:Canvas>
============================================================================

2. Inside your main application, specify two states.one state you can define 
anything 
you want to and in the second state, remove the first component and add the 
second 
component which uses the spertabnvaigator as shown above. when we try to change 
the 
state to view the supertabnavigator, the application crashes with the backtrace 
as 
shown in the previous comment. e.g code
====================================================================
<mx:states>
        <mx:State name="{ModelLocator.SIGNED_OUT}">
            <mx:AddChild>
                <ns1:homepage id="signInPanel" x="0" y="37" 
borderStyle="solid" borderThickness="2" borderColor="#FFFFFF" cornerRadius="4">
                </ns1:homepage>
            </mx:AddChild>
            <mx:SetStyle name="borderColor" value="#020E16"/>
            <mx:SetStyle name="borderStyle" value="solid"/>
            <mx:SetStyle name="cornerRadius" value="13"/>
            <mx:SetStyle target="{hbox1}" name="cornerRadius" value="6"/>
            <mx:SetProperty name="horizontalScrollPolicy" value="off"/>
            <mx:SetProperty target="{hbox1}" name="x" value="-1"/>
            <mx:SetStyle target="{hbox1}" name="borderStyle" 
value="solid"/>
            <mx:SetStyle target="{hbox1}" name="backgroundColor" 
value="#100505"/>
            <mx:SetStyle target="{hbox1}" name="backgroundAlpha" 
value="1.0"/>
            <mx:SetProperty target="{hbox1}" name="y" value="-1"/>
            <mx:SetProperty name="alpha" value="1.0"/>
            <mx:SetStyle target="{hbox1}" name="borderColor" 
value="#FFFFFF"/>

        </mx:State>

        <!-- this state will let the user choose which sheets she wants to 
work on -->
        <mx:State name="{ModelLocator.CHOOSESHEET}">
            <mx:RemoveChild id="remsignInPanel" target="{signInPanel}"/>
            <mx:AddChild>
            <training:Sheets id="viewSheets" creationComplete="{wipeIn}" 
y="28" x="91" visible="true" alpha="1.0" 
                    borderStyle="solid" cornerRadius="4" 
borderColor="#FFFFFF" borderThickness="2" height="690">

                </training:Sheets>

            </mx:AddChild>
            <mx:SetProperty name="alpha" value="1.0"/>
            <mx:SetStyle target="{hbox1}" name="borderStyle" 
value="solid"/>
            <mx:SetStyle target="{hbox1}" name="cornerRadius" value="4"/>
            <mx:SetStyle target="{hbox1}" name="borderColor" 
value="#FFFFFF"/>

        </mx:State>

    </mx:states>

=======================================================================

So when transitioning from ModelLocator.SIGNED_OUT to ModelLocator.CHOOSESHEET 
the 
application crashes with ModelLocator.CHOOSESHEET.

Original comment by ashoks...@gmail.com on 10 Sep 2008 at 6:11

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 8 Jan 2009 at 5:57