PV3D: BasicView- Camera Type

Tuesday, July 7th, 2009

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

Good Resoures on Genie Effect in Flash as

Wednesday, April 8th, 2009

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

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

Monday, March 16th, 2009

在使用describeType(root)時: 表示root是一個GETTER方法,而傳回的型別是DisplayObject。 DisplayObject並沒有"自定變數"的宣告。所以在編譯時root.自定變數  會發生錯誤。 然而使用root["自定變數"]時,由於編譯程式裡不會檢查,所以不會發生錯誤。

變數命名

Wednesday, September 10th, 2008

不可以是關鍵字。 不可以是常數值,如:true, false, null, undefined等 避免和FLASH預設的識別字相同 第一個字元可以為UNICODE字元(如中文字),英文字母,底線(underscore,_),或者美金符號$。變數名稱的第一個字元以後,可以使用弦數的字元及數字字元(0-9)。 在相同的範圍不應該重複宣告相同的識別字。

plane.extra.height 以及改變3D物件參考點的方法?

Thursday, August 28th, 2008

在PV3D中要存取物件的寬 跟高似乎不能直接用 XXX.height 看了一下,要寫成 plane.extra = {width: mm.width, height: mm.height}; plane.y = plane.extra.height*0.5; 此外,要改變PV3D中參考點的方法好像沒有~ 倒是再網路上看到有人用了一些小撇步 http://kabulinteractive.com/blog/?p=21 http://labs.boulevart.be/index.php/category/papervision/ http://analogdesign.ch/blog/index.php/archive/papervision3d-demo-move-pivot-axis-only/

pv3d: interactive material

Thursday, August 28th, 2008

今天有空黨的時候寫了一下PV3D,複習一下以MC為MATERIAL的狀況下按鈕的BUTTONMODE功能 到目前為止似乎只能夠以viewport.button = true 來控制是否要出現小手指。 變成每個mc material中的按鈕都要有mouseover, mouseout 的 function 來切換是否出現小手指。 否則小手指只要只到該PV3D物體,即使沒碰到MATERIAL中的按鈕元件,也會出現小手指。 有點煩~~~~~ ㄚ我還不知道MV MATERIAL中要怎麼讓按鈕有_UP _DOWN _OVER等不同狀態的顯示。

complete or “Event.COMPLETE”?

Tuesday, July 1st, 2008

今天看到有人這樣寫 addEventListener("complete", onLoaded); 心想,不是應該寫成 addEventListener("Event.COMPLETE", onLoaded); 其實我們在定義event的時候會寫 public static const COMPLETE:String = "complete"; 所以你import flash.events.Event之後, 可以用"complete"來代替Event.COMPLETE;

ROLL OUT? I just CLICKed!

Friday, June 27th, 2008

這兩天作的一個案子讓我發現as3的滑鼠事件真是機車. 明明指市click卻會接著丟出roll out. 請參考ticore老大的這篇文章; 還有絲路的討論串也可以看看喔;

台灣flasher: pwang — ryan wang

Thursday, June 26th, 2008

目前在紐約工作。 得過兩個webby。 寫flash的高手 http://www.pwang.com/blog/

FLEX FLASH AS 官方撰寫規則建議

Wednesday, June 25th, 2008

一些習慣寫法,應該好好學習 http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions