[flash]拉覇效果的banner partII

第一版會當掉的問題應該是flash的tween的問題了
今天google了一下換tweener來試了一下
目前是沒有發生同樣的情形
不愧是高手高高手開發的東西阿

tweener還提供許多動態路線可以使用(這邊也有)
能做的當然也不只位移
模糊 大小 比例 透明 顏色….都可以
不過有的要先初始化才能控制到
像是要控制BLUR的話要先FilterShortcuts.init()
要控制COLOR的話要先ColorShortcuts.init()
不過每初始化一樣都會增加SWF的大小
可以參考節自官網的下表

Class path and name Description Approximate addition to SWF size
caurina.transitions.properties.ColorShortcuts Includes properties for manipulating the color of display objects, such as individual channel multiplier and offsets, and special coloring such as hue, saturation, brightness and contrast. 2.2 kb
caurina.transitions.properties.CurveModifiers Modifiers that provide some kind of change for normal tweenings; right now, the bezier curve only. 0.4 kb
caurina.transitions.properties.DisplayShortcuts Special properties for display objects such as Sprites, MovieClips, and TextField instances, include modifiers for visibility, frame position, and scrollRect size. 0.8 kb
caurina.transitions.properties.FilterShortcuts A list of special properties that simplify the tweening of the built-in bitmap filters such as Blur, Glow, and many others. 3.5 kb
caurina.transitions.properties.SoundShortcuts Special properties used when controlling sound. 0.2 kb
caurina.transitions.properties.TextShortcuts Additional special properties used to change some specific TextField properties, such as TextFormat properties, and the text content itself. 0.9 kb

還有一個很方便的是它連EventListener也內建了
很容易就可以呼叫下一個動作並帶入參數
加上延遲的時間
很直覺性的可以做出希望完成的動作~
閱讀全文

[flash]拉覇效果的banner

很久沒有機會開FLASH了
應老闆要求做了這個拉霸BANNER

當然 還是把握機會練習AS3囉
用了tween,BlurFilter, setInterval, setTimeout
不過不曉得是哪一個的問題
會讓拉霸有時當掉停住
目前比較覺得是tween的問題
還需要在研究一下

setInterval+setTimeout可以實現定時分批開始的效果
再改一下atArr 的取得和加一些判斷按鈕就可以當真的拉霸玩了
細部的動態跟設計需要再做調整
調個太快就沒FLASH可以玩了 呵呵~
閱讀全文

JUSTBLOG的速度跟大頭貼

對於justblog我一直有兩個問題
第一是loading的速度
明明就沒有用多少外掛
流量也是小咖中的小咖
每次要load個首頁就是20秒起跳….
連我自己有時都懶得等
更不要說是其他人了@@
就連Google Analytics都出現連線時間過久的錯誤
這種情況我想再如何SEO都天不應地不靈吧><
下定決心找個時間來看看到底是哪個外掛惹的禍
第一個想到的就是 Flickr Photo Album
因為他要跟外部溝通的最頻繁
結國LUCKY到我自己都不肯相信
就降子把Flickr Photo Album關掉再啟動整個JUSTBLOG就快多了^^
但再想想 這也不是第一次把Flickr Photo Album停掉
怎麼就這次差了這麼多哩
或許…是之前我換SERVER後也把WP Super Cache重新啟動過吧
所以在啟用Flickr Photo Album前要先啟用WP Super Cache!?
閱讀全文