4 Replies Latest reply on Apr 12, 2010 12:45 PM by dtangram

    LinkBar rollOver Issues

    dtangram

      One of the issues I’m having is that my rollOvers won’t initiate until the LinkButtons on the LinkBar  have been clicked. Does anyone know why? Also, I have my sub-menus displaying when  a LinkButton is clicked. I need to know how to make the selected  LinkButton’s sub-menu disappear when another LinkButton is rolled over and display  its sub-menu. Then on rollOut I need the selected LinkButton’s sub-menu to  reappear. Can someone please help? Thanks in advance. My code is below.

       

      <?xml version="1.0" encoding="utf-8"?>

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#000000" layout="absolute" width="1400">

           

            <mx:Style>

              LinkBar

              {

                  linkButtonStyleName: myCustomLinkButtonStyleName;

                  fontFamily: Verdana;

              }

       

              .myCustomLinkButtonStyleName

              {

                  cornerRadius: 0;

                  fontWeight: normal;           

              }

             

          </mx:Style>

           

            <mx:Script>

                  <![CDATA[

                        import mx.rpc.events.ResultEvent;

                        import mx.controls.*;

                        import mx.events.*;

                        import mx.collections.XMLListCollection;

                        import mx.rpc.events.FaultEvent;

                        import mx.rpc.events.ResultEvent;

                        import flash.filters.GlowFilter;         

                        import mx.managers.PopUpManager;

                    import mx.containers.TitleWindow;

                    import mx.core.IFlexDisplayObject;

                        import mx.skins.*;

                        import flexlib.skins.*;

                    import mx.managers.SystemManager;

                       

                        private function accOver(event:MouseEvent):void

                        {          

                              if(event.target.label == "Accounts")

                              {

                                    accounts.visible = true;

                                    invoicing.visible = false;

                                    moveMoney.visible = false;

                                    customers.visible = false;

                                    reports.visible = false;

                                    maintenance.visible = false;

                                    nta.visible = false;

                                    mail.visible = false;

                              }

                        }

                         

                        private function accOut(event:MouseEvent):void

                        {

                              if(event.target.label == "Accounts")

                              {

                                    accounts.visible = false;

                              }

                        }

                     

                      private function inOver(event:MouseEvent):void

                        {

                              if(event.target.label == "Invoicing")

                              {

                                    accounts.visible = false;

                                    invoicing.visible = true;

                                    moveMoney.visible = false;

                                    customers.visible = false;

                                    reports.visible = false;

                                    maintenance.visible = false;

                                    nta.visible = false;

                                    mail.visible = false;

                              }

                        }

                         

                        private function inOut(event:MouseEvent):void

                        {

                              if(event.target.label == "Invoicing")

                              {

                                    invoicing.visible = false;

                              }

                        }

                         

                        private function moveOver(event:MouseEvent):void

                        {

                              if(event.target.label == "Move Money")

                              {

                                    accounts.visible = false;

                                    invoicing.visible = false;

                                    moveMoney.visible = true;

                                    customers.visible = false;

                                    reports.visible = false;

                                    maintenance.visible = false;

                                    nta.visible = false;

                                    mail.visible = false;

                              }

                        }

                         

                        private function moveOut(event:MouseEvent):void

                        {

                              if(event.target.label == "Move Money")

                              {

                                    moveMoney.visible = false;

                              }

                        }

                         

                        private function customersOver(event:MouseEvent):void

                        {

                              if(event.target.label == "Customers")

                              {

                                    accounts.visible = false;

                                    invoicing.visible = false;

                                    moveMoney.visible = false;

                                    customers.visible = true;

                                    reports.visible = false;

                                    maintenance.visible = false;

                              nta.visible = false;

                              mail.visible = false;

                          }

                        }

                         

                        private function customersOut(event:MouseEvent):void

                        {

                              if(event.target.label == "Customers")

                          {

                              customers.visible = false;

                          }

                        }

                         

                        private function reportsOver(event:MouseEvent):void

                        {

                              if(event.target.label == "Reports")

                          {

                              accounts.visible = false;

                              invoicing.visible = false;

                              moveMoney.visible = false;

                              customers.visible = false;

                              reports.visible = true;

                              maintenance.visible = false;

                              nta.visible = false;

                              mail.visible = false;

                          }

                        }

                         

                        private function reportsOut(event:MouseEvent):void

                        {

                              if(event.target.label == "Reports")

                          {

                              reports.visible = false;

                          }

                        }

                         

                        private function maintenanceOver(event:MouseEvent):void

                        {

                        if(event.target.label == "Maintenance")

                        {

                              accounts.visible = false;

                              invoicing.visible = false;

                              moveMoney.visible = false;

                                    customers.visible = false;

                                    reports.visible = false;

                              maintenance.visible = true;

                              nta.visible = false;

                              mail.visible = false;

                              }

                       }

                         

                        private function maintenanceOut(event:MouseEvent):void

                        {

                              if(event.target.label == "Maintenance")

                              {

                              maintenance.visible = false;

                              }

                        }

                         

                        private function ntaOver(event:MouseEvent):void

                        {

                        if(event.target.label == "NTA")

                        {

                              accounts.visible = false;

                              invoicing.visible = false;

                              moveMoney.visible = false;

                              customers.visible = false;

                              reports.visible = false;

                              maintenance.visible = false;

                              nta.visible = true;

                              mail.visible = false;

                              }

                        }

                         

                      private function ntaOut(event:MouseEvent):void

                      {

                              if(event.target.label == "NTA")

                       {

                              nta.visible = false;

                              }

                        }

                         

                        private function mailOver(event:MouseEvent):void

                       {

                              if(event.target.label == "Mail")

                              {

                              accounts.visible  = false;

                              invoicing.visible = false;

                              moveMoney.visible = false;

                              customers.visible = false;

                              reports.visible = false;

                                    maintenance.visible = false;

                              nta.visible = false;

                              mail.visible = true;

                              }

                        }

                         

                        private function mailOut(event:MouseEvent):void

                        {

                              if(event.target.label == "Mail")

                       {

                              mail.visible = false;

                        }

                        }

                 

                        private function selectionClick(event:Event):void

                       {

                              if(event.target.id == "ab")

                              {

                                    ab.selected = true;

                                    cb.selected = false;

                                    fc.selected = false;

                                    res.selected = false;

                                    wb.selected = false;

                                                                       

                                    ab.setStyle("color", "0x000000");

                                    ab.setStyle("fontWeight", "bold");

                                    ab.setStyle("fontSize", "10");

                                    cb.setStyle("color", "0x000000");

                                    cb.setStyle("fontWeight", "normal");

                                    cb.setStyle("fontSize", "9");

                                    fc.setStyle("color", "0x000000");

                                    fc.setStyle("fontWeight", "normal");

                                    fc.setStyle("fontSize", "9");

                                    res.setStyle("color", "0x000000");

                                    res.setStyle("fontWeight", "normal");

                                    res.setStyle("fontSize", "9");

                                    wb.setStyle("color", "0x000000");

                                    wb.setStyle("fontWeight", "normal");

                                    wb.setStyle("fontSize", "9");

                              }

                                         

                                    else if(event.target.id == "cb")

                                    {

                                          ab.selected = false;

                                          cb.selected = true;

                                          fc.selected = false;

                                          res.selected = false;

                                          wb.selected = false;

                                               

                                          ab.setStyle("color", "0x000000");

                                          ab.setStyle("fontWeight", "normal");

                                          ab.setStyle("fontSize", "9");

                                          cb.setStyle("color", "0x000000");

                                          cb.setStyle("fontWeight", "bold");

                                          cb.setStyle("fontSize", "10");

                                          fc.setStyle("color", "0x000000");

                                          fc.setStyle("fontWeight", "normal");

                                          fc.setStyle("fontSize", "9");

                                          res.setStyle("color", "0x000000");

                                          res.setStyle("fontWeight", "normal");

                                          res.setStyle("fontSize", "9");

                                          wb.setStyle("color", "0x000000");

                                          wb.setStyle("fontWeight", "normal");

                                          wb.setStyle("fontSize", "9");

                                    }

                                         

                                    else if(event.target.id == "fc")

                                    {

                                          ab.selected = false;

                                          cb.selected = false;

                                          fc.selected = true;

                                          res.selected = false;

                                          wb.selected = false;

                                               

                                          ab.setStyle("color", "0x000000");

                                          ab.setStyle("fontWeight", "nomral");

                                          ab.setStyle("fontSize", "9");

                                          cb.setStyle("color", "0x000000");

                                          cb.setStyle("fontWeight", "normal");

                                          cb.setStyle("fontSize", "9");

                                          fc.setStyle("color", "0x000000");

                                          fc.setStyle("fontWeight", "bold");

                                          fc.setStyle("fontSize", "10");

                                          res.setStyle("color", "0x000000");

                                          res.setStyle("fontWeight", "normal");

                                          res.setStyle("fontSize", "9");

                                          wb.setStyle("color", "0x000000");

                                          wb.setStyle("fontWeight", "normal");

                                          wb.setStyle("fontSize", "9");

                                    }

                                         

                                    else if(event.target.id == "res")

                                    {

                                          ab.selected = false;

                                          cb.selected = false;

                                          fc.selected = false;

                                          res.selected = true;

                                          wb.selected = false;

                                         

                                          ab.setStyle("color", "0x000000");

                                          ab.setStyle("fontWeight", "nomral");

                                          ab.setStyle("fontSize", "9");

                                          cb.setStyle("color", "0x000000");

                                          cb.setStyle("fontWeight", "normal");

                                          cb.setStyle("fontSize", "9");

                                          fc.setStyle("color", "0x000000");

                                          fc.setStyle("fontWeight", "normal");

                                          fc.setStyle("fontSize", "9");

                                          res.setStyle("color", "0x000000");

                                          res.setStyle("fontWeight", "bold");

                                          res.setStyle("fontSize", "10");

                                          wb.setStyle("color", "0x000000");

                                          wb.setStyle("fontWeight", "normal");

                                          wb.setStyle("fontSize", "9");

                                    }

                                

                                    else if(event.target.id == "wb")

                                    {

                                          ab.selected = false;

                                          cb.selected = false;

                                          fc.selected = false;

                                          res.selected = false;

                                          wb.selected = true;

                                               

                                          ab.setStyle("color", "0x000000");

                                          ab.setStyle("fontWeight", "nomral");

                                          ab.setStyle("fontSize", "9");

                                          cb.setStyle("color", "0x000000");

                                          cb.setStyle("fontWeight", "normal");

                                          cb.setStyle("fontSize", "9");

                                          fc.setStyle("color", "0x000000");

                                          fc.setStyle("fontWeight", "normal");

                                          fc.setStyle("fontSize", "9");

                                          res.setStyle("color", "0x000000");

                                          res.setStyle("fontWeight", "normal");

                                          res.setStyle("fontSize", "9");

                                          wb.setStyle("color", "0x000000");

                                          wb.setStyle("fontWeight", "bold");

                                          wb.setStyle("fontSize", "10");

                                    }

                           }

                                         

                              private function selectionClick2(event:Event):void

                          {

                                    if(event.target.id == "newin")

                                    {

                                          newin.selected = true;

                                          pend.selected = false;

                                          fcs.selected = false;

                                          inImport.selected = false;

                                               

                                          newin.setStyle("color", "0x000000");

                                          newin.setStyle("fontWeight", "bold");

                                          newin.setStyle("fontSize", "10");

                                          pend.setStyle("color", "0x000000");

                                          pend.setStyle("fontWeight", "normal");

                                          pend.setStyle("fontSize", "9");

                                          fcs.setStyle("color", "0x000000");

                                          fcs.setStyle("fontWeight", "normal");

                                          fcs.setStyle("fontSize", "9");

                                          inImport.setStyle("color", "0x000000");

                                          inImport.setStyle("fontWeight", "normal");

                                          inImport.setStyle("fontSize", "9");

                                    }

                                         

                                    else if(event.target.id == "pend")

                                    {

                                          newin.selected = false;

                                          pend.selected = true;

                                          fcs.selected = false;

                                          inImport.selected = false;

                                               

                                          newin.setStyle("color", "0x000000");

                                          newin.setStyle("fontWeight", "normal");

                                          newin.setStyle("fontSize", "9");

                                          pend.setStyle("color", "0x000000");

                                          pend.setStyle("fontWeight", "bold");

                                          pend.setStyle("fontSize", "10");

                                          fcs.setStyle("color", "0x000000");

                                          fcs.setStyle("fontWeight", "normal");

                                          fcs.setStyle("fontSize", "9");

                                          inImport.setStyle("color", "0x000000");

                                          inImport.setStyle("fontWeight", "normal");

                                          inImport.setStyle("fontSize", "9");

                                    }

                                         

                                    else if(event.target.id == "fcs")

                                    {

                                          newin.selected = false;

                                          pend.selected = false;

                                          fcs.selected = true;

                                          inImport.selected = false;

                                         

                                          newin.setStyle("color", "0x000000");

                                          newin.setStyle("fontWeight", "normal");

                                          newin.setStyle("fontSize", "9");

                                          pend.setStyle("color", "0x000000");

                                          pend.setStyle("fontWeight", "normal");

                                          pend.setStyle("fontSize", "9");

                                          fcs.setStyle("color", "0x000000");

                                          fcs.setStyle("fontWeight", "bold");

                                          fcs.setStyle("fontSize", "10");

                                          inImport.setStyle("color", "0x000000");

                                          inImport.setStyle("fontWeight", "normal");

                                          inImport.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "inImport")

                                    {

                                          newin.selected = false;

                                          pend.selected = false;

                                          fcs.selected = false;

                                          inImport.selected = false;

                                         

                                          newin.setStyle("color", "0x000000");

                                          newin.setStyle("fontWeight", "normal");

                                          newin.setStyle("fontSize", "9");

                                          pend.setStyle("color", "0x000000");

                                          pend.setStyle("fontWeight", "normal");

                                          pend.setStyle("fontSize", "9");

                                          fcs.setStyle("color", "0x000000");

                                          fcs.setStyle("fontWeight", "normal");

                                          fcs.setStyle("fontSize", "9");

                                          inImport.setStyle("color", "0x000000");

                                          inImport.setStyle("fontWeight", "bold");

                                          inImport.setStyle("fontSize", "10");

                                    }                

                              }

                                         

                              private function selectionClick3(event:Event):void

                              {

                                    if(event.target.id == "abTrans")

                                    {

                                          abTrans.selected = true;

                                          nbtbtn.selected = false;

                                          efsbtn.selected = false;

                                          ccardbtn.selected = false;

                                          wireTrans.selected = false;

                                               

                                          abTrans.setStyle("color", "0x000000");

                                          abTrans.setStyle("fontWeight", "bold");

                                          abTrans.setStyle("fontSize", "10");

                                          nbtbtn.setStyle("color", "0x000000");

                                          nbtbtn.setStyle("fontWeight", "normal");

                                          nbtbtn.setStyle("fontSize", "9");

                                          efsbtn.setStyle("color", "0x000000");

                                          efsbtn.setStyle("fontWeight", "normal");

                                          efsbtn.setStyle("fontSize", "9");

                                          ccardbtn.setStyle("color", "0x000000");

                                          ccardbtn.setStyle("fontWeight", "normal");

                                          ccardbtn.setStyle("fontSize", "9");

                                          wireTrans.setStyle("color", "0x000000");

                                          wireTrans.setStyle("fontWeight", "normal");

                                          wireTrans.setStyle("fontSize", "9");

                                    }

                                         

                                    else if(event.target.id == "nbtbtn")

                                    {

                                          abTrans.selected = false;

                                          nbtbtn.selected = true;

                                          efsbtn.selected = false;

                                          ccardbtn.selected = false;

                                          wireTrans.selected = false;

                                         

                                          abTrans.setStyle("color", "0x000000");

                                          abTrans.setStyle("fontWeight", "normal");

                                          abTrans.setStyle("fontSize", "9");

                                          nbtbtn.setStyle("color", "0x000000");

                                          nbtbtn.setStyle("fontWeight", "bold");

                                          nbtbtn.setStyle("fontSize", "10");

                                          efsbtn.setStyle("color", "0x000000");

                                          efsbtn.setStyle("fontWeight", "normal");

                                          efsbtn.setStyle("fontSize", "9");

                                          ccardbtn.setStyle("color", "0x000000");

                                          ccardbtn.setStyle("fontWeight", "normal");

                                          ccardbtn.setStyle("fontSize", "9");

                                          wireTrans.setStyle("color", "0x000000");

                                          wireTrans.setStyle("fontWeight", "normal");

                                          wireTrans.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "efsbtn")

                                    {

                                          abTrans.selected = false;

                                          nbtbtn.selected = false;

                                          efsbtn.selected = true;

                                          ccardbtn.selected = false;

                                          wireTrans.selected = false;

                                         

                                          abTrans.setStyle("color", "0x000000");

                                          abTrans.setStyle("fontWeight", "normal");

                                          abTrans.setStyle("fontSize", "9");

                                          nbtbtn.setStyle("color", "0x000000");

                                          nbtbtn.setStyle("fontWeight", "normal");

                                          nbtbtn.setStyle("fontSize", "9");

                                          efsbtn.setStyle("color", "0x000000");

                                          efsbtn.setStyle("fontWeight", "bold");

                                          efsbtn.setStyle("fontSize", "10");

                                          ccardbtn.setStyle("color", "0x000000");

                                          ccardbtn.setStyle("fontWeight", "normal");

                                          ccardbtn.setStyle("fontSize", "9");

                                          wireTrans.setStyle("color", "0x000000");

                                          wireTrans.setStyle("fontWeight", "normal");

                                          wireTrans.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "ccardbtn")

                                    {

                                          abTrans.selected = false;

                                          nbtbtn.selected = false;

                                          efsbtn.selected = false;

                                          ccardbtn.selected = true;

                                          wireTrans.selected = false;

                                         

                                          abTrans.setStyle("color", "0x000000");

                                          abTrans.setStyle("fontWeight", "normal");

                                          abTrans.setStyle("fontSize", "9");

                                          nbtbtn.setStyle("color", "0x000000");

                                          nbtbtn.setStyle("fontWeight", "normal");

                                          nbtbtn.setStyle("fontSize", "9");

                                          efsbtn.setStyle("color", "0x000000");

                                          efsbtn.setStyle("fontWeight", "normal");

                                          efsbtn.setStyle("fontSize", "9");

                                          ccardbtn.setStyle("color", "0x000000");

                                          ccardbtn.setStyle("fontWeight", "bold");

                                          ccardbtn.setStyle("fontSize", "10");

                                          wireTrans.setStyle("color", "0x000000");

                                          wireTrans.setStyle("fontWeight", "normal");

                                          wireTrans.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "wireTrans")

                                    {

                                          abTrans.selected = false;

                                          nbtbtn.selected = false;

                                          efsbtn.selected = false;

                                          ccardbtn.selected = false;

                                          wireTrans.selected = true;

                                         

                                          abTrans.setStyle("color", "0x000000");

                                          abTrans.setStyle("fontWeight", "normal");

                                          abTrans.setStyle("fontSize", "9");

                                          nbtbtn.setStyle("color", "0x000000");

                                          nbtbtn.setStyle("fontWeight", "normal");

                                          nbtbtn.setStyle("fontSize", "9");

                                          efsbtn.setStyle("color", "0x000000");

                                          efsbtn.setStyle("fontWeight", "normal");

                                          efsbtn.setStyle("fontSize", "9");

                                          ccardbtn.setStyle("color", "0x000000");

                                          ccardbtn.setStyle("fontWeight", "normal");

                                          ccardbtn.setStyle("fontSize", "9");

                                          wireTrans.setStyle("color", "0x000000");

                                          wireTrans.setStyle("fontWeight", "bold");

                                          wireTrans.setStyle("fontSize", "10");

                                    }

                              }

                              private function selectionClick4(event:Event):void

                              {          

                                    if(event.target.id == "customer")

                                    {

                                          customer.selected = true;

                                          cList.selected = false;

                                          dot.selected = false;

                                          safe.selected = false;

                                          cNote.selected = false;

                                         

                                          customer.setStyle("color", "0x000000");

                                          customer.setStyle("fontWeight", "bold");

                                          customer.setStyle("fontSize", "10");

                                          cList.setStyle("color", "0x000000");

                                          cList.setStyle("fontWeight", "normal");

                                          cList.setStyle("fontSize", "9");

                                          dot.setStyle("color", "0x000000");

                                          dot.setStyle("fontWeight", "normal");

                                          dot.setStyle("fontSize", "9");

                                          safe.setStyle("color", "0x000000");

                                          safe.setStyle("fontWeight", "normal");

                                          safe.setStyle("fontSize", "9");

                                          cNote.setStyle("color", "0x000000");

                                          cNote.setStyle("fontWeight", "normal");

                                          cNote.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "cList")

                                    {

                                          customer.selected = false;

                                          cList.selected = true;

                                          dot.selected = false;

                                          safe.selected = false;

                                          cNote.selected = false;

                 

                                          customer.setStyle("color", "0x000000");

                                          customer.setStyle("fontWeight", "normal");

                                          customer.setStyle("fontSize", "9");

                                          cList.setStyle("color", "0x000000");

                                          cList.setStyle("fontWeight", "bold");

                                          cList.setStyle("fontSize", "10");

                                          dot.setStyle("color", "0x000000");

                                          dot.setStyle("fontWeight", "normal");

                                          dot.setStyle("fontSize", "9");

                                          safe.setStyle("color", "0x000000");

                                          safe.setStyle("fontWeight", "normal");

                                          safe.setStyle("fontSize", "9");

                                          cNote.setStyle("color", "0x000000");

                                          cNote.setStyle("fontWeight", "normal");

                                          cNote.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "dot")

                                    {

                                          customer.selected = false;

                                          cList.selected = false;

                                          dot.selected = true;

                                          safe.selected = false;

                                          cNote.selected = false;

                                         

                                          customer.setStyle("color", "0x000000");

                                          customer.setStyle("fontWeight", "normal");

                                          customer.setStyle("fontSize", "9");

                                          cList.setStyle("color", "0x000000");

                                          cList.setStyle("fontWeight", "normal");

                                          cList.setStyle("fontSize", "9");

                                          dot.setStyle("color", "0x000000");

                                          dot.setStyle("fontWeight", "bold");

                                          dot.setStyle("fontSize", "10");

                                          safe.setStyle("color", "0x000000");

                                          safe.setStyle("fontWeight", "normal");

                                          safe.setStyle("fontSize", "9");

                                          cNote.setStyle("color", "0x000000");

                                          cNote.setStyle("fontWeight", "normal");

                                          cNote.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "safe")

                                    {

                                          customer.selected = false;

                                          cList.selected = false;

                                          dot.selected = false;

                                          safe.selected = true;

                                          cNote.selected = false;

                                         

                                          customer.setStyle("color", "0x000000");

                                          customer.setStyle("fontWeight", "normal");

                                          customer.setStyle("fontSize", "9");

                                          cList.setStyle("color", "0x000000");

                                          cList.setStyle("fontWeight", "normal");

                                          cList.setStyle("fontSize", "9");

                                          dot.setStyle("color", "0x000000");

                                          dot.setStyle("fontWeight", "normal");

                                          dot.setStyle("fontSize", "9");

                                          safe.setStyle("color", "0x000000");

                                          safe.setStyle("fontWeight", "bold");

                                          safe.setStyle("fontSize", "10");

                                          cNote.setStyle("color", "0x000000");

                                          cNote.setStyle("fontWeight", "normal");

                                          cNote.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "cNote")

                                    {

                                          customer.selected = false;

                                          cList.selected = false;

                                          dot.selected = false;

                                          safe.selected = false;

                                          cNote.selected = true;

                 

                                          customer.setStyle("color", "0x000000");

                                          customer.setStyle("fontWeight", "normal");

                                          customer.setStyle("fontSize", "9");

                                          cList.setStyle("color", "0x000000");

                                          cList.setStyle("fontWeight", "normal");

                                          cList.setStyle("fontSize", "9");

                                          dot.setStyle("color", "0x000000");

                                          dot.setStyle("fontWeight", "normal");

                                          dot.setStyle("fontSize", "9");

                                          safe.setStyle("color", "0x000000");

                                          safe.setStyle("fontWeight", "normal");

                                          safe.setStyle("fontSize", "9");

                                          cNote.setStyle("color", "0x000000");

                                          cNote.setStyle("fontWeight", "bold");

                                          cNote.setStyle("fontSize", "10");

                                    }

                              }

                                   

                              private function selectionClick5(event:Event):void

                              {

                                    if(event.target.id == "fin")

                                    {

                                          fin.selected = true;

                                          sale2.selected = false;

                                          all.selected = false;

                                          export.selected = false;

                 

                                          fin.setStyle("color", "0x000000");

                                          fin.setStyle("fontWeight", "bold");

                                          fin.setStyle("fontSize", "10");

                                          sale2.setStyle("color", "0x000000");

                                          sale2.setStyle("fontWeight", "normal");

                                          sale2.setStyle("fontSize", "9");

                                          all.setStyle("color", "0x000000");

                                          all.setStyle("fontWeight", "normal");

                                          all.setStyle("fontSize", "9");

                                          export.setStyle("color", "0x000000");

                                          export.setStyle("fontWeight", "normal");

                                          export.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "sale2")

                                    {

                                          fin.selected = false;

                                          sale2.selected = true;

                                          all.selected = false;

                                          export.selected = false;

                                         

                                          fin.setStyle("color", "0x000000");

                                          fin.setStyle("fontWeight", "normal");

                                          fin.setStyle("fontSize", "9");

                                          sale2.setStyle("color", "0x000000");

                                          sale2.setStyle("fontWeight", "bold");

                                          sale2.setStyle("fontSize", "10");

                                          all.setStyle("color", "0x000000");

                                          all.setStyle("fontWeight", "normal");

                                          all.setStyle("fontSize", "9");

                                          export.setStyle("color", "0x000000");

                                          export.setStyle("fontWeight", "normal");

                                          export.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "all")

                                    {

                                          fin.selected = false;

                                          sale2.selected = false;

                                          all.selected = true;

                                          export.selected = false;

                 

                                          fin.setStyle("color", "0x000000");

                                          fin.setStyle("fontWeight", "normal");

                                          fin.setStyle("fontSize", "9");

                                          sale2.setStyle("color", "0x000000");

                                          sale2.setStyle("fontWeight", "normal");

                                          sale2.setStyle("fontSize", "9");

                                          all.setStyle("color", "0x000000");

                                          all.setStyle("fontWeight", "bold");

                                          all.setStyle("fontSize", "10");

                                          export.setStyle("color", "0x000000");

                                          export.setStyle("fontWeight", "normal");

                                          export.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "export")

                                    {

                                          fin.selected = false;

                                          sale2.selected = false;

                                          all.selected = true;

                                          export.selected = false;

                 

                                          fin.setStyle("color", "0x000000");

                                          fin.setStyle("fontWeight", "normal");

                                          fin.setStyle("fontSize", "9");

                                          sale2.setStyle("color", "0x000000");

                                          sale2.setStyle("fontWeight", "normal");

                                          sale2.setStyle("fontSize", "9");

                                          all.setStyle("color", "0x000000");

                                          all.setStyle("fontWeight", "normal");

                                          all.setStyle("fontSize", "9");

                                          export.setStyle("color", "0x000000");

                                          export.setStyle("fontWeight", "bold");

                                          export.setStyle("fontSize", "10");

                                    }

                              }

                             

                              private function selectionClick6(event:Event):void

                              {

                                    if(event.target.id == "chart")

                                    {

                                          chart.selected = true;

                                          ven.selected = false;

                                         

                                          chart.setStyle("color", "0x000000");

                                          chart.setStyle("fontWeight", "bold");

                                          chart.setStyle("fontSize", "10");

                                          ven.setStyle("color", "0x000000");

                                          ven.setStyle("fontWeight", "normal");

                                          ven.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "ven")

                                    {

                                          chart.selected = false;

                                          ven.selected = true;

                 

                                          chart.setStyle("color", "0x000000");

                                          chart.setStyle("fontWeight", "normal");

                                          chart.setStyle("fontSize", "9");

                                          ven.setStyle("color", "0x000000");

                                          ven.setStyle("fontWeight", "bold");

                                          ven.setStyle("fontSize", "10");

                                    }

                              }

                                   

                              private function selectionClick8(event:Event):void

                              {

                                    if(event.target.id == "inbox1")

                                    {

                                          inbox1.selected = true;

                                          sent1.selected = false;

                                          compose.selected = false;

                 

                                          inbox1.setStyle("color", "0x000000");

                                          inbox1.setStyle("fontWeight", "bold");

                                          inbox1.setStyle("fontSize", "10");

                                          sent1.setStyle("color", "0x000000");

                                          sent1.setStyle("fontWeight", "normal");

                                          sent1.setStyle("fontSize", "9");

                                          compose.setStyle("color", "0x000000");

                                          compose.setStyle("fontWeight", "normal");

                                          compose.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "sent1")

                                    {

                                          inbox1.selected = false;

                                          sent1.selected = true;

                                          compose.selected = false;

                 

                                          inbox1.setStyle("color", "0x000000");

                                          inbox1.setStyle("fontWeight", "normal");

                                          inbox1.setStyle("fontSize", "9");

                                          sent1.setStyle("color", "0x000000");

                                          sent1.setStyle("fontWeight", "bold");

                                          sent1.setStyle("fontSize", "10");

                                          compose.setStyle("color", "0x000000");

                                          compose.setStyle("fontWeight", "normal");

                                          compose.setStyle("fontSize", "9");

                                    }

                                   

                                    else if(event.target.id == "compose")

                                    {

                                          inbox1.selected = false;

                                          sent1.selected = false;

                                          compose.selected = true;

                 

                                          inbox1.setStyle("color", "0x000000");

                                          inbox1.setStyle("fontWeight", "normal");

                                          inbox1.setStyle("fontSize", "9");

                                          sent1.setStyle("color", "0x000000");

                                          sent1.setStyle("fontWeight", "normal");

                                          sent1.setStyle("fontSize", "9");

                                          compose.setStyle("color", "0x000000");

                                          compose.setStyle("fontWeight", "bold");

                                          compose.setStyle("fontSize", "10");

                                    }

                              }     

                  ]]>

            </mx:Script>

           

            <mx:LinkBar id="linkBar" paddingTop="0" color="#ffffff" x="158.2" y="95" width="664"  dataProvider="{myViewStack}" borderStyle="none" themeColor="#FFFFFF" fontSize="10"

                  height="22.05" borderThickness="0" alpha="1.0" disabledColor="#bebebe" mouseOver="accOver(event), inOver(event), moveOver(event), customersOver(event), reportsOver(event), maintenanceOver(event), ntaOver(event), mailOver(event)"

                  mouseOut="accOut(event), inOut(event),  moveOut(event), customersOut(event), reportsOut(event), maintenanceOut(event), ntaOut(event), mailOut(event)" />

           

            <mx:ViewStack id="myViewStack" backgroundColor="#FFFFFF" borderStyle="none" width="607.15686" height="30" x="146.8" y="110.7" >

                 

                        <mx:VBox id="home" x="228.2" y="89.1" label="Home" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                              cornerRadius="0" textAlign="center" width="68.39162" height="16.451048">

                  </mx:VBox>

                 

                 <mx:VBox id="accounts" x="285.85" y="89.1" label="Accounts" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                        cornerRadius="0" width="607.16003" height="24.599998" >

                     <mx:HBox width="100%" paddingTop="3">

                                    <mx:LinkButton id="ab" label="AutoBudget" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontSize="9" click="selectionClick(event);" fontWeight="normal"  fontFamily="Verdana" width="90.5" height="20"/>

                                    <mx:LinkButton id="cb" label="CheckBook" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontSize="9" click="selectionClick(event);" fontWeight="normal" fontFamily="Verdana" width="82" height="21"/>

                          <mx:LinkButton id="fc" label="CashCard" color="#000000"  themeColor="#FFFFFF" cornerRadius="0" fontSize="9" click="selectionClick(event);" fontWeight="normal" fontFamily="Verdana" width="80" height="22.6"/>

                          <mx:LinkButton id="res" label="Reserve" color="#000000"  themeColor="#FFFFFF" cornerRadius="0" fontSize="9" click="selectionClick(event);" fontWeight="normal" fontFamily="Verdana" width="66.5" height="22"/>

                          <mx:LinkButton id="wb" label="WealthBuilder" color="#000000"  themeColor="#FFFFFF" cornerRadius="0" fontSize="9" click="selectionClick(event);" fontWeight="normal" fontFamily="Verdana" width="100" height="22"/>    

                      </mx:HBox>

                  </mx:VBox>

                 

                 <mx:VBox id="invoicing" x="360.5" y="89.1" label="Invoicing" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                        cornerRadius="0" fontWeight="normal" width="512.63336" height="24.600002" >

                     <mx:HBox width="505.3333" paddingTop="3" height="23">

                          <mx:LinkButton id="newin" label="New Invoice"  color="#000000" themeColor="#FFFFFF" fontSize="9" click="selectionClick2(event);" fontWeight="normal"  width="92.33333" height="20"  cornerRadius="0"/>

                          <mx:LinkButton id="pend" label="Pending"  color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontSize="9" click="selectionClick2(event);" fontWeight="normal" width="66.66667" height="20"/>

                          <mx:LinkButton id="fcs" label="Fax Cover Sheet"  color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontSize="9" click="selectionClick2(event);" fontWeight="normal" width="115" height="20"/>              

                          <mx:LinkButton id="inImport" label="Invoice Import"  color="#000000" themeColor="#FFFFFF" fontSize="9" click="selectionClick2(event);" cornerRadius="0" fontWeight="normal" width="112.33333" height="20"/>

                      </mx:HBox>

                  </mx:VBox>           

                 

                        <mx:VBox id="moveMoney" x="437.7" y="89.1" label="Move Money" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                              cornerRadius="0" fontWeight="normal" width="502" height="24.599998" >

                     <mx:HBox width="502" paddingTop="3" height="22.8">

                          <mx:LinkButton id="abTrans" label="AutoBudget Transfer" click="selectionClick3(event);" color="#000000" fontSize="9" cornerRadius="0" themeColor="#FFFFFF" fontWeight="normal" width="141.5" height="20"/>

                          <mx:LinkButton id="nbtbtn" label="NBT Check" click="selectionClick3(event);" color="#000000" fontSize="9" fontWeight="normal" themeColor="#FFFFFF" cornerRadius="0"  width="78" height="20"/>

                          <mx:LinkButton id="efsbtn" label="EFS Check" click="selectionClick3(event);"  color="#000000" fontSize="9" fontWeight="normal" themeColor="#FFFFFF" cornerRadius="0" width="78.5" height="20"/>

                          <mx:LinkButton id="ccardbtn" label="CashCard" click="selectionClick3(event);"  color="#000000" fontSize="9" fontWeight="normal" themeColor="#FFFFFF" cornerRadius="0" width="80" height="20.6"/>

                          <mx:LinkButton id="wireTrans" label="Bank Wire" click="selectionClick3(event);" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontSize="9" fontWeight="normal" width="87" height="20.2"/>

                              </mx:HBox>

                  </mx:VBox>

                 

                        <mx:VBox id="customers" x="524.3" y="89.1" label="Customers" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                              cornerRadius="0" fontWeight="normal" width="517.2" height="24.599998" >

                              <mx:HBox width="100%" paddingTop="3">

                          <mx:LinkButton id="customer" label="New Customer" click="selectionClick4(event);" color="#000000" fontSize="9" fontWeight="normal" themeColor="#FFFFFF" cornerRadius="0" width="104" height="22"/>

                          <mx:LinkButton id="cList" label="Customer List"  fontSize="9" click="selectionClick4(event);" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontWeight="normal" width="105" height="22"/>

                          <mx:LinkButton id="dot" label="DOT"  click="selectionClick4(event);" color="#000000" fontSize="9" textAlign="center" fontWeight="normal" themeColor="#FFFFFF" cornerRadius="0" width="45" height="22.6" fontStyle="normal" textDecoration="normal"/>

                          <mx:LinkButton id="safe" label="Safer"  fontSize="9" click="selectionClick4(event);" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontWeight="normal" width="50" height="22"/>

                          <mx:LinkButton id="cNote" label="Collection Notes"  fontSize="9" click="selectionClick4(event);" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontWeight="normal" width="111" height="22" visible="false"/>

                      </mx:HBox>

                  </mx:VBox>

                 

                        <mx:VBox id="reports" x="607.45" y="89.1" label="Reports" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                              cornerRadius="0" fontWeight="normal" width="326.2" height="24.600002" >

                     <mx:HBox width="100%" paddingTop="3">

                          <mx:LinkButton id="fin" label="Financial"  color="#000000" themeColor="#FFFFFF" fontSize="9" click="selectionClick5(event);" cornerRadius="0" fontWeight="normal" width="69.5" height="22"/>

                          <mx:LinkButton id="sale2" label="Sales"  color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontSize="9" click="selectionClick5(event);" fontWeight="normal" width="49" height="22"/>

                              <mx:LinkButton id="all" label="All"  fontSize="9" click="selectionClick5(event);" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontWeight="normal" width="35" height="22"/>

                              <mx:LinkButton id="export" label="Export" color="#000000"  themeColor="#FFFFFF" fontSize="9" click="selectionClick5(event);" cornerRadius="0" fontWeight="normal" width="61" height="20.2"/>

                      </mx:HBox>

                  </mx:VBox>

                             

                        <mx:VBox id="maintenance" x="676.2" y="89.1" label="Maintenance" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                              cornerRadius="0" fontWeight="normal" width="768.9" height="27.95" >

                     <mx:HBox width="100%" paddingTop="3">

                          <mx:LinkButton id="chart" label="Chart of Accounts"  color="#000000" themeColor="#FFFFFF" fontSize="9" click="selectionClick6(event);" cornerRadius="0" fontWeight="normal" width="122" height="20.2"/>

                          <mx:LinkButton id="ven" label="Vendors"  color="#000000" themeColor="#FFFFFF" fontSize="9" click="selectionClick6(event);" cornerRadius="0" fontWeight="normal" width="69" height="20.599998"/>

                      </mx:HBox>

                  </mx:VBox>

       

                        <mx:VBox id="nta" x="768.85" y="89.1" label="NTA" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                              cornerRadius="0" fontWeight="normal" width="71.4" height="24.600002" >

                       

                  </mx:VBox>

                 

                  <mx:VBox id="mail" x="813.55" y="89.1" label="Mail" color="#FFFFFF" fontSize="8" themeColor="#FFFFFF"

                        cornerRadius="0" fontWeight="normal" width="300" height="24.599998" >

                        <mx:HBox width="300" paddingTop="3" height="22">

                          <mx:LinkButton id="inbox1" label="Inbox"  fontSize="9" click="selectionClick8(event);" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontWeight="normal" width="53" height="22"/>

                              <mx:LinkButton id="sent1" label="Sent"  fontSize="9" click="selectionClick8(event);" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontWeight="normal" width="48" height="22"/>

                              <mx:LinkButton id="compose" label="Compose"  fontSize="9" click="selectionClick8(event);" color="#000000" themeColor="#FFFFFF" cornerRadius="0" fontWeight="normal" width="71.8" height="22"/>

                      </mx:HBox>                     

                  </mx:VBox>           

              </mx:ViewStack>

      </mx:Application>