13:50

Flex 3 - Dolar / TL Çevirici Uygulaması

Flex 3 deki ilk uygulamam: Dolar TL Çeviricisi
Swf Dosyası



Bu kısımda dikkat edilecek uygulamalar:
mx:Number Tagı ile hesaplama işlemleri.
CurrencyFormatter ile para birimi işlemleri.
NumericStepper ile basamaklı artış işlemleri.


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="300" height="300" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#913EE6, #DAD0E0]">
<mx:Number id="hesap">{Number(girilen.text) * Number(adim.value)}</mx:Number>
<mx:CurrencyFormatter id="cf" precision="2" currencySymbol="TL"
alignSymbol="right" decimalSeparatorTo="," thousandsSeparatorTo="."/>
<mx:Panel width="254" height="228" x="23" y="40" title="Dolar / TL Çevirici" borderColor="#240606" color="#000506" layout="absolute">
<mx:Label text="Dolar:" x="10" y="21"/>
<mx:TextInput x="57" y="19" width="116" restrict="0-9" id="girilen" text="100"/>
<mx:Label x="26" y="62" text="TL:"/>
<mx:Label x="57" y="62" text="{cf.format(hesap)}" width="95"/>
<mx:ControlBar height="52" y="146">
<mx:Label text="1 $ =" fontSize="15" fontWeight="bold"/>
<mx:NumericStepper fontSize="14" value="1.51" stepSize=".01" minimum="0" id="adim"/>
<mx:Label text="TL" fontSize="15" fontWeight="bold"/>
</mx:ControlBar>
</mx:Panel>
</mx:Application>

0 yorum:

Yorum Gönder