Manual

10
Developer’s guide - C++, Urbi, Flex, Java - V2.0
robopec
This document is the property of Robopec. The information contained herein may not be used, reproduced or
communicated without its prior written consent.
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:local="*"
creationComplete="creation()"
xmlns:components="components.*"
m_appName="RTip"
>
<fx:Script>
<![CDATA[
/** Callback on application creation:
/* Initialization of button label to suppr entry in translation file
*/
protected function creation():void
{
but.label=translation.getTranslation().suppr;
socket.write("Global.servo.leftEar=10;");
}
/**
/* On click on home button, go back to reeti’s home
*/
protected function header1_prevClickHandler():void
{
var eventObject:Event=new Event("homeClick");
parent.dispatchEvent(eventObject);
}
]]>
</fx:Script>
<!Header component -->
<local:Header prevClick="header1_prevClickHandler()"
title="RTip" />
<s:Button id=”my_but”/>
</local:RApplication>
Add your application to the Launcher
To add your application to the Launcher, you have to go to the RConfiguration application on your
Reeti, Launcher Configuration then add an application to the board by picking the three files you just
created.