- 浏览: 1129626 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (411)
- Java Foundation (41)
- AI/机器学习/数据挖掘/模式识别/自然语言处理/信息检索 (2)
- 云计算/NoSQL/数据分析 (11)
- Linux (13)
- Open Source (12)
- J2EE (52)
- Data Structures (4)
- other (10)
- Dev Error (41)
- Ajax/JS/JSP/HTML5 (47)
- Oracle (68)
- FLEX (19)
- Tools (19)
- 设计模式 (4)
- Database (12)
- SQL Server (9)
- 例子程序 (4)
- mysql (2)
- Web Services (4)
- 面试 (8)
- 嵌入式/移动开发 (18)
- 软件工程/UML (15)
- C/C++ (7)
- 架构Architecture/分布式Distributed (1)
最新评论
-
a535114641:
LZ你好, 用了这个方法后子页面里的JS方法就全不能用了呀
页面局部刷新的两种方式:form+iframe 和 ajax -
di1984HIT:
学习了,真不错,做个记号啊
Machine Learning -
赵师傅临死前:
我一台老机器,myeclipse9 + FB3.5 可以正常使 ...
myeclipse 10 安装 flash builder 4.6 -
Wu_Jiang:
触发时间在将来的某个时间 但是第一次触发的时间超出了失效时间, ...
Based on configured schedule, the given trigger will never fire. -
cylove007:
找了好久,顶你
Editable Select 可编辑select
How to find an ArrayCollection item with a specific property value?牛!
http://stackoverflow.com/questions/1566145/how-to-find-an-arraycollection-item-with-a-specific-property-value
上帖中有两种实现方式:一是通过Array的filter(),二是通过ArrayCollection的filterFunction;不得不说,这个帖子真好!下面是参考上帖后使用第一种方式的本地业务实现:
Removing items from a Flex DataGrid control using the DragManager class:
http://blog.flexexamples.com/2008/04/16/removing-items-from-a-flex-datagrid-control-using-the-dragmanager-class/comment-page-1/#comment-9253
flex中的beanutil.copyproperties:
http://www.kensodev.com/2010/06/22/copy-object-properties-to-another-object-flex/
FLEX中的eval:
http://nsdevaraj.wordpress.com/2008/03/18/eval-in-as3/
设置enable,可以用来简单的防止重复提交:
Disabling a Spark Application container in Flex 4:
http://blog.flexexamples.com/2009/08/14/disabling-a-spark-application-in-flex-4/
Disabling user input in a Flex Application:
http://blog.flexexamples.com/2008/02/20/disabling-user-input-in-a-flex-application/
为控件的 enabled={boolExp} 设置多个boolExp 且操作判断项:
http://thanksmister.com/?p=45
Flex StringValidator的maxLength 和 可输入控件的maxChars 都是用来检测输入域输入的字符数的(一个中文就是一个字符)。这里给出一个检测输入域字节长度的方法:
Trimming strings using the Flex StringUtil class’s trim() method:
http://blog.flexexamples.com/2007/09/07/trimming-strings-using-the-flex-stringutil-classs-trim-method/
当Datagrid中列非常多时,默认的横向滚动策略下,横向滚动条会是可伸缩的,导致纵向滚动条在可见区域中看不见,即使你配了 height="100%" width="100%";此时可通过为datagrid加上 minWidth参数设置(minWidth="像素数")让其横向滚动条的长度固定。
当datagrid列很多,数据量也很大时,datagrid的滚动条反映会很迟钝,凸显出严重的性能问题。解决大数据量/很多列 datagrid滚动性能问题的办法:
Flex Smooth Scrolling DataGrid:
http://hash-pipe.com/2008/11/flex-smooth-scrolling-datagrid/
http://blogs.adobe.com/aharui/2008/11/faster_datagrid_horizontal_scr.html
动态调整DataGrid列的显示:
http://www.cnblogs.com/ping58/archive/2010/05/27/1745579.html
FLex datagrid list等的行style(背景色/字体/加粗等)设置:
通过itemrender让datagrid中选定的行的字体变粗:
Flex DataGrid Selected Row Styling:
http://www.switchonthecode.com/tutorials/flex-datagrid-selected-row-styling
List/ComboBox Row Backgrounds in Flex:
http://www.barneyb.com/barneyblog/2007/06/22/listcombobox-row-backgrounds-in-flex/
http://blog.csdn.net/terryzero/archive/2010/02/23/5321002.aspx
通过工厂去创建datagrid列的itemrender;适用为动态增加的datagridcolumn添加itemrender:
DIFFERENT ROWS IN DATAGRID – PROGRAMMATICALLY ADDED ITEMRENDERERS (CLASSFACTORY AND IFACTORY):
http://www.flexer.info/2009/01/09/different-rows-in-datagrid-programmatically-added-itemrenderers-classfactory-and-ifactory/
Flex datagrid/advancedatagrid按条件显示行的背景颜色:
http://blog.csdn.net/cfhacker007/archive/2010/08/03/5784523.aspx
Flex使用弹出窗口为DataGrid添加新数据:
http://www.iteye.com/topic/356788
设置s:NavigatorContent的vislble和includeInLayout:
http://stackoverflow.com/questions/3755806/flex-is-it-possible-to-hide-some-tabs-in-tab-navigator-and-show-them-only-when-c
http://whatsmytitletoday.blogspot.com/2009/06/flex-hide-and-show-tab-in-tabnavigator.html
Flex中ArrayCollection的克隆:
Cloning ArrayCollection:
http://jodieorourke.com/view.php?id=105&blog=news
为一个arrayCollection指定多个filterFunction:
ArrayCollection with multiple filter functions:
http://blog.rotundu.eu/flex/arraycollection-with-multiple-filter-functions/
Finding substrings and patterns in strings:
http://livedocs.adobe.com/flex/3/html/help.html?content=09_Working_with_Strings_09.html
TabBar 和 LinkBar例子:
http://learn.adobe.com/wiki/display/Flex/TabBar+and+LinkBar
Determining when an ArrayCollection changes in Flex:
http://blog.flexexamples.com/2008/05/14/determining-when-an-arraycollection-changes-in-flex/
http://stackoverflow.com/questions/1566145/how-to-find-an-arraycollection-item-with-a-specific-property-value
上帖中有两种实现方式:一是通过Array的filter(),二是通过ArrayCollection的filterFunction;不得不说,这个帖子真好!下面是参考上帖后使用第一种方式的本地业务实现:
引用
protected function updateDevPosEventListener(event:Event):void { var win:AdjustDevicePosition = event.target as AdjustDevicePosition; //binding updated dev‘s position prop var newDeviceAC:ArrayCollection = win.deviceAC as ArrayCollection; for(var i:int=0; i<newDeviceAC.length; i++) { var newDeviceVo:FidsDeviceVo = newDeviceAC.getItemAt(i) as FidsDeviceVo; var deviceVo:FidsDeviceVo = findVoInDeviceAC(deviceAC, findId(newDeviceVo.id)) as FidsDeviceVo; deviceVo.position = newDeviceVo.position; } PopUpManager.removePopUp(win); } public function findVoInDeviceAC(c:ArrayCollection, find:Function):Object { var matches : Array = c.source.filter( find ); return ( matches.length > 0 ? matches[0] : null ); } public function findId(id:String):Function { return function( element:*, index:int, array:Array ):Boolean { return element.id == id; } }
Removing items from a Flex DataGrid control using the DragManager class:
http://blog.flexexamples.com/2008/04/16/removing-items-from-a-flex-datagrid-control-using-the-dragmanager-class/comment-page-1/#comment-9253
flex中的beanutil.copyproperties:
http://www.kensodev.com/2010/06/22/copy-object-properties-to-another-object-flex/
FLEX中的eval:
http://nsdevaraj.wordpress.com/2008/03/18/eval-in-as3/
引用
var functionName:String = “foo” + bar; if (this.hasOwnProperty(functionName)) this[functionName]();
设置enable,可以用来简单的防止重复提交:
Disabling a Spark Application container in Flex 4:
http://blog.flexexamples.com/2009/08/14/disabling-a-spark-application-in-flex-4/
Disabling user input in a Flex Application:
http://blog.flexexamples.com/2008/02/20/disabling-user-input-in-a-flex-application/
为控件的 enabled={boolExp} 设置多个boolExp 且操作判断项:
http://thanksmister.com/?p=45
引用
对或操作可以直接使用 enabled={boolExp1 || boolExp2}
但对且操作,直接使用&&(enabled={boolExp1 && boolExp2})会报错“The entity name must immediately follow the ‘&’ in the entity reference.”。解决办法如上贴所说两种:
但对且操作,直接使用&&(enabled={boolExp1 && boolExp2})会报错“The entity name must immediately follow the ‘&’ in the entity reference.”。解决办法如上贴所说两种:
<mx:Button label=”MyButton” enabled=”{(active1) ? (active2):false}” /> <mx:Button label=”MyButton” enabled=”{(active1) && (active2)}” />
Flex StringValidator的maxLength 和 可输入控件的maxChars 都是用来检测输入域输入的字符数的(一个中文就是一个字符)。这里给出一个检测输入域字节长度的方法:
private function getStrByteLen(sChars:String) : int { return sChars.replace(/[^\x00-\xff]/g,"xx").length; }
Trimming strings using the Flex StringUtil class’s trim() method:
http://blog.flexexamples.com/2007/09/07/trimming-strings-using-the-flex-stringutil-classs-trim-method/
当Datagrid中列非常多时,默认的横向滚动策略下,横向滚动条会是可伸缩的,导致纵向滚动条在可见区域中看不见,即使你配了 height="100%" width="100%";此时可通过为datagrid加上 minWidth参数设置(minWidth="像素数")让其横向滚动条的长度固定。
当datagrid列很多,数据量也很大时,datagrid的滚动条反映会很迟钝,凸显出严重的性能问题。解决大数据量/很多列 datagrid滚动性能问题的办法:
Flex Smooth Scrolling DataGrid:
http://hash-pipe.com/2008/11/flex-smooth-scrolling-datagrid/
http://blogs.adobe.com/aharui/2008/11/faster_datagrid_horizontal_scr.html
动态调整DataGrid列的显示:
http://www.cnblogs.com/ping58/archive/2010/05/27/1745579.html
FLex datagrid list等的行style(背景色/字体/加粗等)设置:
通过itemrender让datagrid中选定的行的字体变粗:
Flex DataGrid Selected Row Styling:
http://www.switchonthecode.com/tutorials/flex-datagrid-selected-row-styling
List/ComboBox Row Backgrounds in Flex:
http://www.barneyb.com/barneyblog/2007/06/22/listcombobox-row-backgrounds-in-flex/
http://blog.csdn.net/terryzero/archive/2010/02/23/5321002.aspx
通过工厂去创建datagrid列的itemrender;适用为动态增加的datagridcolumn添加itemrender:
DIFFERENT ROWS IN DATAGRID – PROGRAMMATICALLY ADDED ITEMRENDERERS (CLASSFACTORY AND IFACTORY):
http://www.flexer.info/2009/01/09/different-rows-in-datagrid-programmatically-added-itemrenderers-classfactory-and-ifactory/
Flex datagrid/advancedatagrid按条件显示行的背景颜色:
http://blog.csdn.net/cfhacker007/archive/2010/08/03/5784523.aspx
Flex使用弹出窗口为DataGrid添加新数据:
http://www.iteye.com/topic/356788
设置s:NavigatorContent的vislble和includeInLayout:
http://stackoverflow.com/questions/3755806/flex-is-it-possible-to-hide-some-tabs-in-tab-navigator-and-show-them-only-when-c
引用
Use the TabNavigator's getTabAt() method which returns the Button that makes up the visual tab and set the visible property to false. It can be tricky with bindings.
Flex - Hide and show tab in tabnavigator:
http://whatsmytitletoday.blogspot.com/2009/06/flex-hide-and-show-tab-in-tabnavigator.html
引用
This becomes very important if you want to hide tabs in a tab navigator but you don't want to remove them from the interface completely. In my situation I wanted to hide tabs in a tab navigator based on what the user had selected in a data grid. If the user selected another row in the grid I may need to show a tab that I had previously hidden.
To remove the tab stop, also disable it:
tabNav.getTabAt(1).visible = false;Now to elaborate on Venkatesh's post...
To remove the tab stop, also disable it:
tabNav.getTabAt(1).enabled = false;Now if you are hiding a tab before another tab (that is not hidden) there will be an empty gap where your tab should be. To fix this:
tabNav.getTabAt(1).includeInLayout = false;And one final thing. If you're hiding your default tab (i.e. tab index 0) you will also need to set the selected index of the tabNav or else you will still see the contents of the default tab.
tabNav.selectedIndex = 2; //If you were hiding the first 2 tabs (tab 0 and tab 1)
Flex中ArrayCollection的克隆:
Cloning ArrayCollection:
http://jodieorourke.com/view.php?id=105&blog=news
引用
下面的方式,新的arraycollection和旧的使用的是同一个source,所以对任一arraycollection做增删操作,另一个会跟着变化
var newAC:ArrayCollection = new ArrayCollection( originalAC.source ) );想做深度的克隆,即让源arraycollection和克隆出的arraycollection在克隆会使用不同的array作为source,从而达到对两个arraycollection的操作互不影响的目的,可以使用以下两种方式:
private function clone( source:Object ) :* { var myBA:ByteArray = new ByteArray(); myBA.writeObject( source ); myBA.position = 0; return( myBA.readObject() ); } var newAC:ArrayCollection = new ArrayCollection( clone( originalAC.source ) ); //方式一 var myAC:ArrayCollection = new ArrayCollection( ObjectUtil.copy( originalAC.source ) as Array ); //方式二
为一个arrayCollection指定多个filterFunction:
ArrayCollection with multiple filter functions:
http://blog.rotundu.eu/flex/arraycollection-with-multiple-filter-functions/
Finding substrings and patterns in strings:
http://livedocs.adobe.com/flex/3/html/help.html?content=09_Working_with_Strings_09.html
TabBar 和 LinkBar例子:
http://learn.adobe.com/wiki/display/Flex/TabBar+and+LinkBar
Determining when an ArrayCollection changes in Flex:
http://blog.flexexamples.com/2008/05/14/determining-when-an-arraycollection-changes-in-flex/
发表评论
-
myeclipse 10 安装 flash builder 4.6
2011-12-11 12:47 15373从Flash Builder 4 之后,ado ... -
FLEX:Nested Object & Nested Data Grid
2011-08-15 18:14 2102Flex Nested Object & Nested ... -
FLEX 服务器端交互: remoteObject & AsyncToken & 数据定时刷新 & Timer
2011-06-21 18:47 2741动态调用RemoteObject: Dynamically i ... -
FLEX : Tree & contextMenu & Array's filter & ArrayCollection's filterFunction
2011-05-29 16:05 1894Using Flex 4.5 / Using data-dri ... -
FLEX : ObjectProxy & <fx:Model> tag
2011-05-28 21:37 1974今天碰到了一个非常让我困扰的问题,使我觉得很有必要对Objec ... -
Flex:Application&Variable Scope(this owner parent parentApp parentDoc outerDoc)
2011-05-28 17:18 1384关键字: this owner parent parentA ... -
Flex : Performance tuning 性能调优
2011-05-28 14:50 1667附件: Flex Application Performanc ... -
FLEX : Validator 验证
2011-05-26 23:57 2173Data Access and Interconnectivi ... -
FLEX : Event 事件
2011-05-24 19:51 1680ActionScript 3.0 Developer’s Gu ... -
FLEX:Data Binding 数据绑定
2011-05-24 14:44 3596务须精读的文章: Flex data binding pitf ... -
FLEX Component 组件 汇总
2011-05-23 13:56 2267Combox默认将对象中名为label的属性作为显示用的lab ... -
FLEX : dragEnabled & dropEnabled
2011-05-22 17:38 1674通过设置dragEnabled属性为true,可以使这些控件作 ... -
FLEX Data type 数据类型
2011-05-22 09:21 2046Programming ActionScript 3.0 / ... -
FLEX ERROR WARNING 总结
2011-05-22 08:13 3183常会碰到的错误:TypeError: Error #1009: ... -
Flex: labelFunction versus ItemRenderer
2011-05-22 07:16 3246When to Use labelFunction versu ... -
Flex Application 初始化顺序
2011-05-22 06:15 1618http://blog.csdn.net/chengyong ... -
Flex Metadata 元数据:Bindable(注意首字母大写),etc
2011-05-22 06:08 1747Adobe® Flex™ 3.2 语言参考 -> 元数据 ... -
FLEX笔记
2009-04-15 10:29 2307Adobe Flex 4 官方资料库: http://help ...
相关推荐
FLEX程序的例子,一共有八个。看懂了这八个例子,可以说FLEX初级的一些小程序基本都没问题了,虽然例子挺小的。
3.http://127.0.0.1:8080/flexDemo/HelloWorld/ReadExample.html 4.http://127.0.0.1:8080/flexDemo/HelloWorld/WriteExample.html 第1个例子没有用到数据库,其余3个连接了mysql数据库,分别是读和写。 如果你的...
本人学习flex过程中做的例子,欢迎各位下载,交流共同提高
这是一个关于Flex的例子,主要是vauleObject编程发面的,还包括了用户自定义组件的使用和HttpService的一些设置,包括的内容很丰富呦!
这个资源不仅讲解 了flex 与bison还给出了一些例子,给初学者一个上阶的缓冲!
基于flex做为页面展示层,与java进行交互的crud例子,加了部分验证,共分为两部分,一是展示层的工程,一是java服务端的工程,导入工作区后编译设置tomcat就可以用了,数据库的脚本也在其中
自己整理的Flex Text Layout Framework 来自网上,很全的例子。包括了bookmarks,editor(simpleEditor,SimpleEditorWithCss),pagination(1,2,3),madlibs等,不能上传图片要不然上传上来给大家看一下。可以直接运行开...
野牛的例子 像bison这样的解析器生成器对于语法原型非常有用,不幸的是,它需要大量代码才能启动和运行。 这只是一个非常小的示例,显示了构建基于野牛的解析器所需的样板代码。 我喜欢bison的地方是,您可以编译和...
flex的简单例子 <br> <br>
actionscript3-example 几个小例子。
AppleAccordionExample, 基于flex的accordion例子
flex中使用模块Module的例子初级学习资料
flutter-example根据 flutter-book的例子,所有连接均为代码示例。Flutter 入门与进阶系列文章Flutter 各种小部件使用例子1.3 图片和Icon1.4 输入框和表单1.5 进度指示器1.6 弹窗1.7 状态管理1.8 单选和复选2. 布局...
基于Flex(Android + IOS)的React Native的美丽背景形状 例子 安装 纱 yarn add react-native-background-shapes Npm npm i react-native-background-shapes 基本用法 import react from "react" ; import { ...
McGraw.Hill.VHDL.Programming.by.Example.4th.Ed vhdlcoder VHDL数字控制系统设计范例(经典) 台湾国家晶元设计中心VHDL内部培训资料(CIC) FPGA Express(VHDL Reference Manual) VHDL_design_techniques_for_...
(1) 自动调用flex编译.l文件,生成lex.yy.c文件。 (2) 自动调用bison编译.y文件,生成yacc.tab.c和yacc.tab.h文件。 (3) 自动调用g++编译、链接出可执行文件main。 (4) 自动执行main,得到如下结果:。 bison -d ...
对自动布局约束噩梦说“否”:例子要运行示例项目,请克隆存储库,然后首先从Example目录运行pod install 。安装可通过Swift Package Manager (推荐)和 : pod "FrameLayoutKit"例子这是FrameLayoutKit布局下面的...
VHDL_design_techniques_for_flex_devices.ppt (497 KB) vhdl100个例子.zip (342.4 KB) vhdl-beginner.ppt (717.5 KB) vhdlcoder.zip (47.41 KB) VHDL经典教程.pdf (371.78 KB) VHDL数字控制系统...
layout 具有Flexbox布局的pixi.js的React Fiber渲染器例子( )安装npm install --save react-pixi-layout用法import React , { Component } from 'react'import { Stage , Text } from 'react-pixi-layout'class ...
react-native-tooltip-alert 展示iOS 展示Android 安装 npm i react-native-tooltip-alert --save 或者 yarn add react-native-tooltip-alert 例子 ... View style = { { flex : 1 , justifyContent