             {
                 // Dispatch event for saving persistence data
                 var eventDispatched:Boolean = true;
-                if (hasEventListener(FlexEvent.APPLICATION_PERSIST))
-                    eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_PERSIST, false, true));
+                if (hasEventListener(FlexEvent.APPLICATION_PERSISTING))
+                    eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_PERSISTING, false, true));
                 
                 if (eventDispatched)
                 {

    /**
     *  @inheritDoc
     */
    [Event(name="applicationRestore", type="mx.events.FlexEvent")]
    
    public class MobileApplication extends Application
    {

                    }
                    
                    persistenceManager.flush();
                    
                    if (hasEventListener(FlexEvent.APPLICATION_PERSIST))
                        eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_PERSIST));
                }
            }
        }
