框架运行时共享库 module载入失败 一种解决方法
作者:Admin 日期:2009-06-19
frames.frame label class_name [...] 编译器指令
作者:Admin 日期:2008-09-22
Canvas不能接收 rollOver和roolOut事件的解决方案
作者:Admin 日期:2008-09-18
一个没有任何内容的透明 Canvas 不能触发rollOver和roolOut事件的侦听器函数,比如下面这个程序
程序代码
程序代码<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas id="canvas" x="10" y="10" width="200" height="200"
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas id="canvas" x="10" y="10" width="200" height="200"
Flex 3框架中容器的边框,背景色和背景图片是如何实现的?
作者:Admin 日期:2008-09-17
以下分析都从flex 3源代码推出,不一定正确!希望能和有兴趣的朋友一起探讨。
Flex 3 框架中,容器的边框,背景色和背景图片是由容器的borderSkin 类(为了叙述方便,假设我们为容器定义了一个样式borderSkin: ClassReference("mx.skins.halo.HaloBorder"))来负责的,容器类如果检测到需要边框,背景色或者背景图片,容器会在自己内部建立一个HaloBorder类型的对象(
程序代码
Flex 3 框架中,容器的边框,背景色和背景图片是由容器的borderSkin 类(为了叙述方便,假设我们为容器定义了一个样式borderSkin: ClassReference("mx.skins.halo.HaloBorder"))来负责的,容器类如果检测到需要边框,背景色或者背景图片,容器会在自己内部建立一个HaloBorder类型的对象(
程序代码border = new mx.skins.halo.HaloBorder();
// Add the border behind all the children.
// Add the border behind all the children.
Flex样式工作原理分析 Part Two(完结)
作者:admin 日期:2008-09-08
在Flex样式工作原理分析 Part One中,我们分析了组件是如何获得样式信息的,下面来谈一下设置样式是如何工作的。
每当组件需要重新设置自己的样式时(比如说调用了setStyle()方法或者设置了styleName属性),组件的styleChanged(styleProp:String)方法就会被调用,然后我们在styleChanged(styleProp:String)方法体里面根据参数styleProp的值的不同来对组件的样式做出相应的处理。那么什么时候组件的styleChanged(styleProp:String)方法会触发呢?下面介绍如下
每当组件需要重新设置自己的样式时(比如说调用了setStyle()方法或者设置了styleName属性),组件的styleChanged(styleProp:String)方法就会被调用,然后我们在styleChanged(styleProp:String)方法体里面根据参数styleProp的值的不同来对组件的样式做出相应的处理。那么什么时候组件的styleChanged(styleProp:String)方法会触发呢?下面介绍如下
Flex样式工作原理分析 Part One
作者:admin 日期:2008-09-08
在浅析Flex启动过程一文曾说到过
程序代码
Flex编译器编译时会生成很多 有[Mixin]元标签的类 其中大部分类都与样式有关,象下面这些
程序代码
类,他们的作用就是把样式信息注册到 StyleManager,这样在生成组件的时候组件能得到自己的样式信息。
程序代码播放头前进到第二桢,docFrameHandler 函数开始执行。
首先会执行很多Singleton.registerClass方法,然后执行有[Mixin]元标签的类的
public static function init(fbs:IFlexModuleFactory):void 方法
首先会执行很多Singleton.registerClass方法,然后执行有[Mixin]元标签的类的
public static function init(fbs:IFlexModuleFactory):void 方法
Flex编译器编译时会生成很多 有[Mixin]元标签的类 其中大部分类都与样式有关,象下面这些
程序代码"_alertButtonStyleStyle", "_ScrollBarStyle",
"_activeTabStyleStyle", "_textAreaHScrollBarStyleStyle",
"_ToolTipStyle", "_advancedDataGridStylesStyle",
"_comboDropdownStyle", "_comboDropDownStyle",
"_ContainerStyle", "_textAreaVScrollBarStyleStyle",
"_linkButtonStyleStyle", "_globalStyle", "_windowStatusStyle",
"_windowStylesStyle", "_activeButtonStyleStyle",
"_errorTipStyle", "_richTextEditorTextAreaStyleStyle",
"_CursorManagerStyle", "_todayStyleStyle", "_dateFieldPopupStyle",
"_plainStyle", "_dataGridStylesStyle", "_ApplicationStyle",
"_headerDateTextStyle", "_ButtonStyle", "_VScrollBarStyle",
"_popUpMenuStyle", "_swatchPanelTextFieldStyle",
"_opaquePanelStyle", "_weekDayStyleStyle", "_headerDragProxyStyleStyle"
"_activeTabStyleStyle", "_textAreaHScrollBarStyleStyle",
"_ToolTipStyle", "_advancedDataGridStylesStyle",
"_comboDropdownStyle", "_comboDropDownStyle",
"_ContainerStyle", "_textAreaVScrollBarStyleStyle",
"_linkButtonStyleStyle", "_globalStyle", "_windowStatusStyle",
"_windowStylesStyle", "_activeButtonStyleStyle",
"_errorTipStyle", "_richTextEditorTextAreaStyleStyle",
"_CursorManagerStyle", "_todayStyleStyle", "_dateFieldPopupStyle",
"_plainStyle", "_dataGridStylesStyle", "_ApplicationStyle",
"_headerDateTextStyle", "_ButtonStyle", "_VScrollBarStyle",
"_popUpMenuStyle", "_swatchPanelTextFieldStyle",
"_opaquePanelStyle", "_weekDayStyleStyle", "_headerDragProxyStyleStyle"
类,他们的作用就是把样式信息注册到 StyleManager,这样在生成组件的时候组件能得到自己的样式信息。
浅析Flex启动过程
作者:admin 日期:2008-09-08
假设我们的Flex工程的主文件为Main.mxml,当Flex3编译时会生成一个 _Main_mx_managers_SystemManager extends mx.managers.SystemManager 的类(提示:mx.managers.SystemManager extends MovieClip) ,该类即为主类。当使用 flash player播放main.swf文件时首先载入_Main_mx_managers_SystemManager类,执行该类的构造函数。
在构造函数中 首先会设置
程序代码
并停在第一桢(SystemManager 一空有两桢,当前flex3版本是这样,flex以后的版本是否会改变就不得而知了)
在构造函数中 首先会设置
程序代码stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.align = StageAlign.TOP_LEFT;
并停在第一桢(SystemManager 一空有两桢,当前flex3版本是这样,flex以后的版本是否会改变就不得而知了)
引用内容