Would you like to react to this message? Create an account in a few clicks or log in to continue.


Pakistan is contributing at its best in the field of latest technologies, platforms and approaches. Here,Flex developers share their experience, knowledge and ideas to assure their best talent in the world.

Latest topics
» Advice sought on recruiting a Senior Flex developer in Lahore
CURRENCY VALIDATOR EmptyTue May 11, 2010 2:41 pm by anjum

» steam boiler efficency calculator
CURRENCY VALIDATOR EmptyWed Dec 23, 2009 4:55 am by imranmalik

» URLLoader and URLRequest application
CURRENCY VALIDATOR EmptyTue Dec 15, 2009 6:01 pm by imranmalik

» Time display by ILOG ELIXIER PACKAGE
CURRENCY VALIDATOR EmptyThu Dec 10, 2009 9:28 am by imranmalik

» how Filter XML data by Flash Builder
CURRENCY VALIDATOR EmptySat Dec 05, 2009 6:33 pm by imranmalik

» drag and drop (Advance Data Grid to List Box)
CURRENCY VALIDATOR EmptyThu Nov 19, 2009 7:12 pm by imranmalik

» access the xml file through HTTPService request
CURRENCY VALIDATOR EmptySun Nov 15, 2009 11:46 am by imranmalik

» CURRENCY VALIDATOR
CURRENCY VALIDATOR EmptyTue Nov 03, 2009 2:06 pm by imranmalik

» Synchronous Behavior
CURRENCY VALIDATOR EmptySun Nov 01, 2009 8:04 pm by imranmalik

Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of on your social bookmarking website


You are not connected. Please login or register

CURRENCY VALIDATOR

Go down  Message [Page 1 of 1]

1CURRENCY VALIDATOR Empty CURRENCY VALIDATOR Tue Nov 03, 2009 2:06 pm

imranmalik



<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
backgroundGradientColors="[0x000000,0x323232]">
<mx:Script>
<![CDATA[
import mx.events.ValidationResultEvent;
public var vresult:ValidationResultEvent;
public function format():void
{
vresult=numv.validate();
if(vresult.type==ValidationResultEvent.VALID)
{
var temp:Number=Number(tx1.text);
lb1.text=cf1.format(temp);
}
else
{
lb1.text="";
}
}
]]>
</mx:Script>
<mx:CurrencyFormatter id="cf1" decimalSeparatorFrom="." decimalSeparatorTo="."
currencySymbol="Rs" useThousandsSeparator="true" alignSymbol="left"
rounding="nearest" useNegativeSign="true" precision="2"/>
<mx:NumberValidator id="numv" source="{tx1}"
property="text" allowNegative="true" domain="real"/>
<mx:Panel title="CURRENCY VALIDATOR" x="378" y="189" width="302" height="194"
layout="absolute" color="#FB0505">
<mx:TextInput x="112" y="10" id="tx1"/>
<mx:Label x="131.5" y="40" id="lb1"/>
<mx:Button x="75" y="76" label="Currency Validator" id="bt1" click="format()"/>
<mx:Label x="10" y="12" text="Enter Ammount"/>
</mx:Panel>
</mx:Application>

http://www.jumusic.tv

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum