Robert,
I modified code to add it, but graphical mode is still default.:
private function showStateGraphicalSearch(event:MouseEvent):void
{
WidgetEffects.flipWidget(this, viewStack, "selectedIndex", 0, 400);
}
private function showStateTextSearch(event:MouseEvent):void
{
WidgetEffects.flipWidget(this, viewStack, "selectedIndex", 1, 400);
}
<mx:ViewStack id="viewStack" width="100%" height="100%" selectedIndex="1" creationPolicy="all" paddingTop="4">