域卡的卜 Vicker’s Blog

Hong Kong Adobe Flash platform (Flex, Flash and AIR) developer
  • rss
  • Home
  • About
  • Resume
  • Flickr
  • Contact

Sometimes I hate Flex… Sometimes

Vicker | July 24, 2008 | 7:15 pm

Don’t get it wrong… I am not leaving Flex, most of my current developments still rely on it and I am sure it will last for several more years.

Working with Flex for nearly two years. I am sure I have the right choice however sometimes Flex do makes me mad.

  • SWFLoader content can’t be unloaded completely.
    (How many times you try to replace a loader content but you notice the content music never gone away)
  • VideoDisplay component doesn’t play .flv correctly…
    Not even those produced by Flash Video Encoder…
  • Non standard CSS
  • Math.floor (Math.random () * 4) + 6
    (Oh my god… I just want a random integer)
  • Smooth scroll List
  • Disabling Ctrl key during drag move
  • Gradient fill Container
  • Full screen Keyboard input…
    (I understand security… but that should be user’s responsibility… not developer’s obstacle) 
Flex Builder related…
  • Why can’t I export my syntax coloring settings? 
  • I don’t know which part I haven’t done yet… WHERE’S MY TODO!?!?
  • Auto building get set function please…
To be continue…
Adobe…. please… I love advancedDataGrid… but fix the old ones first…

Related posts

  • Munsang College Biology Department Website version 3 始動~! (0)
  • 時光倒流第一集 - Adobe Flex Workshop (0)
  • Flex FAQ#4: 利用 Adobe Flex 做 Video Player (0)
Comments
No Comments »
Categories
Flex
Tags
Adobe, AdvancedDataGrid, CSS, flash video encoder, Flex, Flex Builder, flv, VideoDisplay
Comments rss Comments rss
Trackback Trackback

Flex FAQ #5: 點樣做 Full Screen Application

Vicker | July 12, 2008 | 2:23 am

Flex application 有一個特點就係可以完全跳出 web browser o既框架

Adobe AIR 當然係其中一種做法~

但係 Flash player 本身 support full screen mode

所以直接用 full screen mode 就比起 AIR 直接同快喇~!

 

要用 full screen mode 首先要改動 SWFObject 或者 Object tag

主要係加入 allowFullScreen 呢個 parameter

以 Flex Builder o既 HTML template 為例

 

SWFObject:


AC_FL_RunContent(
	"src", "${swf}",
	"width", "${width}",
	"height", "${height}",
	"align", "middle",
	"id", "${application}",
	"quality", "high",
	"bgcolor", "${bgcolor}",
	"name", "${application}",
	"allowScriptAccess","sameDomain",
	"type", "application/x-shockwave-flash",
	"pluginspage", "http://www.adobe.com/go/getflashplayer"
);

 

Object tag: (要留意加左兩個地方~!)


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="${application}" width="${width}" height="${height}"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
	<param name="movie" value="${swf}.swf" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="${bgcolor}" />
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="true" />
	<embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
		width="${width}" height="${height}" name="${application}" align="middle"
		play="true"
		loop="false"
		quality="high"
		allowScriptAccess="sameDomain"
		allowFullScreen="true"
		type="application/x-shockwave-flash"
		pluginspage="http://www.adobe.com/go/getflashplayer">
	</embed>
</object>

 

之後 within Flex application 就可以利用 stage.displayState 開動 full screen


stage.displayState = StageDisplayState.FULL_SCREEN;

 

如果想做到 toggle full screen effect 可以利用簡單既 if… else… statement


if (stage.displayState == StageDisplayState.NORMAL)
{
	stage.displayState = StageDisplayState.FULL_SCREEN;
}
else
{
	stage.displayState = StageDisplayState.NORMAL;
}

 

 

但係要留意一點~ Full screen mode o既所有 text field 係唔可以 edit 架…

講真… 咁o既 limitation 可以話將個 application 廢左武功…

暫時都無解決辦法… Astro 都唔得…

 

Adobe Labs - Flash Player 10 Beta Release Notes

http://labs.adobe.com/technologies/flashplayer10/releasenotes.html

Limited Fullscreen Keyboard Access — In Flash Player 10, key events are supported for non-printing keys such as arrows, shift, enter, tab, space, etc.  Limited access to the keyboard will allow fullScreen games and video controls with keyboard access in a secure way.

 

