What are the main controls used in the flex user interfaces?

Mar 29 2012

Text controls
Label, Text, TextInput, TextArea, RichTextEditor

Data provider controls
data provider is a collection of objects, similar to an array.

Menu controls
Menu, MenuBar, PopUpMenuButton

Flex controls
Alert, Button, ButtonBar, CheckBox, ComboBox, ColorPicker,
DataGrid, DateChooser, DateField, HorizontalList ,
HRule/VRule, HSlider/VSlider, Image, Label, LinkBar,
LinkButton, List, Menu, MenuBar, NumericStepper, ProgressBar,
RadioButton, RadioButton Group, RichTextEditor, HScrollBar and VScrollBar,
SWFLoader, TabBar, Text, TextArea, TextInput, TileList, ToggleButtonBar
Tree, VideoDisplay

Typically all these controls are placed inside containers.
Eg:-  TextInput controls, ComboBox control, Button control  can be put inside a Form container.

Add a comment

Associative arrays in flex 3 – part 1

Feb 23 2012

var monitorInfo:Object = new Object();

a). monitorInfo["got ya"] = “10 million”;
b). monitorInfo.got_ya = “10 million”;
c). monitorInfo.got ya = “10 million”;

What are the correct methods to store a value in an associative array? Is it a, b or c ?
The answer is a and b

What are the good practice and bad practice by looking at the correct answer a?
You should not use spaces in a key though

Add a comment

What is the out put of the following action script 3 code?

Feb 12 2012

interface IOne
{
 public function chicken(str:String):String;
}
interface ITwo
{
 function cross():void;
}

class ChickenCross implements IOne, ITwo
{
  public function chicken(param:String):String { trace("chicken");}
  public function cross():void { trace("cross");}
}
									

This code will out put a compile-time error as you can not have any access control specifiers with the methods declared inside an interface.

Add a comment

Older posts »