Flex is a framework for flash. In the Flex environment, you can use the following languages:
Flex was created to simplify and speed up the creation of flash applications, since you can do many things without having to use ActionScript 3.
For example, if you want to set the border color of a text field, add the text "hello" and add it to the scene. So you can do it in Flash using ActionScript 3:
var yourTextfield:TextField = new TextField(); yourTextfield..border.fill.color.value = 0xff3300; yourTextfield.text = "hello"; addChild(yourTextfield);
And here is how you do it in the Flex framework using MXML:
<s:TextArea text="hello" borderColor="#ff3300"/>
source share