背後o既原因係擔心有人 develop 假既 OS login page…

都好無奈… 如果咁既話所有 web browser o既 full screen mode 都應該 disable text input…

 

Adobe Labs - Talk:Flash Player:9:Update:Full-Screen Mode

http://labs.adobe.com/wiki/index.php/Talk:Flash_Player:9:Update:Full-Screen_Mode#Why_suspend_key_input.3F

When considering this feature, several security concerns impacted our decisions for this first release. The reason keyboard input was blocked was to help prevent phishing attacks using Flash, where full-screen is used to simulate a log-in screen, someone else’s website, etc. This also impacted our decision to add the overlay to visually inform the user that something had changed and they were in a new state.

English title: How to develop full screen application

Related posts

  • 時光倒流第一集 - Adobe Flex Workshop (0)
  • Sometimes I hate Flex… Sometimes (0)
  • Flex FAQ #3: 點樣用 Flex FileReference 下載檔案 (0)
Comments
No Comments »
Categories
Flex, RIA
Tags
Adobe, AIR, displayState, Flex, Flex Builder, Flex FAQ, full screen, stage, StageDisplayState
Comments rss Comments rss
Trackback Trackback

Flex FAQ #2: 點樣清除亂左既 subclipse .svn 資料

Vicker | August 10, 2007 | 12:45 am

相信用 Flex Builder 或者 Eclipse 既人都會裝埋 Subclipse
Subclipse 的確令到 project source control 輕鬆好多
但係當你需要做 project folder relocation 或者 project import 就會出現好多問題

舉個例~ 你有一堆 svn 左既 Flex Builder 2 projects 要轉去 Flex Builder 3…
最穩陣既方法相信係 FB2 svn commit 左~ 然後 FB3 checkout 返~
但係如果你選擇 direct copy / project import~
就會有機會出現舊既 .svn data remove 唔到~ 然後無辦法重新 connect svn…

解決方法係人手逐個 .svn delete… =.=||

講笑~ 哈哈

Mac o既 user 會比較幸福~ 因為一句 command 就可以攪掂

[source:css]
find . -name .svn -print0 | xargs -0 rm -rf
[/source]

如果出現 operation not permitted 可以試下加 sudo

[source:css]
find . -name .svn -print0 | xargs -0 sudo rm -rf
[/source]

參考文章:

SVN on OSX by SIMPLESTATION
http://www.simplestation.com/journal/how-to-use-svn-on-os-x/

English title: How to remove all the .svn information when using subclipse

Related posts

  • Flex FAQ #5: 點樣做 Full Screen Application (0)
  • 時光倒流第一集 - Adobe Flex Workshop (0)
  • Sometimes I hate Flex… Sometimes (0)
Comments
No Comments »
Categories
Flex
Tags
eclipse, Flex, Flex Builder, Flex FAQ, Mac, osx, subclipse, sudo, svn
Comments rss Comments rss
Trackback Trackback

時光倒流第一集 - Adobe Flex Workshop

Vicker | January 23, 2007 | 1:26 am

又幾個月唔打 blog 喇~ 哈哈
想我堅持日日打都幾難~
呢排時間應該鬆少少既~ 打下啦
如果唔係將來就唔知以前做過 d 乜架喇…

呢幾日回顧返以前 d 野先~
(排名不分先後)

之前去完 Las Vegas 應承過 John 要o係香港攪返 d user group 既野
前排忙晒 plagiarism d 野於是就落手落腳去攪~
攪左一次 Adobe Flex 既 workshop 比 CS 既同學~
雖然o個日係平安夜~ 但係都有唔少人捧場~ 大家都好比面~

成個 workshop 分開兩 part
Part 1 講左 Adobe 既 product line
Part 2 就 hands-on 教 Flex 2
(無 Flex Builder… 用 SDK 既日子唔容易過… 成日要睇 doc… 真係唔好意思…)

大家都始乎對 Adobe Flex 可以做到既效果好感興趣
希望真係有好多人寫然後慢慢發展成 user group 啦~

P.S. John 超好人呀~ 3 日就將成大箱 Flex promotion item 寄過黎~ Thanks!

061224_flex_1

061224_flex_2

Related posts

  • Sometimes I hate Flex… Sometimes (0)
  • Flex FAQ #5: 點樣做 Full Screen Application (0)
  • Flex FAQ #3: 點樣用 Flex FileReference 下載檔案 (0)
Comments
No Comments »
Categories
RIA
Tags
Adobe, Flex, Flex Builder, John Koch, user group
Comments rss Comments rss
Trackback Trackback

Adobe MAX 2006 Scheduler

Vicker | September 5, 2006 | 12:10 am

其實應該尋晚 post 出黎~ 不過太夜所以今日先 post
Budget 既問題困擾左成個幾禮拜總算告一段落
所以都正式 register 左 Adobe MAX~

reg 完之後第一件事就係要用佢地 provide 既 scheduler 黎排 session
唔睇都唔知… 差唔多有一百種唔同既 session 可以 reg…
由 acrobat -> breeze -> dreamweaver -> flash -> flex -> xml
再由最簡單既 get started -> intermediate -> advanced
總之就乜都有咁啦~~!! 揀到我傻傻地….
排完之後感覺係…. 仲慘過上堂…. 哈哈~~
當然啦~ 上 Flash-related 既野點都精神好多既~

依家既 schedule 如下

  • Combining Flex with PHP and Open Source
  • Best Practices for Developing Flash Applications
  • Building RIAs with Flex Builder
  • Improving ActionScript 3 Performance
  • Design Patterns in ActionScript 3
  • Understanding Security in Flex and Flash
  • User Interface Design with Flash
  • Delivering RIA solutions with Cairngorm 2
  • Getting Started with Apollo
  • Techniques for Integrating Flash contents and Flex applications

060905_max

其實仲有兩個月~ 所以都仲會有好多變動~~
總之今次就一定係好好既學野機會啦!!
聽朝再講 MAX Event 既 inter-network application

Related posts

  • PURE ACTIONSCRIPT vs FLEX vs LASZLO (0)
  • I am going to Adobe MAX to MIN (Blog Entry for MAXUP) (0)
  • Flex FAQ #3: 點樣用 Flex FileReference 下載檔案 (0)
Comments
No Comments »
Categories
Daily Life, RIA
Tags
ActionScript, Adobe MAX, Apollo, budget, Flash, Flex, Flex Builder, open source, PHP, RIA, schedule, UI
Comments rss Comments rss
Trackback Trackback

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Certification


Adobe MAX 2008

Categories

Archives

Tag Cloud

WarCraft OSS Adobe webxact SEO freelance ACSS prototype flysforum textfield JAWS Hacken Lee flv the core form assembly design pattern color selector frame job hunting HKICTA W3C exhibition hea MOV Cyber Formula birthday flysbookmark braille gundam suck web page Andy Chun AIR Densha Otoko Mac Battlenet CSS APICTA depth manager Adobe MAX color WCAG WYSIWYG presentation form blog Misaki Ito bobby Web Usability FLABER Eva Shi Munsang College Laszlo include Flex FAQ Google textformat meta stylesheet music accessibility protoype component VideoDisplay PS2 hyperlink FYP OO XHTML ActionScript MovieClip flash video encoder Chris Liang HTML YouTube UI AdvancedDataGrid Tim Shiu PHP Gary Wong good dog u validation bt Experts Exchange Flash Yahoo XML Apple WMV Lego CityU sitemap business Flex John Koch algorithm Flex Builder family Macromedia Molyx

Flickr

11092007101.jpg 11092007102.jpg msc_bio_v1_1.png actionscript2.jpg csgame2.jpg 0601_flaber_0_4_7.jpg vector_td DSCN4411 469790470_55a3908526_b iad2.jpg DSCN7195 0703_flaber_2.png DSCN4338 munsang1.jpg 07082007083.jpg battle2.jpg msc_bio_v1_2.png msc_bio_v3_3.png

Blogroll

  • Eva’s Blog
  • Way’s Blog

RSS FxAIR.org

  • ActionScript for Random Numberic Text Lucky Draw
  • Post in cookbook to win a copy of Flex 3 Pro
  • Adobe Flash Player 10 Release is out
  • Adobe CS4 Launch Seminar
  • Flex 3 + external swf with embedded video
  • Flex & AIR @ BarCamp Hong Kong on 6 Sep.
  • Mojave Experiment by Microsoft
  • FotoViewr beta
  • RIAJobs
  • Cairngorm on opensource.adobe.com
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox