Recently I developed a small Flex component: the International Currency Converter.
Workflow
For a better insight on how this component can be used and re-used, I will explain the work flow.
This component works with an on line web-service for the different currency conversion rates. Which are updated daily.
To invoke a currency rate we need the “FROM” and “TO” currency code. To visualize the current rates, I use a flag image (the currency image).
To work with these 3 factors: I created an XML-file with all the different currency names, currency codes and currency images. View XML.
Base map with all the images: http://creative-geeks.com/labs/currencyConvertor/Flags/ “+currencyImage”.
Source files
In order to use this Flex component, you can simply download the component and include it in you Flex project. You can use my version, with the flag images and the base XML file on my server. Or if you wish 100% uptime warranty you can upload the Flags folder and the currencies.xml file to you own server. Make sure to change the _linkToImages and _linkToXML variable inside the component if you are using your own server.
Download the assets (Flag images, XML file and component)
Found any Errors? Have a question? Have an idea? Reply! Reply! Reply!
Thanks Daan !! Very impressive and clear component)))
Hello, is it also possible to use a static xml file?
Hi Reginald,
Well you can just change the _linkToXML variable to the XML file you want to use … Just make sure it has the same structure as the source XML …