Flex 3.X to Flex 4.X Migration 组件列表

本文提供了一种逐步迁移方法,指导如何将Flex 3.4项目迁移到Flex 4.5。步骤包括选择单一模块进行迁移、更新命名空间、替换组件等。还介绍了Flex 4.5中新引入的特性,如Spark组件和改进的编译器性能。
[b]1.1 Flex 3.4 to Flex 4.5 migration:[/b]
Methodology / Approach: Incremental migration
Step 1: Choose a single module and remove all other modules in the project
Step 2: Point the project to Flex 4.5 SDK
Step 3: Change the required changes to the code in the module (Ref: 1.2)
Step 4: Replace the Flex 3.4 components with Flex 4.5 Counter Components of Flex 4.5 (Ref: 1.3)
Step 5: Apply the Spark Skinning to the required components
Step 6: Once the changes are done then compile and build the project
Step 7: If errors occurs debug and resolve the error
Step 8: Follow the same approach for all modules / application

[b]1.2 Namespace Change:[/b]
Change the name spaces to the following
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"

[b]1.3 Component mapping:[/b]
Flex 3 MX components and their Flex 4 Spark counterparts:
Flex 3 MX Component Flex 4 Spark Component
mx.controls.Button spark.components.Button
mx.controls.ButtonBar spark.components.ButtonBar
mx.controls.CheckBox spark.components.CheckBox
mx.controls.ComboBox spark.components.DropDownList (w/o editability)
mx.controls.HorizontalList spark.components.List (with a HorizontalLayout)
mx.controls.HRule spark.primitives.Line
mx.controls.HScrollBar spark.components.HScrollBar
mx.controls.HSlider spark.components.HSlider
mx.controls.Image spark.primitives.BitmapImage (w/o support for external images)
mx.controls.LinkBar spark.components.ButtonBar (with a custom skin)
mx.controls.LinkButton spark.components.Button (with a custom skin)
mx.controls.List spark.components.List
mx.controls.NumericStepper spark.components.NumericStepper
mx.controls.RadioButton spark.components.RadioButton
mx.controls.RadioButtonGroup spark.components.RadioButtonGroup
mx.controls.TextArea spark.components.TextArea
mx.controls.TabBar spark.components.TabBar
mx.controls.TextInput spark.components.TextInput
mx.controls.TileList spark.components.List (with a TileLayout)
mx.controls.ToggleButtonBar spark.components.ButtonBar
mx.controls.VideoDisplay spark.components.VideoPlayer
mx.controls.VRule spark.primitives.Line
mx.controls.VScrollBar spark.components.VScrollBar
mx.controls.VSlider spark.components.VSlider
mx.core.Application spark.components.Application
mx.core.Window spark.components.Window
mx.core.WindowedApplication spark.components.WindowedApplication
mx.containers.ApplicationControlBar spark.components.Application (with the controlBarContent)
mx.containers.Canvas spark.components.Group
mx.containers.ControlBar spark.components.Panel (with the controlBarContent property)
mx.containers.HBox spark.components.HGroup
mx.containers.Panel spark.components.Panel
mx.containers.Tile spark.components.Group (with a TileLayout)
mx.containers.VBox spark.components.VGroup

Note: While replacing the components, please make sure that it won’t break the existing functionality

[b]1.3 Components and containers that do not currently have direct Spark equivalent classes.[/b]
mx.controls.Alert
mx.controls.ColorPicker
mx.controls.DataGrid
mx.controls.DateChooser
mx.controls.DateField
mx.controls.Menu
mx.controls.MenuBar
mx.controls.PopUpButton
mx.controls.PopUpMenuButton
mx.controls.ProgressBar
mx.controls.RichTextEditor
mx.controls.Tree
mx.containers.Accordion
mx.containers.DividedBox
mx.containers.Form
mx.containers.Grid
mx.containers.TabNavigator
mx.containers.TitleWindow
mx.containers.ViewStack


1.4 Major Differences between Flex 3.x and Flex 4.5:

S.No. Feature Flex 3. x Flex 4.x

1 Compiler
Poor performance than Flex4 compiler
Great improved compiler performance



2 Packages available

3 Flash Player
Some features of flash player 10 are not supported (i.e. Graphical)
Supports all features of flash player 10

4 SDK Code Name
Moxie
Gumbo

5 Components
Halo Components default Supports both
Halo and Spark Components

6 Components Skinning Enhancements
Design and behavior of component is included inside and integrated.
Design and behavior is clearly separated to create a smooth workflow among designing And development.


7 Layout Model
N / A



8 Adobe Catalyst
N / A


9 New Spark Components & Capabilities N / A New Components like Spark Validators,Spark Formatters, Spark Form , Spark Data Grid etc., introduced

10 RSL Linking Standard RSL linking Logic Improved RSL linking Logic
提供了一个基于51单片机的RFID门禁系统的完整资源文件,包括PCB图、原理图、论文以及源程序。该系统设计由单片机、RFID-RC522频射卡模块、LCD显示、灯控电路、蜂鸣器报警电路、存储模块和按键组成。系统支持通过密码和刷卡两种方式进行门禁控制,灯亮表示开门成功,蜂鸣器响表示开门失败。 资源内容 PCB图:包含系统的PCB设计图,方便用户进行硬件电路的制作和调试。 原理图:详细展示了系统的电路连接和模块布局,帮助用户理解系统的工作原理。 论文:提供了系统的详细设计思路、实现方法以及测试结果,适合学习和研究使用。 源程序:包含系统的全部源代码,用户可以根据需要进行修改和优化。 系统功能 刷卡开门:用户可以通过刷RFID卡进行门禁控制,系统会自动识别卡片并判断是否允许开门。 密码开门:用户可以通过输入预设密码进行门禁控制,系统会验证密码的正确性。 状态显示:系统通过LCD显示屏显示当前状态,如刷卡成功、密码错误等。 灯光提示:灯亮表示开门成功,灯灭表示开门失败或未操作。 蜂鸣器报警:当刷卡或密码输入错误时,蜂鸣器会发出报警声,提示用户操作失败。 适用人群 电子工程、自动化等相关专业的学生和研究人员。 对单片机和RFID技术感兴趣的爱好者。 需要开发类似门禁系统的工程师和开发者。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值