域卡的卜 Vicker’s Blog

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

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

Adobe MAX 2008

Vicker | July 4, 2008 | 12:51 am

MAX 2008 已經 open 左 registration 一段時間~

要 reg 就要快 d o係 early bird 完之前 reg 喇~

 

2 年前去過 MAX Vegas

大開眼界而且完全改變左自己既 development path

呢 2 年可以話係賺晒~

今年 MAX San Francisco focus 將會係 Flex 4 同 Thermo 非常期待~!

希望趕得切儲錢去啦~ 哈哈

 

大家留意下 MAX 既 banner~

好有 Indianna Jones feel…

硬係覺得隻 MAX 係 Ted Patrick…

 

P.S. MAX 2009 都好吸引~ 哈哈

 

Adobe MAX 2008 NA

http://max.adobe.com/na/experience/

 

Adobe MAX 2008

http://max.adobe.com/

Related posts

  • Flex FAQ #5: 點樣做 Full Screen Application (0)
  • Adobe MAX 2006 Scheduler (0)
  • 繁忙的秋天 (0)
Comments
No Comments »
Categories
Daily Life, Flex, RIA
Tags
Adobe MAX, AIR, Flex, Ted Patrick, Thermo
Comments rss Comments rss
Trackback Trackback

Google 同 Yahoo! improve Flash indexing

Vicker | July 1, 2008 | 11:07 pm

今日 Google o係 webmaster central blog 公布左佢地已經 improve 左 Flash content 既 indexing power

所有 version 既 Flash content o係唔需要改動既情況底下都可以得到更好既 indexing result

 

同一時間 Adobe 亦o係 Adobe Developer Center 發表左 SWF searchability FAQ

裡面除左有耳熟能詳既 marketing slogan 之外

The openly published SWF specification describes the file format used to deliver rich applications and interactive content via Adobe Flash Player, which is installed on more than 98 percent of Internet-connected computers”

亦有提及到背後既原理

以及 Yahoo! 都會於稍後 update search engine

 

的確~ 咁多年以黎 Flash 都比人彈 SEO

每一次我幫人做 project analysis 既時候

第一句都係問 “application base” 定 “content base”

今次呢個 news 的確幾吸引~

但係問題係唔係就咁就解決呢?!?!

我地係唔係唔再需要寫特登寫 XHTML version / XSL / 一大堆 supportive AS?!?!

言之尚早~!

 

At least… Munsang Biology web d content 仲未 index 到~ 哈哈

 

Anyway~ should be a great start!

 

詳情:

Improved Flash indexing by Google Webmaster Central Blog
http://googlewebmastercentral.bl … flash-indexing.html

SWF searchability FAQ by Adobe Developer Center
http://www.adobe.com/devnet/flas … _searchability.html

Related posts

  • Flex FAQ #3: 點樣用 Flex FileReference 下載檔案 (0)
  • Essential ActionScript 3.0 and ActionScript 3.0 Design Patterns (0)
  • 實力? 運氣? 我信運多 d… (0)
Comments
No Comments »
Categories
Flex, RIA, Web Usability
Tags
ActionScript, Adobe, Flash, Google, SEO, SWF, XHTML, XSL, Yahoo
Comments rss Comments rss
Trackback Trackback

時光倒流第三集 - Adobe MAX 2006

Vicker | April 24, 2007 | 5:19 pm

話說前排部 Mac 機個九方過左期… 結果好耐都無打 blog…
Ahem… 算吧啦… (你買左成個幾月喇)

上年十月誤打誤撞之下破天荒得到 FSE 同 CS 一齊資助我去左 Las Vegas Adobe MAX conference
其實真係十萬個榮幸… 講到底o個時我已經唔係學生… 又只係一個極低層員工… 有得去真係好珍惜~~!!

搭左十幾粒鐘飛機… 再加上 Las Vegas d 的士司機既 “厚待”…
再再加上o個邊 d 消費指數… 當時真係想即刻返香港…
(今年 MAX 2007 o係 Chicago… 去唔去好呢…)

