<?xml version="1.0" encoding="utf-8"?>
<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 {
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>