Wednesday, February 9, 2011

User Interface at Flex Part 2

Okay I will continue the last article. In this article I will introduce :
1. CheckBox
Example:







import mx.controls.Alert;
private function clickHandler():void{
if(data1.selected) {
Alert.show("Data 1 is clicked","Warning");
data1.selected=false;
}else if(data2.selected) {
Alert.show("Data 2 is clicked","Warning");
data2.selected=false;
}else if(data3.selected) {
Alert.show("Data 3 is clicked","Warning");
data3.selected=false;
}else if(data4.selected) {
Alert.show("Data 4 is clicked","Warning");
data4.selected=false;
}
}
]]>








Result:


2. Radio Button
Example:









Result:

3.Label
Example






Result:

4.Button
Example:






Result:



No comments:

Post a Comment