講返個 conference~ 外國 d conference 真係好正~
頭 3 日朝早都有 Keynote session~ 好似做 show 咁~
個 stage 又大又 pro~ 音響又勁~ 入場已經好有 feel~
而且場場都 dem 好多正野~ 特別係 last day sneak peek~ 睇到呆晒…
content 就唔講喇~ 差唔多半年前既 sneak 依家先講咩 =.=||

一個香港人無啦啦咁過去… 除左 John 之外我都唔知同邊個講野好…
始終自己都係 d 唔會主動攪關係o既人… 唔… 點樣改變下好呢…

o係 John 介紹之下識左 Tekono 既 Kazumichi-san
日本人做野都係比較特別既~ 又或者只係 Kazumichi-san 比較特別
佢同我既理念差唔多~ 就係寫 d user 鍾意用既 application~ 錢?!?! second priority…

“比 Dad 聽到實激死佢… 不過我都o係得o個種諗法~
人o係滿足完基本生活需要之後~ 好應該做 d 自己想做既野~
並唔係話滿足於現狀~ 只係唔需要盲目咁去追求…
回望廿年… 自己好多利益都唔係強求既~ 係好自然地從自己喜歡既生活裡面凝聚出黎~
同 Dad 既問題 “未解決”… 遲 d 再講… 只係一講到錢… 又會諗起佢…”

Kazumichi-san 好好人~ 佢支持我寫 FLABER~ 開左一條新既 product line - FLABER Mobile
日本人用手機 d app 用得好盡~ 所以應該會幾受歡迎~
不過我依家就辛苦 d 喇~ 個腦裝晒 AS2 同 AS3 d class… 頭都爆…

Related posts

  • I am going to Adobe MAX to MIN (Blog Entry for MAXUP) (0)
  • 實力? 運氣? 我信運多 d… (0)
  • PURE ACTIONSCRIPT vs FLEX vs LASZLO (0)
Comments
No Comments »
Categories
RIA
Tags
ActionScript, Adobe MAX, FLABER, John Koch, kazumichi nishimura, las vegas, tekono
Comments rss Comments rss
Trackback Trackback

時光倒流第二集 - Thanks FLABER

Vicker | January 24, 2007 | 2:03 am

“點解會寫 FLABER 呢?”
呢個係每次比人訪問既必答題~

4 年 CS 既生活~ 有一樣野我自己唔係咁開心既~
就係唔可以寫自己鍾意寫既 language

C++, 68000, JSP, Servlet, etc… 就係無 Flash…
當然啦~ 我完全明白 CS 教 Flash 係無可能既事
所以呢 4 年我都不停咁自己爭取o係唔同地方用 Flash

Year 1 o個陣 take 既 Internet Communication 我寫左一個 pure Flash 既 web
Year 2 CCIV 我用 Flash 整 navigation menu
Year 2 SEP 我用 Flash 整左 testing progress bars
Year 3 Placement… 哈~ 每日都o係 Expert Exchange 流連~
Year 4 FYP…

FYP 絕對係我盡情發揮既地方~
但先決條件係要有 professor buy 我 idea 做我 supervisor
試問 Flash 做 project… 有幾多 professor 能夠接受呀~ Thanks Andy! 我諗你開頭信心都唔係咁大~

決定做 Flash 之後~ 真係花左好多工夫留意市場上無 d 乜~ 要 d 乜~
最後就做左 FLABER 出黎~

如果 FLABER 係一個人的話~
我諗我會同佢講… “多謝晒~ 你比我既野實在太多~”

事實上我放o係 FLABER 上面既時間真係唔多…
起碼比 Warcraft 少…
但係 FLABER 帶比我既野真係數唔清…

一堆獎項~ 一堆機會~ 一堆朋友~ 一堆回憶~ 唔… 有 d 誇 tim…
其實仲有一堆麻煩~ 一堆工作~ … =.=||

Anyway~ FLABER 2 不遠矣~ :)

061123_flaber

Related posts

  • 實力? 運氣? 我信運多 d… (0)
  • WELCOME and PAST PROGRESS (0)
  • 30 吋 Mac 機王~ (0)
Comments
No Comments »
Categories
FLABER development, RIA
Tags
Andy Chun, cciv, Experts Exchange, FLABER, Flash, FYP, internet communication, jsp, placement, sep, servlet
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

I am going to Adobe MAX to MIN (Blog Entry for MAXUP)

Vicker | September 22, 2006 | 1:06 pm

MAXUP Barcamp
Ben Watson’s We Demo You Going to MAX


Well… The title seems stupid but the actual meaning is not. I am going to Adobe MAX to learn more from the conference and from the other participates. (Of course I will share, in case I am not the least knowledgable one in the event) With that knowledge I can develop even more applications (mainly open source~ nah), so that all the users can minimize their effort, their pain, their time in making great works. That is why I am going to MAX to MIN~ :)

Okay~ Is time talking back the application that I have done in previous year. My application is called FLABER (FLAsh-based web BuildER), it is a pure Flash RIA scripted in ActionScript 2 with PHP as server support. In short, this application allows web owners to easily build a website using Flash technology even if they don’t know how to program in Flash. We have done a testing that even a 10 years old girl can make up her own Flash web site.

Originally this project is started as my final year project in City University of Hong Kong. (in other words… homework…) Since the first public release in SourceForge, I received many great feedbacks from the public. That is why I made FLABER now as an open source product so that everyone can benefits from it :)

Okay~ too many words… here comes some screenshots.

  • The following shows a web that I made using FLABER.

  • Actually it looks like a normal web page but it have on stage controls.

  • For larger images and details, please do a visit to the FLABER Wiki
  • Of course a live-demo is also available here

Actually there’s more for FLABER, that is FARSER (Flaber-xhtml pARSER). This is a PHP program written by one of my friend Tim SHIU. The function can be easily guessed using the program name. It can turn any web done by FLABER into W3C valid XHTML documents with single click~!

  • You can experience yourself right here

Well~ I hope everyone will enjoy using my application~

P.S. A new version is on-the-way coding from zero using ActionScript 3. And of course, I will use any more advanced technologies that I learned in Adobe MAX.

And here comes my portrait~ captured in Osaka, Japan.

060922_maxup

Related posts

  • 時光倒流第三集 - Adobe MAX 2006 (0)
  • Local FLABER and plugin (0)
  • Adobe MAX 2006 Scheduler (0)
Comments
No Comments »
Categories
Daily Life, RIA
Tags
ActionScript, Adobe MAX, Experts Exchange, FLABER, MAXUP, PHP, sourceforge, Tim Shiu, W3C, XHTML
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

TEXTFORMAT and STYLESHEET

Vicker | January 16, 2006 | 12:26 am

Before talking about the already finished prototype 0.3, I think it is better to pin point on the two troublesome items as stated in my heading. That is the TEXTFORMAT and STYLESHEET classes within Flash.The reason that I want to talk about these is that these two little item (seems like little…) troubles me a whole week to work on it. I dont know why, however it seems that Macromedia do have a lot of bugs in these two classes.First, let me introduce these two classes.TEXTFORMAT- A class that is used to apply text formats to a textfield on the stage- It can be applied to the whole textfield, or a portion of it if specified- Adv: It is easy to use and flexible because you can apply on anywhere- Dis: It is hard to maintain and it requires great programming effortSTYLESHEET- Alternative approach to apply text formats- Apply to be whole textfield- Adv: It is surely easy to maintain. Further it can be reused for HTML section- Dis: The text content need to attach many tags in order to apply stylesheetsOkay, actually coding in both approarch is very simple. However there are tons of bugs came out which makes me crazy within this week. So I better mention in the web somewhere to let others preventing these traps.If you are using dynamic textfields with embedded character, you CANNOT use STYLESHEET NOR TEXTFORMAT with FONT-FAMILY settings!!- I put this one so seriously because this bug takes me nights to discover!!!!- If you violate this, the text will simply not displaying… which you will never know that it is related to FONT-FAMILY until you delete your codes line by line…- The possible reason probably is that embedded character will only embed for the current font, so… changing it will make the text simply gone…- For the same reason… If you want to set Bold, Italic, etc. You HAVE to set it in the textfield beforehand. This will make sure that the embeded character will also embed those styles.* Dynamic textfield means that the content of the textfield is defined by external codings.* Embedded characters are essential for animations on textfields.And what I can suggest for future development is that…If you use dynamic textfields… try not to put animations… it will drive you crazy…

