answersLogoWhite

0


Best Answer

here is the code for simple calculator in flex,




[Bindable] private var _txt:Object;
[Bindable] private var _choos:String;

private function satu():void{
txtLayar.text = txtLayar.text + '1';
}
private function dot():void{
txtLayar.text = txtLayar.text + '.';
}
private function dua():void{
txtLayar.text = txtLayar.text + '2';
}
private function tiga():void{
txtLayar.text = txtLayar.text + '3';
}
private function empat():void{
txtLayar.text = txtLayar.text + '4';
}
private function lima():void{
txtLayar.text = txtLayar.text + '5';
}
private function enam():void{
txtLayar.text = txtLayar.text + '6';
}
private function tujuh():void{
txtLayar.text = txtLayar.text + '7';
}
private function lapan():void{
txtLayar.text = txtLayar.text + '8';
}
private function sembilan():void{
txtLayar.text = txtLayar.text + '9';
}
private function noll():void{
txtLayar.text = txtLayar.text + '0';
}
private function clear():void{
txtLayar.text = '';
}
private function sum():void{
_txt = txtLayar.text;
_choos = '1';
txtLayar.text = '';
}
private function sub():void{
_txt = txtLayar.text;
_choos = '2';
txtLayar.text = '';
}
private function mul():void{
_txt = txtLayar.text;
_choos = '3';
txtLayar.text = '';
}
private function div():void{
_txt = txtLayar.text;
_choos = '4';
txtLayar.text = '';
}
private function hasil():void{
var txt2:Number = Number(txtLayar.text);
var txt3:Number = Number(_txt);
var has:Number;
if(_choos=='1'){
has = txt3 + txt2;
}else if(_choos == '2'){
has = txt3 - txt2;
}else if(_choos == '3'){
has = txt3 * txt2;
}else if(_choos == '4'){
has = txt3 / txt2;
}
txtLayar.text = has.toString();
}
]]>








































User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Code to develop a calculator in adobe flex?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the Adobe Flex builder?

The Adobe Flex Builder is an integrated development environment which offers built in modifying and code editors. It is commonly known as the Adobe Flash Builder now.


What is flex development used for?

Flex development is designed to help develop specific applications on the web. For example, Apache Flex is specifically designed for the Adobe Flash platform.


Where can Flex Builder software be purchased?

Flex Builder software is a computer product produced by the American company, Adobe. Flex builder is used to create cross-platform rich internet applications. Flex is available online at Adobe.


What is difference between flash and flex?

exactly flash is a tool that is used to create applications it is subset of flex,the flex is collection of all the tools and techniques that is provided by adobe .


Can you use adobe flex builder to make games for kongregate?

Yes, of course.


Where can you find flex tutorials?

Adobe's official website offers Flex tutorials, along with a list of 45 of the most wanted Flex tutorials. Google Developers is also another source for finding these tutorials online.


What is Adobe AIR?

The Adobe® AIR® runtime enables developers to deploy standalone applications built with HTML, JavaScript, ActionScript®, Flex, Adobe Flash® Professional, and Adobe Flash Builder® across platforms and devices - including Android™, BlackBerry®, iOS devices, personal computers, and televisions.Adobe Integrated Runtime (AIR) is a cross-platform runtime environment developed by Adobe Systems for building rich Internet applications using Adobe Flash, Adobe Flex, HTML, or Ajax, that can be deployed as a desktop application.


Which bank has sort code 074456?

Nationwide Flex account


What is flex?

A> A Flex application at it's very basic level is a Flash .swf file embedded in a generated HTML file. Since Flex outputs it's data as a .swf, this allows you to utilize everything that Flash Player is famous for; dynamic animations, sound and video handling, and of course, the Flash Drawing API. The HTML that Flex spits out has the necessary JavaScript code in order to detect whether the user has the Flash Player installed, or whether they need to update to the current player. To read more about it you can refer http://www.webspiders.com/adobe-flex.aspx


What has the author Doug McCune written?

Doug McCune has written: 'Adobe Flex 3.0 for dummies' -- subject(s): OverDrive, Computer Technology, Nonfiction


What is the difference between flash pro and flash builder?

Flash Professional refers to the traditional Flash IDE that is a member of the Creative Suite family.Flash Pro is the software one uses to create Flash animations.Flash Builder refers to the actionscript code editor built upon Eclipse (previously known as Flex Builder).Flash Builder is the name of the latest version of the Flex IDE developed by Adobe.


What is a code to flex hotel vault?

No one can give you the code, because if they know its right they have already used the code and you can not use the same code again, Sorry.