PV3D: BasicView- Camera Type

July 7, 2009 – 9:46 pm

PV3d 中的BasicView 中 CAMERA可以有這幾種,其中TARGET是預設的。

DEBUG : String = “Debug”
[static] The DEBUG constant defines a DebugCamera3D

FREE : String = “Free”
[static] The FREE constant defines a Camera3D with no target

SPRING : String = “Spring”
[static]

TARGET : String = “Target”
[static] The TARGET constant defines a Camera3D targeting x:0, y:0, z:0

Share/Save

AS: Array.sort

May 31, 2009 – 2:28 am

這是在keith peters的advanced as3 amimation 中讀到的關於array.sort()的用法

在這邊做個筆記以免忘記

假設今天有個array _items, 用來儲存3d物件

private function sortItems():void
{
_items.sort(depthSort);
for(var i:int = 0; i < _items.length; i++)
{
_holder.addChildAt(_items[i] as Sprite, i);
}
}

private function depthSort(objA:DisplayObject, objB:DisplayObject):int
{
var posA:Vector3D = objA.transform.matrix3D.position;
posA = _holder.transform.matrix3D.deltaTransformVector(posA);
var posB:Vector3D = objB.transform.matrix3D.position;
posB = _holder.transform.matrix3D.deltaTransformVector(posB);
return posB.z - posA.z;
}

you can create your own custom function to do the sorting. If you create a custom function, you call the method, and use the name of your custom function as the first argument ()

  • - A comparison function used to determine the sorting order of elements in an array. This argument is optional. A comparison function should take two arguments to compare. Given the elements A and B, the result of can have a negative, 0, or positive value:
    • A negative return value specifies that A appears before B in the sorted sequence.
    • A return value of 0 specifies that A and B have the same sort order.
    • A positive return value specifies that A appears after B in the sorted sequence.

照這麼看來,sort()本身就會一次傳入兩個值來比較,當我們用自己的compareFunction來設條件,

就須指定個被傳入的引數,在此就是 objA:DisplayObject, objB:DisplayObject

不曉得這樣理解對不對,覺得有錯的話請跟我說

Share/Save

AS3: a common practice to create complex objects.

May 30, 2009 – 10:13 pm

var field:TextField = createField( );

function createField():TextField{

return TextField;

}

Share/Save

AS: FLASH 3D DEPTH SORTING

May 30, 2009 – 9:18 am

在KEITH PETERS 的書中讀到

用陣列來排列Z軸

Share/Save

Good Resoures on Genie Effect in Flash as

April 8, 2009 – 8:31 pm

http://lab.ultravisual.co.uk/

http://stephan.acidcats.nl/blog/2007/08/28/macs-genie-effect-in-flash/

http://www.flashandmath.com/intermediate/gummy/index.html

Share/Save

[flash] [筆記] 表示root是一個GETTER方法

March 16, 2009 – 3:07 am

在使用describeType(root)時:

表示root是一個GETTER方法,而傳回的型別是DisplayObject。

DisplayObject並沒有”自定變數”的宣告。所以在編譯時root.自定變數  會發生錯誤。

然而使用root["自定變數"]時,由於編譯程式裡不會檢查,所以不會發生錯誤。

Share/Save

young illustrator award

March 16, 2009 – 2:24 am

FYI

http://www.illustrative.de/en/home/

Share/Save

UI GATHERING 新春對談 筆記一

March 13, 2009 – 1:43 am

首先是訊連科技的GUI設計頭目的簡報。為了方便我自己整理思緒,在此先用bullet point來記述。

1.強調VISUAL DESIGN 以及DESIGN GUIDE的重要性

   1.1 仔細定義規範各種視覺元素,包含閒距、圓角等等,並以此為規範來設計。好處為:

       1.1.1 可以用來說服客戶,甚至是同公司不同部門的人員。

                 譬如說: 可以告訴對方,這圓角是以黃金分割法來求得的(:D)。

2.建立一個公版

   2.1  以公版為出發,佐以客戶之意見加以客製化,更有效率。

          (在此舉出了環狀排列以及HP SMART TOUCH的散狀排列為例)

3. 經驗-他山之石

    3.1 根據與國外公司的合作開發經驗,可由國外USABILITY LAB的研究成果來規範設計。

           (不能像早期老闆或者設計師看的爽說了算)

          EX:在新的TOUCH介面上需要注意的閒距,ICON大小,都有USABILITY的經驗法則歸納與實驗數據可參考

4. UI STYLE GUIDE

   4.1 how does it feel (ex: graceful)

   4.2 user interface definition (ex: typo, glow, shine, icongraphy, button status….)

   4.3 if possible, fund ur specific design

         (一致性–>優雅黑—>配什麼GLOW–>Icon style–>button 開闔方式)

Share/Save

UI GATHERING 新春對談筆記 殘破版

March 8, 2009 – 8:50 pm

在陰雨連綿的鬱卒情懷中來到會場,手裡拎著爌肉便當,來參加我第一次的UI GATHERING。

場面比想像的還溫馨~不過並沒有時間讓我喀完爌肉飯,囫圇吞了兩杯各加了一個奶球的咖啡。

認識了在做USABILITY TEST的游牧民先生(這名字還真是帥!),大概聊了一下目前他接觸到業界對於USABILITY TEST的重視程度,恩…答案跟我預期的差不多:有在做,也慢慢越來越被重視。不禁讓我想到公司目前工作的狀況。就我半年來的觀感,我的公司還是處在做了在說,自己覺得好用就好用的狀態下…不過畢竟我還是個菜鳥,而且公司UI跟RD合作模式其實距離滿遠的…所以也僅是我個人的觀感。

ANYWAYS,來整理一下我的筆記吧。不過畢竟我手耳不夠協調敏捷,所以這筆記也僅止於參考用囉

Share/Save

Life is short.

November 15, 2008 – 12:12 am

Recently I am living like a headless fly .

so many thoughts, so many deams.

the awarness of turning 30 is kind of depressing.

the awarness of humanity is kind of depressing.

i can’t stop questioning what is the meaning of goals, and love.

which one is going to be perment, durable?

Share/Save