I've been playing with a little app today, i came accross a simple tip calculator here http://blog.flexexamples.com/2007/09...lator-in-flex/
and thought i'd have a go at building my own calculator.
What i've got is a radiobutton group that selects either "one" or "two", then a text input (which i'm struggling to convert to numbers, something to do with parseFloat i think), and a button to calculate. Basically i'm interested in what components can be used to preform calculations.
Here's the code so far:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
private function getTotal():void
total.text = <!--- radioGroup selection or value, +/-/* etc whatever the user types in the textinput --->
<mx:RadioButton label="1 - 4" groupName="radioGroup" value="one"/>
<mx:RadioButton label="5 - 8" groupName="radioGroup" value="two"/>
<mx:Button label="Button" click="getTotal();"/>
So that's basically just the components ready for the logic, but i'm really stumped now as to where to go with this.
Would anybody like to help with this?
Any pointers or links to tutorials would be gratefully recieved as always
Looking forward to your ideas all!!!!