没有合适的资源?快使用搜索试试~ 我知道了~
首页Flash Builder 4 & Flex 4 完全指南:初学者实用宝典
Flash Builder 4 & Flex 4 完全指南:初学者实用宝典
需积分: 0 0 下载量 63 浏览量
更新于2024-07-28
收藏 12.81MB PDF 举报
"《Flash Builder 4 Flex 4 宝典》是一本深度解析Adobe Flash Builder 4 和 Flex 4 的权威教材,专为web开发技术的学习者设计。该书由David Gassner撰写,全面涵盖了Flash Builder 4 SDK中的所有工具,包括与BlazeDS、ColdFusion和PHP的集成,旨在帮助读者快速构建跨平台的Web应用程序。对于初学者来说,这本书不仅深入讲解了Flex 4 的原理和技术,还提供了实用的项目代码,以及配套网站链接,便于实际操作和进一步学习。
本书特色在于其详尽的指导,从基础概念到高级应用,让读者能够逐步掌握这两款强大的开发工具。无论是希望进入Flash Builder 4 开发环境,还是想要提升在Flex 4 上的项目构建能力,这本书都是不可或缺的参考资料。版权信息表明,本书受到1976年美国版权法的保护,未经许可,不得进行任何形式的复制或传播。
通过阅读《Flash Builder 4 Flex 4 宝典》,学习者可以期待在以下几个方面收获:
1. 精通Flash Builder 4 的界面和工作流程,了解其在开发过程中的角色。
2. 学习如何使用Flex 4 构建高效、可扩展的用户界面组件。
3. 掌握与后端技术如BlazeDS、ColdFusion和PHP的整合技巧,实现数据交互。
4. 实践构建跨平台应用程序,利用Flash Builder 4 的支持实现多设备兼容性。
5. 通过书中提供的代码示例,提升编程技能和项目开发经验。
《Flash Builder 4 Flex 4 宝典》是一本实用性与理论性并重的书籍,对于想要在Web开发领域取得成功的人来说,是必不可少的参考资料。无论是自学还是教学,它都能提供强大的支撑,确保读者在学习道路上顺利前行。"
xiv
Contents
Chapter 11: Using Cascading Style Sheets....................... 341
About Cascading Style Sheets ............................................................................................341
What Is a Style Sheet? .......................................................................................................343
Using Inline Style Declarations ..........................................................................................344
Declaring Style Sheets with <fx:Style> ...............................................................................345
Using Style Selectors .........................................................................................................346
Using type selectors .................................................................................................346
Using descendant selectors ......................................................................................350
Using style name selectors .......................................................................................351
Using ID selectors ...................................................................................................352
Using the global selector .........................................................................................352
Using Embedded Style Sheets ...........................................................................................353
Using External Style Sheets ...............................................................................................356
Creating a blank style sheet .....................................................................................356
Exporting existing styles ..........................................................................................359
Using Compiled Style Sheets .............................................................................................363
Compiling style sheets .............................................................................................363
Loading compiled style sheets .................................................................................363
Controlling Styles with ActionScript .................................................................................366
Setting and getting style information .......................................................................366
Modifying style selectors at runtime ........................................................................367
Summary ..........................................................................................................................370
Chapter 12: Controlling Animation and
Working with Drag and Drop................................. 371
Using Effects .....................................................................................................................372
Declaring and playing effect classes .........................................................................373
Declaring effects in ActionScript ..............................................................................375
Using the new Spark effects .....................................................................................377
Using composite effects ...........................................................................................383
Using easing classes .................................................................................................387
Using Drag-and-Drop Operations .....................................................................................388
Implementing drag-and-drop with List controls ......................................................389
Implementing custom drag-and-drop operations ....................................................391
Summary ..........................................................................................................................398
Chapter 13: Managing View States............................. 399
Understanding View States ................................................................................................400
Defining View States in Design View .................................................................................401
Creating a new state ................................................................................................401
Defining a view state’s overrides ..............................................................................404
Switching View States at Runtime .....................................................................................406
Declaring View States in MXML ........................................................................................407
Adding and removing components ..........................................................................408
Overriding properties, styles, and event handlers ....................................................409
02_488959-ftoc.indd xiv02_488959-ftoc.indd xiv 3/5/10 2:17 PM3/5/10 2:17 PM
xv
Contents
Managing View States in Components ..............................................................................412
Using Transitions ..............................................................................................................414
Declaring a transition ..............................................................................................414
Using Parallel and Sequence effects in transitions ....................................................415
Summary ..........................................................................................................................418
Chapter 14: Declaring Graphics with MXML and FXG ............... 419
Declaring Vector Graphics in MXML .................................................................................420
Drawing lines and shapes ........................................................................................420
Adding visual effects ...............................................................................................425
Using FXG Files ................................................................................................................432
Creating FXG graphics with Creative Suite software ................................................432
Using FXG files in Flex applications ........................................................................439
Summary ..........................................................................................................................442
Chapter 15: Skinning Spark Components ........................ 443
Creating and Using Spark Custom Skins ...........................................................................444
Skinning a Spark application ...................................................................................444
Binding a custom skin to a Spark component ..........................................................451
Skinning Other Spark Components ..................................................................................455
Creating a new skin .................................................................................................455
Assigning custom skins with CSS ............................................................................461
Customizing the skin ..............................................................................................462
Summary ..........................................................................................................................467
Chapter 16: Managing Application Navigation.................... 469
Understanding Classic Web Navigation ............................................................................470
Understanding Flex Navigation .........................................................................................471
Using Navigator Containers ..............................................................................................471
Declaring a ViewStack in MXML .............................................................................472
Using custom components in a navigator container .................................................472
Creating a ViewStack in Design mode .....................................................................473
Working with navigator containers in ActionScript .................................................477
Managing creation policy ........................................................................................482
Managing navigator container dimensions ...............................................................484
Using Navigator Bar Containers ........................................................................................484
Using a data collection as a dataProvider .................................................................485
Handling navigator bar events .................................................................................487
Using a ViewStack as a dataProvider .......................................................................487
Managing navigator bar presentation .......................................................................488
Using Menu Controls ........................................................................................................491
Menu data providers ...............................................................................................492
Handling menu events ............................................................................................493
Using the Menu control ...........................................................................................494
Using the MenuBar control......................................................................................495
02_488959-ftoc.indd xv02_488959-ftoc.indd xv 3/5/10 2:17 PM3/5/10 2:17 PM
xvi
Contents
Using Other Navigator Containers ....................................................................................497
The TabNavigator container ....................................................................................498
The Accordion container .........................................................................................500
TabNavigator and Accordion keyboard shortcuts ....................................................501
Summary ..........................................................................................................................502
Chapter 17: Working with Pop-up Windows ..................... 503
Using the Alert Class .........................................................................................................504
Presenting pop-up windows with Alert.show() ........................................................504
Controlling Alert window modality .........................................................................504
Managing Alert window buttons .............................................................................506
Handling Alert window events ................................................................................508
Using a custom graphical icon .................................................................................509
Using CSS selectors with the Alert class ...................................................................512
Using the PopUpMenuButton Control ..............................................................................514
Creating a data provider ..........................................................................................514
Handling events ......................................................................................................515
Using the PopUpButton control ........................................................................................517
Declaring the pop-up window .................................................................................518
Handling events and managing pop-up behavior ....................................................518
Working with Custom Pop-up Windows ..........................................................................521
Defining a custom pop-up window .........................................................................521
Managing custom pop-up windows with the PopUpManager class..........................524
Summary ..........................................................................................................................530
Part III: Working with Data 531
Chapter 18: Modeling and Managing Data ....................... 533
Creating a Data Model ......................................................................................................534
Using the <fx:Model> element .................................................................................535
Using Value Objects ..........................................................................................................539
Using the New ActionScript Class wizard ................................................................540
Value object class syntax .........................................................................................541
Instantiating value object classes .............................................................................549
Using Data Collections ......................................................................................................552
Declaring an ArrayCollection...................................................................................553
Setting a data collection object’s source property .....................................................554
Accessing data at runtime ........................................................................................555
Managing data at runtime ........................................................................................556
Using data cursors ...................................................................................................562
Summary ..........................................................................................................................569
Chapter 19: Using List Controls ............................... 571
Using Data Providers .........................................................................................................574
Using hard-coded data providers ............................................................................575
Using dynamic data providers .................................................................................577
02_488959-ftoc.indd xvi02_488959-ftoc.indd xvi 3/5/10 2:17 PM3/5/10 2:17 PM
xvii
Contents
Controlling List Item Labels ..............................................................................................579
Using the labelField property ..................................................................................579
Using the labelFunction property ............................................................................582
List Control Events and Properties ....................................................................................584
Handling User Data Selections ..........................................................................................585
Using the change event ...........................................................................................585
Using the selectedItem property ..............................................................................585
Using the selectedIndex property ............................................................................587
Selecting complex data objects ................................................................................588
Using Custom Item Renderers ...........................................................................................590
Using drop-in item renderers ..................................................................................591
Using inline renderers and editors ...........................................................................593
Using component item renderers ............................................................................597
Customizing Spark item renderers with view states .................................................600
Summary ..........................................................................................................................602
Chapter 20: Using Advanced List Controls....................... 603
Using ComboBox and DropDownList Controls .................................................................603
Using the prompt property ......................................................................................604
Using the ComboBox control ..................................................................................605
Selecting complex data objects with ActionScript ....................................................607
Using the Spark ButtonBar control ..........................................................................611
Using the DataGrid Control ..............................................................................................613
Customizing the DataGrid display ...........................................................................614
Displaying custom labels in DataGrid column cells .................................................619
Advanced Item Renderers and Editors ..............................................................................622
Using the dataChange event ....................................................................................623
Using Spark item renderers .....................................................................................626
Using item editors ...................................................................................................627
Using List Controls with Horizontal and Tile Layout .........................................................635
Using the AdvancedDataGrid Control ...............................................................................641
Hierarchical data display .........................................................................................641
Grouping flat data ...................................................................................................644
Summary ..........................................................................................................................646
Chapter 21: Using the Flex Charting Controls .................... 647
Understanding Flex’s Types of Charts ...............................................................................648
Declaring Chart Controls ..................................................................................................650
Setting Chart Properties and Styles ....................................................................................652
Using pie charts ......................................................................................................652
Using financial charts ..............................................................................................663
Using bar, column, line, and area charts ..................................................................666
Summary ..........................................................................................................................673
02_488959-ftoc.indd xvii02_488959-ftoc.indd xvii 3/5/10 2:17 PM3/5/10 2:17 PM
xviii
Contents
Chapter 22: Working with Data Entry Forms ...................... 675
Using the Form Container .................................................................................................676
Using the FormHeading control ..............................................................................678
Using the FormItem container .................................................................................680
Setting a default button ...........................................................................................681
Using Custom Form Components .....................................................................................683
Creating a custom Form component .......................................................................683
Adding controls to a Form component ....................................................................685
Validating Data Entry ........................................................................................................687
Creating a validator object .......................................................................................688
Controlling validation with trigger events ................................................................688
Controlling validation with ActionScript .................................................................691
Controlling validation rules and error messages ......................................................695
Sharing Data with the Application .....................................................................................697
Modeling Form data with a value object ..................................................................697
Dispatching a custom event .....................................................................................699
Summary ..........................................................................................................................705
Chapter 23: Working with HTTPService and XML .................. 707
Using RPC and REST Architectures ...................................................................................708
Understanding the Representational State Transfer architecture ..............................708
Understanding the Remote Procedure Call architecture ...........................................709
Creating Data-Centric Applications with Flash Builder 4...................................................710
Creating and managing data connections ................................................................710
Defining a return data type ......................................................................................714
Binding returned data to visual controls ..................................................................719
Declaring and Configuring HTTPService Objects ..............................................................722
Creating an HTTPService object ..............................................................................722
Essential HTTPService properties ............................................................................723
Sending and Receiving Data ..............................................................................................727
Understanding asynchronous communications .......................................................727
Handling HTTPService responses ............................................................................727
Working with CallResponder and AsyncToken .......................................................736
Working with ItemResponder and AsyncToken ......................................................739
Working with Value Objects .............................................................................................741
Passing Parameters to Server Pages ....................................................................................744
Using named parameters .........................................................................................744
Using bound parameters .........................................................................................745
Handling Cross-Domain Policy Issues ...............................................................................746
Summary ..........................................................................................................................748
02_488959-ftoc.indd xviii02_488959-ftoc.indd xviii 3/5/10 2:17 PM3/5/10 2:17 PM
剩余1058页未读,继续阅读
111 浏览量
113 浏览量
111 浏览量
103 浏览量
点击了解资源详情
122 浏览量
点击了解资源详情
2009-02-28 上传
2011-01-04 上传
代码酷
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- XX工程火电施工与验收
- npp-markdown-monokai:Notepad++的Markdown语法高亮
- XX博览园综合开发商业计划书.zip
- starter_architecture_flutter_firebase:Flutter和Firebase实时应用程序的入门架构演示
- Basics-OpenCV
- MapInfoProfessional12 专业网管软件
- 公法、私法与经济法
- city-graph:一个网站,收集不来梅2015年雅各布斯哈克创建的城市的最新图像
- Analise-Turbinas-Artilleros:土耳其联邦调查局调查委员会
- 班39
- naninterp:NaN 上的一维插值。-matlab开发
- 湾沟特大桥施工方案
- lcqmc数据集,包括训练集,验证集和测试集
- 实验3 总线悬挂两个DS18B20之实物实验
- my_data_analysis:数据挖掘案例-第十一章应用系统负载分析与磁盘容量预测的程序实现-时间序列分析
- 结合html5jscss测试程序附
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功