In the flex coding, the command
viewstack.selectedChild = printScreen.
has been given,and its always getting executed when the particular screen/function is called.
But the displaying of the screen happens only sometimes.
In all conditions the Viewstack is getting activated and is being displayed.
But the panel in the Viewstack is not getting displayed always.
Cant understand why its not happening.
I have checked it in Debug mode also.
Always the code is getting execute successfully.
But in the Viewstack the panel/screen is not getting diaplayed.
I need a help in this.
Code:-
public function openPrinter():void{
viewstack.visible=true;
mainPanel.enabled=false;
viewstack.selectedChild=printissue;
}
<mx:ViewStack id="viewstack" creationPolicy="auto" width="100%" height="100%" visible="false" hideEffect="{fadeOut}" selectedIndex="{-1}" resizeToContent="true" resizeEffect="true" resize="true">
<
pr:PrintIssue id="printissue" showEffect="{irisIn}" height="100%" width="100%" user="{user}" LLCookie="{LLCookie}" verticalCenter="middle" cancelPrintIssue="cancelPrintIssue()"/>
</mx:ViewStack>