<?xml version="1.0" encoding="utf-8"?>
<!--
/* Copyright 2007 Fumitada Hattori
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
 
@author Fumitada Hattori ( hattori@apache.org )
        http://www.silver-island.com
        
-->
<mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" 
    xmlns:six="com.silverisland.diff.mxml.*"
    layout="vertical"
    creationComplete="initApp();"
    backgroundColor="0xffffff"
    viewSourceURL="srcview/index.html"
    
    >
    
    <mx:Script>
        <![CDATA[
        
            public function initApp() : void {
                // "diff" is a javascript method in HTML
                ExternalInterface.addCallback("diff", compute);
            }
            
            public function compute(leftText:String, rightText:String ) : void {
                flexDiff.leftText = leftText;
                flexDiff.rightText = rightText;
                flexDiff.compute();
            }

            
        ]]>
    </mx:Script>
    
    <mx:Panel title="FlexDiff" 
        id="panel" width="700" 
        backgroundAlpha="0"
        backgroundColor="0x000000" 
        themeColor="0x000000"
        height="300" 
        borderColor="0x000000" 
        headerColors="{[0x000000, 0x000000]}"
        footerColors="{[0x000000, 0x000000]}"
        highlightAlphas="{[0.5,0]}"
        borderAlpha="1"
        color="0xffffff"
        
        >
        
        <six:FlexDiff id="flexDiff" width="100%" height="100%" />
    </mx:Panel>
    
    
    
</mx:Application>