- 浏览: 40855 次
- 性别:
- 来自: 上海
最新评论
Flex的根对象就是SystemManager,而不是我们平常看到的Application。
SystemManager是第一个在Flex应用中被创建的Display Class,继承自flash.dispaly.MovieClip,所以才能实现Preloader和Application的2个frame。
SystemManager有一个topLevelSystemManager对象,指向一个SystemManager实例,是所有当前在flash player运行的任何东西的根(root),如果flex被作为主应用加载到flash player则上述属性将指向其本身(self-refrencing),但当flex应用是被另一flex应用载入的,其自身的SystmenManager的topLevelSystemManager属性则不是自引用了,而是指向其父应用的SystemManager实例。所有UIComponent的子类都有一个systemManager属性指向应用的SystemManager实例,在被SystemManger实例监听的component的事件发生冒泡时,其将拥有事件处理链上最后的处理权。 Preloader
Preloader是一个轻量级的类,在systemManager的第一帧被实例化,preloader会dispatch出一系列的事件,由progress bar监听实现loading界面,一旦应用进入第二帧待application初始化后会借由system manager通知preloader初始化进度,preloader通知system manager其准备待删除,主要是一些初始化设定和下载runtime share library。
Preloader的事件:
progress
Indicates download progress
complete
Indicates that the download is complete
rslError
Indicates that a runtime shared library could not load
rslProgress
Indicates the download progress for a runtime shared library
rslComplete
Indicates that the download is complete for runtime shared libraries
initProgress
Indicates that the application is initializing
initComplete
Indicates that the application has initialized
在理解Preloader的同时也要反方向思考纯AS工程中如何做Preloader,以前就写过 AS3工程 Custom Preloader 动态加载 Application可以进行思考。 Application
Application是我们平日用到的最多的类,在systemManager的第二帧被实例化,它是一个单例化的类,因此无论你new多少个Class它都会指向同一个instance实体,根据创建时间的进度,它同样会dispatch出一系列的事件。
Application的事件:
preinitialize
application已经实例化但尚未创建任何child component
initialize
已经创建child component但未对其进行布局(lay out)
creationComplete
application已经完成实例化并完成所有child component的布局
applictionComplete
已经准备完成Flex SWF必要的初始化
发表评论
-
SQL Server2005截取字符串并操作
2012-07-06 09:51 618以前看过别人写的,但是实在记不起来是怎么写的了,今天自己写 ... -
用正则表达式验证密码强度
2012-07-06 09:45 767项目中有个需要验证密码强度,我对正则表达式并不熟悉,每次都 ... -
shell脚本系列-正则表达式介绍
2012-07-06 09:37 661正则表达式介绍 随着对UNIX和LINUX熟悉程度的不 ... -
Symbian 更换主题
2012-07-06 09:30 701http://wiki.forum.nokia.com/i ... -
JS 正则表达式各种验证
2012-07-05 20:45 715判断手机的: ... -
Android组件相关概念总结
2012-07-03 13:43 682Android 手机操作系 ... -
flex ant 例子
2012-07-02 10:31 509Flex Ant Task" def ... -
Flex之数据格式化
2012-07-02 10:31 626数据格式化是对某 ... -
flex 日期下拉框,选择一段日期
2012-07-02 10:31 610在一般网页的制作过程中,我们做的程序,日期选择框,通过js ... -
SWFAddress实现Flex深度链接(不同模块具有不同的URL)
2012-07-02 10:30 571众所周知,Flex明显区别于传统B/S开发模式的特性中,有 ... -
The architecture of Flex and Java applications two (Flex 和 Java 应用程序架构 2)
2012-07-01 00:09 576Flex and Java application ... -
Flex4中 一个使用Module的例子
2012-07-01 00:09 603使用Flex的Module技术, 将各个业务子模块分散成若 ... -
flex linkbutton 数据加载
2012-07-01 00:09 756类似于导航条的一种。 flex/spark& ... -
Flex加载flash_as3_swf,并响应其中的按钮事件
2012-07-01 00:09 776注:flash_as3_swf里的源码里有一个btn_fu ...
相关推荐
HP Application Lifecycle Management QC 11安装配置要求,包括操作系统,应用程序服务器,数据库服务器,web服务器。
Professional Application Lifecycle Management with Visual Studio 2013 英文mobi 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
生命周期(LifeCycle)简述 关于组件实例化生命周期 描述执行的序列步骤,当你从一个组件类创建一个组件时。作为生命周期的一部分,Flex自动调用组件方法,分发事件,使组件可视。
Pro Visual Studio Team System Application Lifecycle Management即Visual Studio Team System应用程序声明周期专业管理。
Windows Phone 8 JumpStart Module 5 Application Lifecycle Demo
Beginning Application Lifecycle Management is a guide to an area of rapidly growing interest within the development community: managing the entire cycle of building software. ALM is an area that spans...
hp非常有名的qc升级版ALM11.5 的中文版下载地址。。 直接将地址拷贝进迅雷即可下载
HP Application Lifecycle Management
Professional Application Lifecycle Management with Visual Studio 2013 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Professional Application Lifecycle Management with Visual Studio 2013 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 ...
WIN2003R2+SQL Server2005 SP4+HP Application Lifecycle Management配置详细过程,绝对安装成功。
deploying applications from development computers to test environments. Simi- larly, this guide also provides recommendations for deploying to staging servers as part of the release process.
Agile Application Lifecycle Management (ALM) is a comprehensive development lifecycle that encompasses essential Agile principles and guides all activities needed to deliver successful software or ...
NULL 博文链接:https://olive009.iteye.com/blog/1678224
The authors provide many practical examples and rely on their considerable experience with enterprise Flex applications to help you overcome challenges during your project's lifecycle. With this ...
Containerized-Docker-Application-Lifecycle-with-Microsoft-Platform-and-Tools
Wrox.Professional.Application.Lifecycle.Management.with.Visual.Studio.2010.Apr.2010.part1.rar
Wrox.Professional.Application.Lifecycle.Management.with.Visual.Studio.2010.Apr.2010.part2.rar
Android Lifecycle for application developers Guidelines and Tips