     private function nativeApplication_activateHandler(event:Event):void
     {
         dispatchEvent(new AIREvent(AIREvent.APPLICATION_ACTIVATE));
+    
+        // Restore throttled framerate if appropriate when application is activated.
+        if (prevActiveFrameRate >= 0 && stage)
+        {
+            stage.frameRate = prevActiveFrameRate;  
+            prevActiveFrameRate = -1;
+        }
     }
 
     /**

    private function nativeApplication_deactivateHandler(event:Event):void
    {
        dispatchEvent(new AIREvent(AIREvent.APPLICATION_DEACTIVATE));
    }

    /**

    public function set autoExit(value:Boolean):void
    {
        nativeApplication.autoExit = value;
    }

    //----------------------------------
    //  backgroundFrameRate
    //----------------------------------

    /**
     *  @private
     *  Storage for the backgroundFrameRate property.
     */
    private var _backgroundFrameRate:Number = 1;

    /**
     *  Specifies framerate to use when the application is inactive.
     *  When set to -1 no background framerate throttling will occur.
     *
     *  @default 1
     *  
     *  @langversion 3.0
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function get backgroundFrameRate():Number
    {
        return _backgroundFrameRate;
    }
   
    /**
     *  @private
     */ 
    public function set backgroundFrameRate(frameRate:Number):void
    {
        _backgroundFrameRate = frameRate;
    }

    //----------------------------------
