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

  1. gas mask表示:

    I think this is a real great blog article. Really Great.

  2. Derekgroum表示:

    Kamagra online bestellen: Kamagra kaufen ohne Rezept – Kamagra Original

  3. Louislen表示:

    https://apotheekmax.shop/# Beste online drogist

  4. Malcolmseern表示:

    online apotheek online apotheek ApotheekMax

  5. Derekgroum表示:

    apotek pa nett: apotek online – apotek pa nett

  6. Michaeltor表示:

    Apotheek Max: Online apotheek Nederland zonder recept – ApotheekMax

  7. I never thought about it that way, but it makes sense!Static ISP Proxies perfectly combine the best features of datacenter proxies and residential proxies, with 99.9% uptime.

  8. Malcolmseern表示:

    Beste online drogist Betrouwbare online apotheek zonder recept ApotheekMax

  9. I cannot thank you enough for the article post.Much thanks again. Keep writing.

  10. Derekgroum表示:

    apotek pa nett: apotek online recept – Apotek hemleverans recept

  11. HomerFaw表示:

    https://apotekonlinerecept.com/# Apotek hemleverans recept

  12. Malcolmseern表示:

    ApotheekMax online apotheek de online drogist kortingscode

  13. Wjosey表示:

    misoprostol cost – orlistat 120mg over the counter diltiazem sale

  14. Michaeltor表示:

    apotek online recept: Apotek hemleverans idag – apotek online recept

  15. jili no 1表示:

    Thanks a lot for the blog.Much thanks again. Much obliged.

  16. Derekgroum表示:

    Apotek hemleverans idag: apotek pa nett – apotek online recept

  17. Malcolmseern表示:

    Apotek hemleverans idag Apoteket online Apotek hemleverans idag

  18. Louislen表示:

    https://kamagrapotenzmittel.shop/# Kamagra online bestellen

  19. HomerFaw表示:

    https://kamagrapotenzmittel.com/# Kamagra Oral Jelly

  20. Derekgroum表示:

    Kamagra Oral Jelly: Kamagra Oral Jelly kaufen – Kamagra Gel

  21. Michaeltor表示:

    Kamagra online bestellen: Kamagra Gel – Kamagra Oral Jelly

  22. HomerFaw表示:

    https://kamagrapotenzmittel.shop/# Kamagra kaufen ohne Rezept

  23. prednisolone cough syrup 325443009 prednisolone is prednisolone a short acting steroid what is prednisolone syrup used for

  24. Malcolmseern表示:

    Kamagra Oral Jelly kaufen Kamagra Gel Kamagra Original

發佈留言

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