Apache released Flex 4.11 on Oct 28. some improvement for DataGrid, AdvancedDataGrid, BitmapImage.
What’s new in Apache Flex v4.11.0?
The Apache Flex 4.11.0 SDK allows application developers to build expressive web and mobile applications using MXML for layout and ActionScript 3, an ECMAScript based language for client-side scripting.
The Apache Flex 4.11.0 release contains many improvements that professional software development teams will appreciate. This advances the framework forward. It is truly one of the best cross-platform programming languages used to write applications that are testable and can be compiled to run on multiple technology platforms from a single set of code.
Apache Flex 4.11.0 highlights include:
- Support Flash Player 11.9.
- Support for AIR 3.9.
- 120 and 640 dpi mobile resolution/skin support, fixes to 480dpi skins.
- mx:AdvancedDataGrid and mx:DataGrid speed improvements.
- Added column sort type access to the datagrid columns in mx:Datagrid, s:Datagrid, and mx:AdvancedDataGrid.
- Able to easily change mx:AdvancedDataGrid row and column item renderer spanning.
- s:DataGridEditor will now be visible in ASDocs and be visible in the Tag inspector.
- Minor changes to make SDK compile with Falcon compiler.
- Added access to imageDecodingPolicy in BitmapImage.
- Changed UIComponent removedFromStageHandler from private to protected to allow override
- New experimental mobile spark datagrid.
- Updated OSMF swc to latest version (2.0)
- Renamed experimental supportClazzes package to be supportClasses.
- Mobile Callout moved to spark and can be used in Desktop and Browser apps.
- Support for [Experimental] metadata tag.
- Over 50 bugs/issues were closed with this release
For more information on Apache Flex, visit the project home page:
http://flex.apache.org
只支持
100本以内的已读书目, 如图:
右上角输入豆瓣ID后按下回车, 等待.
地址: http://liguoliang.com/wp-content/uploads/2012/12/DoubanAnalytics.swf
Adobe released Flash builder 4.7 last week, got several new features.
Release features
For more information, see Organize imports statements.
For more information, see Quick Assist.
http://helpx.adobe.com/flash-builder/release-note/flash-builder-4-7-release-notes.html
豆瓣提供了丰富的API, 在Flex中可使用WebService快速调用。
读取指定用户收藏过的图书:
FlashPlayer 11开始原生支持JSON:
Native JSON (JavaScript Object Notation) Support — Allows ActionScript developers to take advantage of high performance native parsing and generation of JSON-formatted data.
— http://helpx.adobe.com/x-productkb/multi/release-notes-flash-player-11.html
在Flex SDK 4.6中已有顶级类: JSON。
如果使用旧的SDK, 则可以as3corelib:
An ActionScript 3 Library that contains a number of classes and utilities for working with ActionScript? 3. These include classes for MD5 and SHA 1 hashing, Image encoders, and JSON serialization as well as general String, Number and Date APIs.
不过看起来已经有两年多没有更新了。 swc下载地址: https://github.com/mikechambers/as3corelib/downloads
SDK4.6与As3CoreLib中JSON Class的method name略有不同。
代码:
private function onJSONLoad(event:ResultEvent):void { var rawData:String = String(event.result); var rawResult:Object = JSON.parse(rawData); var books:Array = (rawResult.collections as Array); var dp:ArrayCollection = new ArrayCollection(books); dataGridBooks.dataProvider = dp; }
在GitHub上查看完整代码:https://github.com/DavidGuoliang/DoubanAnalytics/blob/master/src/DouBanJson.mxml
Hi all,
I wrote a small Flex tool for parsing column names to SQL format, for example:
when I want to select those fields:
ColumnName |
ACCOUNT |
SECURITYEXCHANGE |
ORDREFNO |
ORDERID |
BUYSELL |
I need to copy those fields into my SQL editor, and put “,” for each of them, it’s boring and waste time, So I wrote a Flex tool, which can parse the fields into:
1: Added comma:
ACCOUNT,
SECURITYEXCHANGE,
ORDREFNO,
ORDERID,
BUYSELL
2: Added quotation marks and comma:
‘ACCOUNT’,
‘SECURITYEXCHANGE’,
‘ORDREFNO’,
‘ORDERID’,
‘BUYSELL’
Hope it can save your time if you are doing such kind of SQL jobs.
Get the tool: http://liguoliang.com/wp-content/uploads/2012/11/ParseStrForSQL.swf
// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.