October, 2006 > 所有文章列表

Auto open tree node during drag and drop operation

In flex   October 4, 2006 - 12:57 pm

Recently one of the project I’m working requires this feature, during a drag and drop operation, when user drag the item over and stay on top of one node in the Tree component for a second or two, that node will be automatically opened, just like those found in Windows Explorer or Outlook.

It sounds easy but actually not, it’s part of the huge revision we did on Tree component, another interesting thing to note is when dragging the item over one node, that node’s background is highlighted, instead of the flex-standard-drag-over behavior: showing a cross-line on top or bottom of the node.

By providing this drag-over-highlight, user got a feeling of s/he is actually dropping the item “into” that node, instead of on top or below that node, small things but have huge impact on user experience, I would really love to see this be integrated into the framework code someday.

Back to the auto open thing, ended up we totally rewrote the logic inside Tree.showDropFeedBack() and calculate which item is rollovered then see if we need to open it or not.

It’s always fun hacking the framework code and achieve things like this :-)

1 comment | by admin

心得速記: 全球化 (Globalization, 簡稱G11N) = I18N + L10N

In General, flex   October 1, 2006 - 10:31 am

要讓軟體產品世界各地都可以用,軟體設計時就要考慮「國際化 」(Internationalization, 簡稱I18N),先要具備了I18N的能力,才有辦法快速地「因地制宜」(Localization, 簡稱L10N),變身成世界各地不同地區、不同語言的軟體版本。因此在軟體界有個公式︰

* 全球化 (Globalization, 簡稱G11N) = I18N + L10N

原文

這點在開發 flex 時也非常重要,好在有 Resource Bundle 可用兩者可畢其功於一役啊~不過也要開發者一開始有想到要去用才行…

Add comment | by admin

socket 的有趣世界

In flex   October 1, 2006 - 12:38 am

flash player 9 裏面支援 binary socket 傳資料,現在真是越玩越大了。

一開始是 Darron 做出 Flash版 VNC,可支援 VNC protocol,現在又有人做出了 Subversion protocol,也就是可以直接用 flash player 當作 svn client 去存取資料,不再需要 tortoisSVN 或 subclipse囉!

原文報導可以在這裏看到

在那篇文章裏,Ted 也提到他正為 Apollo 寫一個 flash-native 的 MySQL driver,將來 Apollo 就不需要 middleware 可直接存取 database,這真是個絕妙的idea啊,但既然他是用 flash.net.socket 去做,這玩意現在大家也都可以用,為什麼不直接開始寫個非apollo 版的 db driver 啊?

另外,有趣的是,為什麼有人會想寫一個 flash版的 svn client 呢(這世界上很多事就算做的到也不代表就值得去做,所以既然有人這麼熱血,背後一定有什麼偉大的理由吧?)

我想了半天,只能得到一個答案,但說出來之前想先聽聽大家的意見,來吧…

comments(6) | by admin

Next Posts

mobile phone