0 Replies Latest reply on Sep 22, 2009 7:10 AM by VIVEK JAIN YJA

    Log Error Messages in the Text File using Flex

    VIVEK JAIN YJA

      Hi,

       

      I am using try/Catch block to catch exception and am trying to write these error messages in the text file.

       

      I do not know how to achive such funcionality.

       

      looking forward for your help in this regard. Please have a look on the code as pasted below:

       

      private function onItemRollOver(evt : ListEvent) : void
                  {  
                      try
                      {  
                               var s:String= evt.target.Participation;
                                 var partRange:Number = evt.rowIndex;
                              if (partRange == 2)
                              {
                                      dgCohorts.setStyle( "rollOverColor", "red" );
                              }
                              if (partRange == 7)
                              {
                                  dgCohorts.setStyle( "rollOverColor", "green" );
                              }       
                              dgCohorts.validateNow();
                         }
                         catch(e:Error)
                         {
                                  var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                  callLaterErrorEvent.error = e;
                                  systemManager.dispatchEvent(callLaterErrorEvent);
                                
                         }

       

      Thanks,

      Vivek Jain