Related posts

  • 重返 EE (0)
  • 時光倒流第二集 - Thanks FLABER (0)
  • 實力? 運氣? 我信運多 d… (0)
Comments
No Comments »
Categories
FLABER development, RIA
Tags
Flash, stylesheet, textfield, textformat
Comments rss Comments rss
Trackback Trackback

PURE ACTIONSCRIPT vs FLEX vs LASZLO

Vicker | October 25, 2005 | 12:25 am

Is been a while since my last blog. It is because other assignments hooking me quite a while slowing down my FYP progress. I will chase back this week ^^Last week Andy have given me some wiki references on AFLAX. Having some research on different kinds of technologies and development methodology, the following is my little comparison on them.PURE ACTIONSCRIPT- ECMAScript-based programming language- control Macromedia Flash movies and applicationAdvantage:- flexible and can perform all of the functions in Flash- able to have more rigid linkage between the objects inside the movie and the objects’ class- only Flash player (free) is enough to use the compiled SWF fileDisadvantage:- not easy to learn- the tier concept is not clear, where Flash is both the control and presentation tiersMACROMEDIA FLEX- application server which can compiles Flex mark up language (MXML) and Actionscript to binary SWF file- built in functions and interfaces, e.g. dragNdrop, charting, animation effectsAdvantage:- easy to learn because user dont need to learn Actionscript and also the drawings inside Flash- clearly defined presentation tier for Flash- having standard user interface which increases usabilityDisadvantage:- it costs much (US15000 per CPU quoted from Wikipedia)- not flexible enough, cannot use the full power of FlashLASZLO- presentation server which conpiles LZX to binary SWF files- built in functions and interfaces like Macromedia FlexAdvantage:- the same as Macromedia Flex with an addition that it is freeDisadvantage:- again cannot use the full power of Flash- installation of the server is necessary which it is not always possible for those who pay for web hostingCONCLUSIONIn order to make the product more portable, i.e. can allow any user who have a web space can use it. Pure Actionscript is the best choice. Furthermore, some more powerful Flash functions can be used, e.g. the new Bitmap class in Flash 8 which allows the export of every pixel inside the movie.

Related posts

  • Flex FAQ #3: 點樣用 Flex FileReference 下載檔案 (0)
  • Essential ActionScript 3.0 and ActionScript 3.0 Design Patterns (0)
  • Adobe MAX 2006 Scheduler (0)
Comments
No Comments »
Categories
FLABER development, RIA
Tags
ActionScript, FLABER, Flash, Flex, Laszlo
Comments rss Comments rss
Trackback Trackback

« Previous Entries

Meta

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

Certification


Adobe MAX 2008

Categories

Archives

Tag Cloud

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

Flickr

msc_bio_v1_2.png wanshan.jpg munsang2.jpg 0511_web_usability_asg_b.jpg eagles.jpg msc_bio_v3_4.png 467149871_292083b8cc_o msc_bio_v3_2.png diarybox1.jpg csgame3.jpg munsang1.jpg msc_bio_v2_1.png 28072007078.jpg msc_bio_v3_5.png DSCN4303 csgame2.jpg

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