152009
 

senocular 出的 TransformTool是一套很不错的组件,不过今天被它彻底弄晕了。在Flex下出了N多Bug,花了一天时间除bug,还是有很多问题。

Google了一下,发现了这么一篇博客

senocular.com TransformTool modification

原来还有个修改版的,专用于Flex的,很好,很强大!

下载地址:http://www.sephiroth.it/test/flex/2/transform_tool/srcview/Sephiroth%20-%20Components.zip

完美解决!

transtool

 Posted by at 5:36 下午  Tagged with:
032009
 

FlexLib中的SuperTabNavigator是个很不错的控件。

supertabnavigator

不过今天被这玩意儿折腾得够呛,因为要在切换标签页的时候侦听一下事件。原以为会是SelectedIndexChanged、SelectedItemChanged之类的事件名。
可就是没有,查看帮助只有tabClose和tabReordered两个事件。
经过查看其源代码在714行发现了这个:
this.addEventListener(IndexChangedEvent.CHANGE,tabChangedEvent);
果真就是这玩意儿。。。汗。
总结:取名字一定要通俗易懂~

 Posted by at 2:56 下午  Tagged with:
122009
 

FlashDevelop是我很喜欢的一款的AS开发IDE,以至于现在本人在重装了系统之后都木有再安装Flex Builder。

在Flex Builder下配置Remoting Google一下都有比较详细的图文教程,不过FlashDevelop下我还没找到。虽然说差别不大,但是呢,有几个注意点还是比较容易引起错误的。

现在假设服务器端已经配置完毕,我使用的服务端是基于.net 的fluorine。服务器处理段地址是:http://localhost/Gateway.aspx

Continue reading »

 Posted by at 11:19 上午  Tagged with:
102009
 

原文:《Threading in Flex

There have been several times where we have had to process large sets of data in our client side Flex applications. Several of these locked the UI for up to 15 seconds on slower machines until we started chunking up the work load.

Eventually, we solved this issue by developing a framework to instantiate and manage ‘thread’ objects. The threads are really just managed time slices.

The framework has the following features:

* easily instantiate and manage n number of threads
* threads have adjustable priority settings
* messaging between threads handled by reflective method handlers (similar to Fabrication for PureMVC)
* load balancing of thread executions in order to optimize performance
* easy and simple api: start(), sleep(), wake(), kill()
* threads can auto-adjust their workload based on the performance of the application. basically, if the app is slowing down, the threads can buffer down their work load. similarly, they can ramp their workload up if the application is running smoothly and the library feels that there is room for increased load.

This library has gone through our open source review board and has been approved to be released into the wild :)

You can get it here:
http://code.google.com/p/async-threading/

The project archive file contains src, asdoc, and compiled swc.

 Posted by at 12:48 下午  Tagged with:
262009
 

相信有很多RIA开发者已经见识过TourDeFlex下载),它展示了相当多的Flex/Air开发实例。

其实现在SilverLight/WPF也有一款这样的工具,集合了微软官方的,DevExpress和ComponentArt等知名厂商的控件实例。

WPF Control Browser

简介:http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/02/03/silverlight-wpf-control-browser.aspx

程序地址:http://www.mtaulty.com/downloads/WpfControlBrowser/WpfControlBrowser.application

请在IE下打开,貌似FF不行,也许是我的.Net Framework或者SilverLight客户端有问题,呵呵:)

192009
 

翻译自:http://www.uza.lt/codex/as3-scale9-bitmap/

简介:

AS3 Scale9 Bitmap是个辅助的类,使用它可以通过bitmap数据填充创建九宫格sprite,而这些在Flash 9中是无法实现的。这个辅助类根据用户定义的缩放矩阵创建了9个虚拟的九宫格sprite。特别适用于创建用户界面(比如按钮,可伸缩的UI元素等等)。

内容:

  • Scale9SimpleStateButton – 用于创建可伸缩的1、3 或者3种状态使用bitmap数据(皮肤)的按钮的类。
  • Scale9SimpleBitmapSprite – 用于创建静态的可伸缩的UI元素的使用bitmap数据(皮肤)的sprite的类。
  • 示例代码(Flex Builder 3 项目)

要求:

ActionScript3

演示:


Scale9SimpleStateButton(左上角),Scale9SimpleBitmapSprite(右下角)以及初始的皮肤文件(底部)

示例语法:

Actionscript:
      var scale9_example:Rectangle = new Rectangle(6,6,105,20);
      /* Initialize the button with all 3 states (normal, hover, down) using 3 different bitmaps */
      var button_example:Scale9SimpleStateButton = new Scale9SimpleStateButton(
          scale9_example,
          button_skin_normal.bitmapData,
          button_skin_hover.bitmapData,
          button_skin_down.bitmapData
      );
      /*
        * Scale the button using "width" and "scaleY" properties
        * (in general you can use "width", "height", "scaleY", "scaleX" properties for scaling)
        */
      button_example.width = 300;
      button_example.scaleY = 2;

下载:

http://www.uza.lt/download/2