- 浏览: 1131388 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (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
Programming ActionScript 3.0 / ActionScript language and syntax / Data types -> Data type descriptions:
http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_11.html
Java与Flex类型转换对照关系:
Data Access and Interconnectivity / Accessing Server-Side Data with Flex -> Using RemoteObject components:
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
类型检查:
http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_09.html
默认值:
http://blog.csdn.net/firetaker/archive/2010/04/23/5519019.aspx
What's the difference between using 'as' keyword and regular typecasting like SomeType(foo)?
http://www.flexfreaks.com/forums/viewtopic.php?id=5
当Array的数据发生变化的时候,用它作为数据源的控件不能感知这种变化;
而ArrayCollection和ArrayList在创建时均使用Array作为其参数source;可以让数据实现绑定;
ArrayCollection比ArrayList强的地方在于它有排序和过滤的功能,而ArrayList是没有的。
ArrayCollection类将Array公开为集合的封装,可用ICollectionView或IList接口的方法和属性处理;ArrayList可用IList接口的方法和属性处理封装的Array;
对ArrayCollection和ArrayList实例操作会修改原始数据。
Some tips:
使用 removeItemAt() 方法,就会删除基础 Array 中的项目。[/b]
Array.filter()会生成一个新的数组;而arrayCollection's filterFunction不会改变arrayCollection的source Array;
使用arrayCollection.toArray()会返回一个与原来arrayCollection的source不同的Array:
http://blog.152.org/2010/04/flex-copy-arraycollection.html
ActionScript core 中的ArrayList和ArrayCollection两种类型的区别是什么?
他们的相同点是:都是以Array作为source来创建的;
不同点是:
http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_11.html
引用
The primitive data types include Boolean, int, Null, Number, String, uint, and void. The ActionScript core classes also define the following complex data types: Object, Array, Date, Error, Function, RegExp, XML, and XMLList.
Subtopics
Boolean data type
int data type
Null data type
Number data type
String data type
uint data type
void data type
Object data type
Subtopics
Boolean data type
int data type
Null data type
Number data type
String data type
uint data type
void data type
Object data type
Java与Flex类型转换对照关系:
Data Access and Interconnectivity / Accessing Server-Side Data with Flex -> Using RemoteObject components:
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
类型检查:
http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_09.html
引用
The is operator
The is operator, which is new for ActionScript 3.0, allows you to test whether a variable or expression is a member of a given data type. In previous versions of ActionScript, the instanceof operator provided this functionality, but in ActionScript 3.0 the instanceof operator should not be used to test for data type membership. The is operator should be used instead of the instanceof operator for manual type checking, because the expression x instanceof y merely checks the prototype chain of x for the existence of y (and in ActionScript 3.0, the prototype chain does not provide a complete picture of the inheritance hierarchy).
The as operator
The as operator, which is new in ActionScript 3.0, also allows you to check whether an expression is a member of a given data type. Unlike the is operator, however, the as operator does not return a Boolean value. Rather, the as operator returns the value of the expression instead of true, and null instead of false. The following example shows the results of using the as operator instead of the is operator in the simple case of checking whether a Sprite instance is a member of the DisplayObject, IEventDispatcher, and Number data types.
The is operator, which is new for ActionScript 3.0, allows you to test whether a variable or expression is a member of a given data type. In previous versions of ActionScript, the instanceof operator provided this functionality, but in ActionScript 3.0 the instanceof operator should not be used to test for data type membership. The is operator should be used instead of the instanceof operator for manual type checking, because the expression x instanceof y merely checks the prototype chain of x for the existence of y (and in ActionScript 3.0, the prototype chain does not provide a complete picture of the inheritance hierarchy).
var mySprite:Sprite = new Sprite(); trace(mySprite is Sprite); // true trace(mySprite is DisplayObject);// true trace(mySprite is IEventDispatcher); // trueThe following example shows the same tests from the previous example, but with instanceof instead of the is operator. The instanceof operator correctly identifies that mySprite is an instance of Sprite or DisplayObject, but it returns false when used to test whether mySprite implements the IEventDispatcher interface.
trace(mySprite instanceof Sprite); // true trace(mySprite instanceof DisplayObject);// true trace(mySprite instanceof IEventDispatcher); // false
The as operator
The as operator, which is new in ActionScript 3.0, also allows you to check whether an expression is a member of a given data type. Unlike the is operator, however, the as operator does not return a Boolean value. Rather, the as operator returns the value of the expression instead of true, and null instead of false. The following example shows the results of using the as operator instead of the is operator in the simple case of checking whether a Sprite instance is a member of the DisplayObject, IEventDispatcher, and Number data types.
var mySprite:Sprite = new Sprite(); trace(mySprite as Sprite); // [object Sprite] trace(mySprite as DisplayObject); // [object Sprite] trace(mySprite as IEventDispatcher); // [object Sprite] trace(mySprite as Number); // null
默认值:
http://blog.csdn.net/firetaker/archive/2010/04/23/5519019.aspx
What's the difference between using 'as' keyword and regular typecasting like SomeType(foo)?
http://www.flexfreaks.com/forums/viewtopic.php?id=5
引用
The main difference between as operator and regular typecasting is the behavior when conversion fails. In Actionscript 3, when a typecast fails, TypeError error is thrown. Using the as keyword, the default value for that data type (usually null) is returned when cast fails. as is essentially like is. It does a type comparison, but instead of returning true or false, as returns the data or null on type mismatch.
var foo:Object = "bar"; trace( MovieClip ( o ) ); // TypeError thrown trace(foo as ComboBox); // returns null
区别与联系:Array & ArrayCollection & ArrayList
当Array的数据发生变化的时候,用它作为数据源的控件不能感知这种变化;
而ArrayCollection和ArrayList在创建时均使用Array作为其参数source;可以让数据实现绑定;
ArrayCollection比ArrayList强的地方在于它有排序和过滤的功能,而ArrayList是没有的。
ArrayCollection类将Array公开为集合的封装,可用ICollectionView或IList接口的方法和属性处理;ArrayList可用IList接口的方法和属性处理封装的Array;
对ArrayCollection和ArrayList实例操作会修改原始数据。
Some tips:
使用 removeItemAt() 方法,就会删除基础 Array 中的项目。[/b]
Array.filter()会生成一个新的数组;而arrayCollection's filterFunction不会改变arrayCollection的source Array;
使用arrayCollection.toArray()会返回一个与原来arrayCollection的source不同的Array:
http://blog.152.org/2010/04/flex-copy-arraycollection.html
引用
var arrayCollection1:ArrayCollection = new ArrayCollection([1,2,3,4,5]); var arrayCollection2:ArrayCollection = new ArrayCollection(arrayCollection1.toArray()); trace("arrayCollection1: " + arrayCollection1.toString()); trace("arrayCollection2: " + arrayCollection2.toString()); arrayCollection1.removeItemAt(0); trace("arrayCollection1: " + arrayCollection1.toString()); trace("arrayCollection2: " + arrayCollection2.toString()); Output: arrayCollection1: 1,2,3,4,5 arrayCollection2: 1,2,3,4,5 arrayCollection1: 2,3,4,5 arrayCollection2: 1,2,3,4,5
ActionScript core 中的ArrayList和ArrayCollection两种类型的区别是什么?
他们的相同点是:都是以Array作为source来创建的;
不同点是:
引用
ArrayList and ArrayCollection both can be used to store and manipulate list data. Both supports flex data binding which can drive the watching object to update itself on data change.
However the key difference between ArrayList and ArrayCollection is that ArrayCollection has additional logic to sort and filter the list data however ArrayList is created specifically to hold and manipulate data and still be bindable. Thus ArrayList is lighter version of ArrayCollection.
Note: ArrayList is added in Flex 4 thus it will not be availalble in previous versions of flex sdk.
使用上也有些微的区别:However the key difference between ArrayList and ArrayCollection is that ArrayCollection has additional logic to sort and filter the list data however ArrayList is created specifically to hold and manipulate data and still be bindable. Thus ArrayList is lighter version of ArrayCollection.
Note: ArrayList is added in Flex 4 thus it will not be availalble in previous versions of flex sdk.
引用
(i 为 索引值)
ArrayList和ArrayCollection中放的都是对象数组;但ArrayCollection既可以用source属性做遍历,也可以直接用arrayCollection[i]做遍历;而ArrayList是可以用source属性做遍历。
不过他们有个通用的遍历方式:
ArrayList和ArrayCollection中放的都是对象数组;但ArrayCollection既可以用source属性做遍历,也可以直接用arrayCollection[i]做遍历;而ArrayList是可以用source属性做遍历。
不过他们有个通用的遍历方式:
arrayCollectionOrArrayListInstance.getItemAt(i)
发表评论
-
myeclipse 10 安装 flash builder 4.6
2011-12-11 12:47 15386从Flash Builder 4 之后,ado ... -
FLEX:Nested Object & Nested Data Grid
2011-08-15 18:14 2109Flex Nested Object & Nested ... -
FLEX 服务器端交互: remoteObject & AsyncToken & 数据定时刷新 & Timer
2011-06-21 18:47 2747动态调用RemoteObject: Dynamically i ... -
FLEX : Tree & contextMenu & Array's filter & ArrayCollection's filterFunction
2011-05-29 16:05 1900Using Flex 4.5 / Using data-dri ... -
FLEX : ObjectProxy & <fx:Model> tag
2011-05-28 21:37 1980今天碰到了一个非常让我困扰的问题,使我觉得很有必要对Objec ... -
Flex:Application&Variable Scope(this owner parent parentApp parentDoc outerDoc)
2011-05-28 17:18 1391关键字: this owner parent parentA ... -
Flex : Performance tuning 性能调优
2011-05-28 14:50 1673附件: Flex Application Performanc ... -
FLEX example 例子
2011-05-28 12:12 3177How to find an ArrayCollection ... -
FLEX : Validator 验证
2011-05-26 23:57 2175Data Access and Interconnectivi ... -
FLEX : Event 事件
2011-05-24 19:51 1685ActionScript 3.0 Developer’s Gu ... -
FLEX:Data Binding 数据绑定
2011-05-24 14:44 3598务须精读的文章: Flex data binding pitf ... -
FLEX Component 组件 汇总
2011-05-23 13:56 2275Combox默认将对象中名为label的属性作为显示用的lab ... -
FLEX : dragEnabled & dropEnabled
2011-05-22 17:38 1682通过设置dragEnabled属性为true,可以使这些控件作 ... -
FLEX ERROR WARNING 总结
2011-05-22 08:13 3189常会碰到的错误:TypeError: Error #1009: ... -
Flex: labelFunction versus ItemRenderer
2011-05-22 07:16 3252When to Use labelFunction versu ... -
Flex Application 初始化顺序
2011-05-22 06:15 1623http://blog.csdn.net/chengyong ... -
Flex Metadata 元数据:Bindable(注意首字母大写),etc
2011-05-22 06:08 1751Adobe® Flex™ 3.2 语言参考 -> 元数据 ... -
FLEX笔记
2009-04-15 10:29 2311Adobe Flex 4 官方资料库: http://help ...
相关推荐
Flex Data Grid Exporter
FLEX DATA GRID 分页的代码,上传上来给大家参考参考
flex组件之数据可视化组件实例源码 包括多种chart,共27个实例
为数据服务操作配置数据类型 测试服务操作 管理对服务器中的数据的访问 Flash Builder 为客户端应用程序生成代码 部署访问数据服务的应用程序 第 3 章: 为以数据为中心的应用程序实现服务 Action Message Format ...
flex4常用数据类型的视频指导,推荐一看
《Flex Data Services 2 - Public APIs》 :相关包的语法集
抓取AMF协议的flex页面,支持模拟登录和页面抓取。
精通Flex 3.0――14.1.2 ActionScript与Java数据类型的转换 精通Flex 3.0――14.1.3 LCDS的内容结构 精通Flex 3.0――14.2 一个最基本的LCDS应用 精通Flex 3.0――14.3 通过Remoting访问服务端的应用 精通Flex 3.0―...
Flex_Data_Service基础教程
flex与PHP后台数据交互的学习小记,Flex与后台交互的方法
FLEX强制类型转换FLEX强制类型转换FLEX强制类型转换FLEX强制类型转换FLEX强制类型转换
Felx Data Service Introduction
flex4+Myeclipse9.0集成环境下从MySql数据库取出数据通过DataGrid组建显示在flex页面。
flex数据绑定的原理
动态填充DataGrid示例 博文链接:https://feiying-zone.iteye.com/blog/810267
Flex与java交换数据 Flex数据交换 Flex与java交换数据教程。
java 与 flex 数据转换,java数据类型对应flex的数据类型
flex和java 集成,主要讲述flex获取java的数据服务,包括web service,http,remoteobject等。
flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图flex 地图...
flex4 的DataGrid里面加一列CheckBox并实现数据交互的试验 - 暖阳下的猫的日志 - 网易博客 Flex 4 ColumnChart 图表使用实例ColumnChart_RIA前线-Flex富应用、Flex中文教程、Flex实例源码 Flex实现ColumnChart柱图为...