2009-04-05
Attest是一个用AIR写的9A0-082的模拟测试软件,做了mini1和mini2,天哪,很多知识点都没有看到。FlexBuilder的帮组文档大致的看,有重点的看,看了几遍,还是有很多东西跟本没注意到。通过做mini1,mini2发现很多小的细节,比如static变量,常量的使用啊,常用类的API,属性之类的,真的没注意。直接流用了Java的思维。
上班的时候总结了mini1的一部分,苦于不敢上中文网站,还是之后一点一点补上吧。
这次学Flex AIR真是......几乎95%的学习过程都是日本或英文的文档和资料,相对中文还是慢啊。不打算买书,坚持OSS(Open Source Software)的理念,俺就看免费的文档资料吧。
2009-04-23
每天在公司都会抽时间根据考点看flex builder help。有时候怀疑考它何用,花太多的时间去背下考点上的每个小细节......
闲了1个月后,给了一个活,很讨厌,google gadget,没用过还得重新研究。
[size=large][b]1.ContextMenuEvent, MenuEvent, Event(NativeMenu)[/b] [/size]
[color=red]flash.events.ContextMenuEvent(ContextMenu)[/color]
MENU_ITEM_SELECT(ContextMenuItem)
MENU_SELECT(ContextMenu)
[color=red]mx.events.MenuEvent(Menu)[/color]
CHANGE(The Object that dispatched the event)
ITEM_CLICK(The Object that dispatched the event)
ITEM_ROLL_OUT(The Object that dispatched the event)
ITEM_ROLL_OVER(The Object that dispatched the event)
MENU_HIDE(The Object that dispatched the event)
MENU_SHOW(The Object that dispatched the event)
[color=red]flash.events.Event(NativeMenu)[/color]
DISPLAYING(The object that is about to be displayed.)
SELECT(The object on which an item has been selected.)
[size=large][b]2.tile layout[/b][/size]
tileHeight 和 tileWidth 显示的声明每个cell的height, width.
每个cell的默认height, width 是所有child中tallest和widest的。
如果默认的height, width 比显示生命的大,截取,否则,显示于左上。
也可以用percentage.
[size=large][b]3.Effect font[/b][/size]
[color=red]Fade,Rotate[/color] effect 必须是 embedded font, 不可以是device font
[color=red]Zoom[/color] 则system font和embedded font 均可
[size=large][b]4.Filter[/b][/size]
BevelFilter
BitmapFilter
BitmapFilterQuality
BitmapFilterType
BlurFilter
ColorMatrixFilter
ConvolutionFilter
DisplacementMapFilter
DisplacementMapFilterMode
[color=red]DropShadowFilter[/color]
GlowFilter
GradientBevelFilter
GradientGlowFilter
[color=red]ShaderFilter[/color]
[size=large][b]5.6.BlendMode[/b][/size]
BlendMode.NORMAL[color=red](默认 当前颜色覆盖背景颜色)[/color]
BlendMode.LAYER
BlendMode.MULTIPLY[color=red](commonly used for shadows and depth effects)[/color]
BlendMode.SCREEN[color=red](This setting is commonly used for highlights or to remove black areas of the display object.)[/color]
BlendMode.LIGHTEN[color=red](0xFFCC33 和 0xDDF800 → 0xDDF833最大值. commonly used for superimposing type)[/color]
BlendMode.DARKEN[color=red](0xFFCC33 和 0xDDF800 → 0xDDCC00最小值. commonly used for superimposing type)[/color]
BlendMode.DIFFERENCE[color=red](0xFFCC33 和 0xDDF800 → 0x222C33差的绝对值. commonly used for more vibrant colors)[/color]
BlendMode.ADD[color=red](0xAAA633 和 0xDD2200 → 0xFFC833求和不超过FF. used for animating a lightening dissolve between two objects)[/color]
BlendMode.SUBTRACT[color=red](背景0xDDA600 - 当前0xAA2233 = 0x338400不小于00. used for animating a darkening dissolve between two objects)[/color]
BlendMode.INVERT[color=red](0xFFFFFF - 背景颜色)[/color]
BlendMode.ALPHA[color=red](显示对象的alpha为0,需要显示对象的parent为BlendMode.LAYER)[/color]
BlendMode.ERASE[color=red](erase background. in the illustration, the parent display object, which is a white background, has blendMode = BlendMode.LAYER.)[/color]
BlendMode.OVERLAY[color=red](based on the darkness of the background. a lighter color or a darker color. commonly used for shading effects)[/color]
BlendMode.HARDLIGHT[color=red](based on the darkness of the display object. a lighter color or a darker color. commonly used for shading effects)[/color]
BlendMode.SHADER[color=red](N/A can not referrence from Flex Builder)[/color]
[size=large][b]7.8.metadataタグ[/b][/size]
metadata tag不被编译进可执行代码,但是编译时为编译器提供解释,执行时不被解释。
Event,Effect定义在root的<mx:Metadata>里,Bindable,Embed定义在<Script>里
[Event(name="enableChanged", type="flash.events.Event")]
「enableChanged」和Event对象中的type值一样
自定义组件as类前加Eventメタデータタグ或自定义MXML组件的Root Tag里定义Metadata Tag, 自定义MXML组件可以声明inline的enableChanged事件
[Effect(name="enableChangedEffect", event="enableChanged")]
[Bindable(event="enableChanged")]
event省略时,propertyChange Event
[Embed(source="logo.gif")]
[size=large][b]9.root组件不能添加id属性[/b][/size]
[size=large][b]10.Style[/b][/size]
Style定义方法:inline的property, type selector, class selector。自定义组件中不可以定义type selector
[size=large]
[b]11.getter/setter accessor[/b][/size]
accessed like properties, refered to as getter/setter, 因为变量可以继承不可以覆盖,getter/setter可以覆盖,则相当于覆盖了变量。
[size=large][b]12.访问标识符[/b][/size]
protected除了本class外,可以被子类访问,不可以被本包class访问。
internal(或没有)除了本class外,可以被本包class访问,不可被子类访问。
相关资源:win7 MINI2440 USB下载驱动