網頁全螢幕化的Flash動畫

好一陣子沒更新文章了,因為最近把自己弄得很忙,不過在日前的授課中,有同學問到了要如何在網頁中製作一個可以全螢幕化的Flash動畫,教完了之後想想這個範例應該不用花太久時間,所以就順便在這邊分享一下吧!

首先要先會把swf放在網頁上(廢話),接著在Flash中設置一個按鈕,寫下如下的ActionScript:

btn.addEventListener(MouseEvent.CLICK,fullFn)
function fullFn(e:MouseEvent){
	if(stage.displayState == StageDisplayState.NORMAL)
		stage.displayState = StageDisplayState.FULL_SCREEN;
	else
		stage.displayState = StageDisplayState.NORMAL;
}

另外在網頁上也要在HTML中加入下面的參數:

<param name="allowFullscreen" value="true" />

如此一來就可以完成這樣的效果囉!也可以參考一下範例頁面

You may also like...

16,838 Responses

  1. ip2world表示:

    Im thankful for the blog. Great.

  2. MorganThymn表示:

    canadian pharmacy meds: Canadian Pharmacy AAPD – canada drugstore pharmacy rx

  3. RandallLoone表示:

    reliable canadian pharmacy: canadian online pharmacy – canadian pharmacy no rx needed

  4. Charlescek表示:

    mexican drugstore online mexican rx online buying prescription drugs in mexico

  5. Cvwzlu表示:

    cenforce 100mg ca – order aralen 250mg generic glucophage online order

  6. ip2表示:

    I appreciate you sharing this article post.Thanks Again. Awesome.

  7. Charlescek表示:

    Best online Indian pharmacy Indian pharmacy international shipping Indian pharmacy online

  8. MorganThymn表示:

    Online medicine home delivery: Indian Pharmacy Abp – Online medicine home delivery

  9. MorganThymn表示:

    canadianpharmacyworld: best canadian online pharmacy – canadian pharmacy meds

  10. RandallLoone表示:

    India pharmacy ship to USA: Best online Indian pharmacy – indian pharmacy

  11. 信譽平台表示:

    wow, awesome blog article.Thanks Again. Great.

  12. Thanks-a-mundo for the post.Really thank you!

  13. RandallLoone表示:

    canadian pharmacy antibiotics: Canadian Pharmacy AAPD – legitimate canadian online pharmacies

  14. MorganThymn表示:

    mexican border pharmacies shipping to usa: reputable mexican pharmacies online – mexican pharmacy acp

  15. RandallLoone表示:

    pharmacy website india: Best Indian pharmacy – India pharmacy ship to USA

  16. MorganThymn表示:

    mexican pharmacy acp: mexican pharmacy acp – mexican pharmaceuticals online

  17. Charlescek表示:

    purple pharmacy mexico price list mexican online pharmacies prescription drugs mexican pharmacy acp

  18. RandallLoone表示:

    my canadian pharmacy: Canadian Pharmacy AAPD – canadian drugs

  19. Charlescek表示:

    Indian pharmacy online Best Indian pharmacy Indian pharmacy online

  20. RandallLoone表示:

    mexican drugstore online: mexican border pharmacies shipping to usa – mexican border pharmacies shipping to usa

  21. MorganThymn表示:

    Online medicine home delivery: Best online Indian pharmacy – indian pharmacy

  22. MorganThymn表示:

    canadian pharmacy: Canadian Pharmacy AAPD – canadian pharmacy ltd

  23. RandallLoone表示:

    mexican pharmacy acp: mexican pharmacy acp – buying prescription drugs in mexico online

  24. RandallLoone表示:

    Best Indian pharmacy: IndianPharmacyAbp – Online medicine home delivery

  25. MorganThymn表示:

    mexican pharmacy acp: mexican pharmacy acp – buying prescription drugs in mexico online

  26. MorganThymn表示:

    Online medicine home delivery: India pharmacy ship to USA – Indian Pharmacy Abp

  27. Charlescek表示:

    Online medicine home delivery India pharmacy ship to USA indian pharmacy

  28. RandallLoone表示:

    canadian pharmacy world reviews: Canadian Pharmacy AAPD – canada drugs online reviews

  29. Charlescek表示:

    Indian pharmacy international shipping India pharmacy ship to USA Online medicine home delivery

  30. MorganThymn表示:

    best mail order pharmacy canada: canadian drugs – onlinecanadianpharmacy 24

發佈回覆給「MorganThymn」的留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。