LuFFy

Flex Study (Part 1)

Flex Builder3 升级后变成 Flash Catalyst + Flash Builder4了。

Flex development 两大特征:events and data binding

1
2
3
4
5
6
7
8
9
10
11
12
//Events:
private function init():void {
button3.addEventListener(MouseEvent.CLICK, handleClick);
}
 
//Data binding-01:
<s:textinput id="textInput1" text="{textInput2.text}" />
<s:textinput id="textInput2" text="{textInput1.text}" />
 
//Data binding-02:
<s:textinput id="textInput1" text="@{textInput2.text}" />
<s:textinput id="textInput2" />

Flex applications typically consist of many MXML and ActionScript components, which are stored in .mxml and .as files. These components are organized into packages.

These components communicate via data binding and by manually dispatching events.

你也许对这些文章也感兴趣……:


No Responses to “Flex Study (Part 1)” »

Leave a Reply