![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
flex
Peter0561
iOS攻城狮
展开
-
difference between updateDisplaylist() and CommitProperties()
Commitproperties =>*commitProperties() processes the properties set on the component. You do not call this method directly. Flex calls the commitProperties() method when you use the addChild() method转载 2011-11-18 09:57:53 · 833 阅读 · 0 评论 -
Flex中label换行
Flex中label换行有两种情况在AS中赋值:label.text="Online\r\nResources"在mxml中赋值:text="Online Resources"在flash builder中就可以换行显示了。左右有四种对齐方式,上下四种对齐方式。也就是说mx中的label不支持,spark空间中的label就支持。如下面中转载 2011-11-28 16:04:56 · 2773 阅读 · 0 评论 -
[flex]validator的样式设置
在使用validator的时候往往字体很小,几乎看不清楚错误信息,为此在网上搜了下修改方法,使用CSS控制该样式能很好解决这个问题.errorTip{ fontFamily: Impact;fontSize: 12;color:#fff;borderColor: #0f0;}字体fontFamily,字号fontSize,文字颜色color背景色bo原创 2011-11-08 14:54:13 · 907 阅读 · 0 评论 -
FLex3中弹出窗口包含TabNavigator时标签页的标题可能显示不完全的问题及解决方法
Application的代码如下[xhtml] view plaincopyxml version="1.0" encoding="utf-8"?> mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> mx:Script>转载 2012-03-26 14:08:12 · 1579 阅读 · 0 评论 -
flex中dictionary跟Object的区别与遍历
AS3中Object和 Dictionary都可以用来保存key-value形式的数据,Dictionary类和Object唯一的区别在于:Dictionary对象可以使用非字符串作为键值对的键。例如:[javascript] view plaincopyvar obj:Object = new Object(); obj["name"] =转载 2012-03-27 09:30:58 · 698 阅读 · 0 评论 -
Flex本地文件的导入导出
利用FileReference进行本地文件的导入导出(以XML文件为例)var fileLoader:FileReference = new FileReference();导出导出的XML文件var data:xml = new xml("this is a sample");fileLoader.save(data, "sample");选择目录,确定文件名就可原创 2012-04-06 14:37:00 · 1446 阅读 · 0 评论 -
Flex的ToggleButtonBar出现。。。问题
Flex的ToggleButtonBar在弹出窗口中第一页的label会出现...的问题,原因是因为它测量的长度不够,这在我的另一篇文章(地址:http://blog.csdn.net/gaopeng62524/article/details/7394852)中有详细解释,并给出了集中解决方案,现在又发现一种解决方案:在Popup页面的creationComplete方法中执行以下代码;v原创 2012-05-11 12:02:45 · 1066 阅读 · 0 评论