---
title: "浅谈如何学习Flex"
author: "annewman"
date: "2010-05-10T20:40:59Z"
tags: ["ActionScript", "Adobe", "Flash", "Flex", "编程"]
categories: ["Web前端"]
slug: "flex"
draft: false
lastmod: "2010-05-10T20:40:59Z"
id: 663351
url: "https://annewman.iteye.com/blog/663351"
---

本人也是初次接触Flex,通过在网上找资料,和自己的总结,得出以下几点,和大家一起分享.

 

&lt;一&gt;[**Flex**](http://www.zengrong.net/?tag=flex "标签 Flex 下的日志") **的基础架构**

      **![](http://www.zengrong.net/wp-content/uploads/2007/08/flexstructure.gif)**

**&lt;二&gt;ActionScript**

         《ActionScript 3.0 语言和组件参考》是 Flash® Player 应用程序编程接口 (API) 的参考手册。 **actionScript语言是学习Flex的基础之基础,它是flex/flash编程类使用的语言,想学好flex就必须从基础开始,从底层出发.**

**&lt;三&gt;学习最基本的Flex C**omponents,主要包含以下控件:

1.常规类控件：Alert

2.按钮类控件：Button、RadioButton、RadionButtonGroup

3.文本类控件：Label、TextArea、TextInput、RichTextEditor

4.日期类控件：DateChooser、DateField

5.载入类控件：Image、SWFLoader、VideoDisplay

6.菜单类控件：Menu、MenuButton、PopUpMenuButton

这些控件都是Flex最基本的控件,有很多控件都继承自以上控件.

学习上面控件后,可以开始学习高级控件 如:

7.格式化类控件：CurrencyFormatter、DateFormatter等等。

8.验证类控件：CreditCardValidator、DateValidator、EmailValidator等。

9.当掌握以上控件后，我们还要把它们有序的组合在一起，因此就必须要掌握容器、布局的概念。

10.容器类控件：Panel、TitleWindow、Canvas、ApplicationControlBar、ControlBar、VBox、HBox、ViewStack等。

11.布局类控件：水平布局、垂直布局、自定义布局等。

12.以及Flex Effects \`Flex Chats\`DataGrid、Adanced DataGrid.

官方提供各种控件的例子,大家可以去系统学习.

    [http://examples.adobe.com/flex3/componentexplorer/explorer.html](http://examples.adobe.com/flex3/componentexplorer/explorer.html)

以及学习视频,老外英语不错,学习Flex的同时,还可以提高英语听力.一举两得.

    [http://www.adobe.com/cn/devnet/flex/videotraining/](http://www.adobe.com/cn/devnet/flex/videotraining/)

&lt;三&gt;各种书籍

如:Flex3权威指南》、《Flex 3 Cookbook中文版》.

&lt;四&gt;掌握以上了就可以开始学习各种框架,以及整和各种技术.

 

 以上都是我在网上找资料,总结出来学Flex的方法,希望对大家有帮助,也希望大家多多提建议,大家一起学习. 谢谢.