      */
     override protected function menuItemSelectHandler(event:Event):void
     {
+        const applicationDomain:ApplicationDomain = ApplicationDomain.currentDomain;
+        var htmlClass:Class = null;
+        
+        if (applicationDomain.hasDefinition("mx.controls::HTML"))
+            htmlClass = applicationDomain.getDefinition("mx.controls::HTML") as Class;
+
+        // If the HTML component is not compiled into this application, then
+        // fallback to the Spark Application behavior. The Spark Application
+        // launches view source in the browser.
+        if (!htmlClass)
+        {
+            super.menuItemSelectHandler(event);
+            return;
+        }
+        
         const vsLoc:File = File.applicationDirectory.resolvePath(viewSourceURL);
         if (vsLoc.exists)
         {

     *  @private
     *  Returns a Function handler that resizes the view source HTML component with the stage.
     */
    private function viewSourceResizeHandler(html:HTML):Function
    {
        return function (e:FlexNativeWindowBoundsEvent):void
        {

            
            // make it so
            win.open();
            win.contentGroup.addElement(IVisualElement(html));

            // links should open in the system web browser (e.g. the .zip links)
            html.htmlLoader.navigateInSystemBrowser = true;
