Welcome to:


Free Stuff / CurrencyConverter component /

CurrencyConverter component 1.0

for Flash MX 2004 and above, ActionScript 2

The CurrencyConverter component uses a web service to display the latest exchange rate between 2 chosen currencies (free download)

Different font styles can be applied at runtime and in the authoring environment with the Properties panel. The demo at the right allows a user to pick any 'to' and 'from' currency and displays the result in a custom font.

  • Customize text format using styles
  • Drag and drop a component onto the stage, add one line of ActionScript, export your movie and you'll see the frame rate...
  • Minimal coding needed


Properties & methods:

currency converter properties

decimalPlaces a number indicating how many digits to the right of the decimal are shown in returned rate

embed_Fonts true to embed output font (the font must be exported for ActionScript in the library)

font_Color, font_Family, font_Size standard font style properties

font_Weight either "bold" or "none"

fromCurrency a 3-letter abbreviation representing the currency to be converted 'from'

toCurrency a 3-letter abbreviation representing the currency to be converted 'to'

waitingMessage message displayed while currency exchange rate is being looked up

convert() call convert() on your component instance in ActionScript to get the latest exchange rate and display it in the component's text field. You give your component on the stage an instance name, and then use that name to call convert, for example:

myComponent.convert();

onCurrencyData event is dispatched when the component receives valid exhange rate data




To use the currency converter, simply drag a CurrencyConverter component instance onto the stage, set properties, call the convert() method and export:

currency converter in components panel

A sample file 'ccSample.zip' is included with the download package. It gives examples of usage and lists all supported currencies.

Download


USAGE Go to the Components Panel, expand the flashextension.net node and drag a CurrencyConverter instance onto the stage. Set properties in ActionScript or via the Component Inspector.
HELP LOCATION This page.
SAMPLE FILES ccSample.zip sample file is bundled with your download package; you will be prompted to save this file during installation.
SYSTEM REQS. windows apple marker Flash MX 2004; Windows or Mac
KEY WORDS currency exchange rate money conversion global