Is this using Adobe Air for Android?  If so this is not really the right
group for this type of question...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Sep 4, 2012 at 9:14 AM, Ryan Watts <ryandwa...@gmail.com> wrote:

> Greetings I am developing an Android App that is a simple calculator of
> several fields. I am new to programming so I keep getting stuck at one of
> my lines of code. I have already set up the design and added my
> declarations to the label. Now I am trying to write the initial script of
> which will actually computer my formula. The formula lies within the button
> labeled " Calculate" Here is what I have thus far. Please give some advice
> on how you would approach this type of formula.
>
> <?xml version="1.0" encoding="utf-8"?>
> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009";
>  xmlns:s="library://ns.adobe.com/flex/spark" title="Percentage
> Calculator">
>  <fx:Script>
> <![CDATA[
> protected function btnCalculate_clickHandler(event:MouseEvent):void
>  {
> // TODO Auto-generated method stub * Insert Formula Here *
> get
>  }
> ]]>
> </fx:Script>
>  <fx:Declarations>
> <!-- Place non-visual elements (e.g., services, value objects) here -->
> </fx:Declarations>
>  <s:Label id="lblBillAmount" x="7" y="80" text="Bill Amount : "/>
> <s:TextInput id="txtBillAmount" x="103" y="69" width="155"/>
>  <s:Label id="lblTipPercent" x="7" y="121" text="TipPercent%"/>
> <s:TextInput id="txtTipPercent" x="105" y="111" width="155"/>
>  <s:Label id="lblAnswer" x="85" y="208" width="189" height="36"/>
> <s:Button id="btnCalculate" x="135" y="248" label="Calculate"
>   click="btnCalculate_clickHandler(event)" color="#063EB1"
> fontFamily="_typewriter"/>
> <s:Label id="lblTipAmount" x="7" y="164" text="TipAmount$"/>
>  <s:Label id="txtTipAmount" x="105" y="152" width="155" height="33"/>
> </s:View>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to