Archive for category Flash
[Flex] Printing 問題
Flex 的 printing 方面,差不多完全不能使用。
所以文中所講的 very challenging 是完全無錯的,因此,解決方法就有兩個。
1). Export as PDF.
2). Export as Image.
最好的方法,當然是export to PDF。 pdf 的printing support 是十分好的,flex 都有不少的library 可以利用. 其中,chowky 所用過的是alivepdf.
不過想簡單一點的話,就不如export as PNG 就好了,flex 很容易就可以把一個container 變做image. 你們所利用到的class 應該是 PNGEncoder. 只要想google 找一找就不難找到呢~
Source: http://www.insideria.com/2009/07/printing-with-flex.html
[Flex] Flash Player 10 Native 3D 的能力
雖然大家對flash player 10,加上基本的3d 能夠,看來覺得不夠。
不過原來看完這幾個demo 之後,都會覺得原來都ok的。
當然沒有PAPERVISION 3D 和UNITY 3D 這些FLASH 3D ENGINE 這麼強大。

Source: https://cynergysystems.com/blogs/page/andrewtrice?entry=flash_flex_native_3d_transformations
Adobe Creative Online Festival 香港站
chowky 看到了這個website 之後覺得有點失望,好像有點草草了事的。
誠意方面大打折扣。
不過對於adobe 的用家+支持者來說,應該要參加一下。
ADOBE 好像想把自已的technology 加入去ENTERPRISE 入面,所以有兩個talk 都是關於enterprise RIA,
另外,近來大熱的AVATAR 電影都有講座呢。
| English | |||
![]() |
|||
|
|||
![]() |
|||
|
|||
![]() |
比 Flash Media Server ( FMS ) 更強大的 Media Server !?
Wowza Media Server 2
當然是 commercial licensed server。
為什麼會話比FMS 更強大呢~,
除了支援 flash platform 之外。
還支援了:
- Apple iPhone and iPod touch
- Microsoft Silverlight
- Apple QuickTime
- Set-top boxes and more…
看來都不錯,什麼client 都支援到,一個server 就做到所有的東西,而且又沒什麼大的限制,當然都不是平的呢。
不過計上去應該會平過FMS的呢
[Flash] Fullscreen Mode
Posted by Chowky in Flash, RIA, Uncategorized on January 7, 2010
自從flash player 9.0.28 之後,flash 就支援fullscreen~,就已經不用以前的額外javascript。
只要在flash IDE 的publish 加上allowfullscreen,IDE 就會自動加上這個attribute
當然你亦可以在swfobject 自己加上
<param name="allowFullScreen" value="true" />1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | //Don't scale the movie when the stage size changes Stage.scaleMode="noScale"; //Align the stage to the top left Stage.align = "TL"; //Function to toggle between fullscreen and normal size //the toggle fullscreen button calls this function when pressed function toggleFullScreen(){ //if normal size, go to fullscreen, else go to normal size if(Stage["displayState"]=="normal"){ Stage["displayState"]="fullScreen"; }else{ Stage["displayState"]="normal"; } } //Create a listener for each time the Stage is resized var resizeListener:Object = new Object(); //Called each time the stage is resized resizeListener.onResize = function () { //Move the button to the center of the screen toggleFullScreenButton._x=Stage.width/2; toggleFullScreenButton._y=Stage.height/2; } //Add the listener to Stage Stage.addListener(resizeListener); |
Source: http://www.bezzmedia.com/swfspot/tutorials/flash8/True_Fullscreen_Flash_Mode
[Flex] HTML WYSIWYG Editor
相信如果大家有做開flash 的都知道,flash 在html 的support 真的很有限。簡單來講flex 的RichTextEditor 是useless. Chowky 都有試下自己開發一下,不過就問題太多,不值得投放太多時間。
見到別人這個html editor ,以為有人真的會重寫整個richtexteditor component不過原來是embed 了html javascript 的editor.
這樣做的話,始終不是chowky 想要的解決方法。
原本以為 Text Layout Framework 可以幫到手,不過他會有自己的一套syntax (chowky 倒覺得是正常的),當然情況就不太好的呢~。chowky 一直覺得flash 不應該做排版的工作,所以利用flash 來做CMS 真的有點怪。
不過這個editor 應該夠用了。希望free 的text layout editor 會推出~~ 問題就會解決了,哈~
Source: http://www.dgrigg.com/post.cfm/12/23/2009/Flex-WYSIWYG-Html-Editor
LiveDocx: Dynamically create Word, PDF

若果大家是developer,都應該知道怎樣create pdf….
大部份人的做法是利用html to pdf 的API 去generate 不同的pdf (當然有個最好的解決方案﹣LiveCycle PDF Generator,但中小型project 根本買不起呢)….但問題是,這種做法就太花時間了。這方面真是一個很大的問題,所以當找到一個新的解決方案,當然就要立即介紹一下。
LiveDocx 是什麼?
LiveDocx is a template-based document creation platform.
It allows developers to create word processing documents by combining user-defined Microsoft Word templates with data from disparate data sources, such as XML files and databases. It is typically used to create professional, print-ready word processing documents in DOCX, DOC, RTF and PDF. It’s easy and well proven.

LiveDocx 是利用了 Web Service 的技術,這亦是cloud 常見到implementation方法。因為完全不用安裝/config (最怕setting,煩),LiveDocx support 的language有:
- ASP.NET
- PHP
[Flash] Improving Timeline Using Tweening Engine
現在的flash/flex developer 都已經減少採用了flash 所提供的timeline 來造 animation (chowky 是指 interface /transition 的animation),取而代之就是兩隻不同的tweening engine.
1. TweenLite/ TweenMax ﹣ http://blog.greensock.com/
2. Caurina Tweener ﹣ http://code.google.com/p/tweener/
基本上兩種都是免費的。
Caurina 會稍稍再好一點,因為是採用了MIT license
建議大家兩種都要學習,兩隻的用法其實是差不多的,因為很多不同的sample / tutorial 都會各自採用,所以當別人使用了的話,至少要看得明白呢。 (應用上,chowky 會 suggest caurine tweener, 始終mit 是沒有任何license limitation,而且太相似了,有完全免費的就當然要用啦~)
文中所介紹的方法,是利用tweenlite 來控制timeline.
當然同樣地可以改用tweener.
在flex 的角度,差不多必定要用tweening engine 而放棄 flex 的 animation library….原因很簡單,有bugs…..這個情況發生在ILOG Calendar 上 (當在複雜的情況之下)。chowky 自己亦在中招之後就利用tweening engine 來控制 animation 的 start/stop.
Source: http://blog.alanklement.com/2009/11/27/improving-flash-interactive-timeline-animations/
Machinarium 解謎冒險遊戲
chowky 向來很喜歡解謎遊戲~加上手繪的畫面,灰灰暗暗的,好有懸疑氣氛呢~
而且這隻game 是purely 利用了flash 來造的。整隻game 都是flash……..真的有點難度~,他所寫的 5子棋的AI,真的很強,暫時都未win 到 (太少時間玩的呢~近來是一邊ot ,一邊處理自己的工作,真的有點吃不消呢~所以都要努力找找人幫手~)













Recent Comments