专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Flex

flex4中的controlBarContent解决思路

发布时间:2011-06-27 20:47:11 文章来源:www.iduyao.cn 采编人员:星星草
flex4中的controlBarContent
在FLEX4中,以前的ApplicationControlBar 已经被controlBarContent取代,一个页面中好象只能有一个,而且默认只能放在上方。

现在我想在屏幕上方和下方各放一个controlBarContent应该怎么弄?或者有没有其它类似的具有过渡背景色的控件?

------解决方案--------------------
hh.太程序化了 ,不懂了







搞笑短信铃声下载
星座缘分指数测试
最流行网络歌曲 mp3
在线杀毒金山毒霸2011
星座配对测试指数
------解决方案--------------------
懂不起 我是来的积分的
------解决方案--------------------
帮顶..................
------解决方案--------------------
flex 4没用过,帮顶

你可以试试controlbar
------解决方案--------------------
sdfsadfasdf
------解决方案--------------------
懂不起 我是来的积分的
------解决方案--------------------
顶顶顶顶顶顶顶顶顶顶顶
------解决方案--------------------
探讨
顶顶顶顶顶顶顶顶顶顶顶

------解决方案--------------------

------解决方案--------------------
sdtmd
------解决方案--------------------
支持一下
------解决方案--------------------
dsadasdasdasdasd
------解决方案--------------------
dsadasdsadasddsad
------解决方案--------------------
xzczxcxzcxzczxcxzcxz
------解决方案--------------------
sklsjlkf
------解决方案--------------------
以下代码供参考:

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2010/04/21/setting-the-height-of-the-control-bar-in-a-spark-application-container-in-flex-4/ -->
<s:Application name="Spark_Application_controlBarGroup_height_test"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:controlBarContent>
<mx:Form backgroundAlpha="0.3" backgroundColor="red"
creationComplete="sldr.value = controlBarGroup.height;">
<mx:FormItem label="controlBarGroup.height:" direction="horizontal">
<s:HSlider id="sldr"
minimum="30" maximum="150"
change="controlBarGroup.height = sldr.value;" />
<s:Label id="txt"
fontWeight="bold"
enterFrame="txt_enterFrameHandler(event);" />
</mx:FormItem>
</mx:Form>
</s:controlBarContent>
<s:layout>
<s:VerticalLayout paddingLeft="20" paddingTop="20" />
</s:layout>
 
<fx:Script>
<![CDATA[
protected function txt_enterFrameHandler(evt:Event):void {
if (controlBarGroup) {
txt.text = controlBarGroup.height.toString();
}
}
]]>
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: