網頁全螢幕化的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,727 Responses

  1. Josephsip表示:

    188bet 88bet: 188bet 88bet – 188bet 88bet

  2. Rubengax表示:

    alo 789 dang nh?p alo789 chinh th?c alo 789 dang nh?p

  3. BernardFax表示:

    789alo: alo789hk – alo 789 dang nh?p

  4. Curtismence表示:

    http://88betviet.pro/# 88bet slot

  5. BernardFax表示:

    nha cai 88bet: 88bet slot – 88bet

  6. Thanks again for the blog.Thanks Again. Want more.

  7. Stevenkated表示:

    https://k8viet.guru/# k8 bet

  8. iZiSwap表示:

    Elon Musk’s X eyeing capital raise at $44B valuation: Report

  9. Rubengax表示:

    alo789 alo789hk alo789 dang nh?p

  10. Josephsip表示:

    alo789: alo789 dang nh?p – alo789

  11. Josephsip表示:

    k8 th? dam: k8 bet – k8

  12. Curtismence表示:

    https://k8viet.guru/# nha cai k8

  13. Somebody necessarily lend a hand to make seriously articles I would state. This is the very first time I frequented your website page and to this point? I surprised with the analysis you made to create this actual submit incredible. Wonderful process!

  14. BernardFax表示:

    alo 789: dang nh?p alo789 – alo789

  15. Rubengax表示:

    88bet slot keo nha cai 88bet 88 bet

  16. Curtismence表示:

    https://88betviet.pro/# keo nha cai 88bet

  17. Josephsip表示:

    k8 bet: nha cai k8 – k8 th? dam

  18. BernardFax表示:

    88bet: keo nha cai 88bet – 88 bet

  19. Josephsip表示:

    88bet: 88 bet – 88bet

  20. Stevenkated表示:

    https://alo789.auction/# alo789 dang nh?p

  21. Curtismence表示:

    https://k8viet.gurum/# link vao k8

  22. Rubengax表示:

    alo 789 alo 789 alo 789

  23. Im grateful for the blog.Thanks Again.

  24. Josephsip表示:

    alo789 dang nh?p: dang nh?p alo789 – 789alo

  25. Josephsip表示:

    k8vip: nha cai k8 – nha cai k8

  26. These are really great ideas in on the topic of blogging. You have touched some fastidious points here.Any way keep up wrinting.

發佈留言

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