易截截图软件、单文件、免安装、纯绿色、仅160KB

Flex 4 :使用 Halo 主题

此例展示了如何在 Flex 4 中为 Halo 控件设置旧的 Halo 皮肤,而不是新的 Spark 皮肤。
<?xml version="1.0" encoding="utf-8"?>
<!-- http://www.slsay.com/archives/131 -->
<s:Application name="Spark_Halo_theme_test"
       xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/halo">
 
    <s:VGroup horizontalCenter="0" verticalCenter="0" >
        <s:Button id="sBtn"
               label="I'm a Spark Button" />
 
        <mx:Button id="hBtn"
               label="I'm a Halo Button" />
    </s:VGroup>
 
</s:Application>
最后,需要用 halo.swc 主题改变 Flex 编译器的参数:
在 Flash Builder 4 的主菜单中选择 Project -> Properties
从左边的菜单中选择 Flex 编译器
在 Additional compiler arguments 中,添加如下参数:
    -theme=${flexlib}/themes/Halo/halo.swc
点击 OK 按钮,应用更改并关闭对话框
重新编译并运行应用程序
英文原文:http://blog.flexexamples.com/2009/07/14/using-the-halo-theme-in-flex-4/
本文转自:http://www.slsay.com/archives/131


相关文档:

flex特效

这里面有许多特效很酷,希望对大家有帮助。 1.旋转 效果:http://www.alex-uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/ 代码:http://weblogs.macromedia.com/auhlmann/archives/DistortionEffects.zip
2.画布按钮 http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-added-to-flexlib/ ......

flex 嵌入简单的html

<mx:TextArea
width=
"200"
height=
"100"
>
<mx:htmlText>
This is an example of setting a <B>
TextArea</B>
control's <I>
htmlText<I>
property.
</mx:htmlText>
</mx:TextArea>
支持的样式标记
< ......

flex图片加载处理

http://www.zhuoqun.net/html/y2008/1042.html加载图片
http://www.millionclouds.com/浏览图片
http://www.scion.com/#home卖车
http://labs.newmediateam.com/pizzastore/customerview/卖披萨
http://www.sumo.fi/flash/sumopaint/线图片编辑器
http://www.prettyloaded.com/各种预加载效果
http://www.adobecards. ......

了解一下Flex 4里的fx、mx以及s命名空间【转帖】

Flex 4带给我们的,是全新的命名空间。了解这些命名空间必定是一件好事情。Flex 4有三个非常重要的命名空间,分别是:
xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:mx=”library://ns.adobe.com/flex/halo”
xmlns:s=”library://ns.adobe.com/flex/spark”
1、xmlns:fx=&rdqu ......

FLEX实践—FLEX4中Theme Halo应用(一)

Flex4和Flex3的区别在这里就不多说了,有兴趣可以上网找资料。
本次的实践将通过测试用例来说明Flex4中不同Theme的应用效果
在Flash Builder4中出现了两个命名空间
xmlns:s="library://ns.adobe.com/flex/spark" 
xmlns:mx="library://ns.adobe.com/flex/halo"
相应的,控件也出现了两种不同的风格,创建Theme.mx ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号