Open GoogleCodeExporter opened 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
Original comment by dmcc...@gmail.com
on 8 Jan 2009 at 5:57
Original issue reported on code.google.com by
ashoks...@gmail.com
on 9 Sep 2008 at 10:34