<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
width="800" height="600"
creationComplete="init()"
showFlexChrome="false" viewSourceURL="srcview/index.html">
<mx:Style source="RibbitContact.css"/>
<mx:Canvas x="79" y="26" width="430" height="410" id="main_canvas" styleName="mainCanvas">
<mx:Canvas x="10" y="8" width="411" height="33.6" id="title_canvas">
<mx:Button id="btn_close" x="375" y="0" width="33" height="33.6" styleName="closeButton" click="closeApp()"/>
</mx:Canvas>
<mx:Label x="19" y="380" text="Not connected" width="391" id="txt_status" enabled="true" styleName="txtStatus"/>
</mx:Canvas>
<mx:Script>
<![CDATA[
import flash.events.MouseEvent;
import com.dhaya.RibbitContacts;
private var RibbitDG:RibbitContacts;
private function init():void
{
RibbitDG = new RibbitContacts(19,49.6,391,324.4, txt_status);
main_canvas.addChild(RibbitDG);
title_canvas.addEventListener(MouseEvent.MOUSE_DOWN, deplaceFenetre);
}
private function deplaceFenetre(e:MouseEvent):void
{
stage.nativeWindow.startMove();
}
private function closeApp():void
{
stage.nativeWindow.close();
}
]]>
</mx:Script>
</mx:WindowedApplication>