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

  1. HomerFaw表示:

    https://apotheekmax.shop/# de online drogist kortingscode

  2. agenolx表示:

    This is a very good tip especially to those fresh to the blogosphere. Brief but very accurate infoÖ Thank you for sharing this one. A must read post!

  3. Derekgroum表示:

    de online drogist kortingscode: Online apotheek Nederland met recept – de online drogist kortingscode

  4. canadian pharmacy norco online pharmacy busted

  5. Thanks a lot for the blog post.Really looking forward to read more. Fantastic.

  6. HomerFaw表示:

    https://apotheekmax.com/# Online apotheek Nederland met recept

  7. Michaeltor表示:

    Apotheek Max: Beste online drogist – Beste online drogist

  8. Malcolmseern表示:

    Online apotheek Nederland zonder recept online apotheek Apotheek Max

  9. Louislen表示:

    http://apotekonlinerecept.com/# apotek online recept

  10. Derekgroum表示:

    online apotheek: Apotheek Max – online apotheek

  11. HomerFaw表示:

    http://apotheekmax.com/# Apotheek Max

  12. Derekgroum表示:

    Kamagra Gel: Kamagra kaufen ohne Rezept – Kamagra online bestellen

  13. Malcolmseern表示:

    Apotheek online bestellen Beste online drogist Beste online drogist

  14. Louislen表示:

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

  15. Michaeltor表示:

    apotek pa nett: Apoteket online – Apotek hemleverans recept

  16. Derekgroum表示:

    Kamagra Oral Jelly kaufen: Kamagra Oral Jelly – Kamagra Original

  17. 爱思表示:

    I am so grateful for your blog post. Cool.

  18. szradiant表示:

    I truly appreciate this blog.Much thanks again. Keep writing.

  19. HomerFaw表示:

    https://kamagrapotenzmittel.shop/# Kamagra Oral Jelly kaufen

  20. Malcolmseern表示:

    Apotek hemleverans idag Apotek hemleverans recept Apotek hemleverans recept

  21. HomerFaw表示:

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

  22. Michaeltor表示:

    Online apotheek Nederland zonder recept: de online drogist kortingscode – Beste online drogist

  23. Derekgroum表示:

    Apoteket online: apotek online – Apotek hemleverans recept

  24. Malcolmseern表示:

    Apoteket online Apotek hemleverans idag apotek online

  25. Derekgroum表示:

    Apotheek Max: Beste online drogist – Online apotheek Nederland met recept

  26. szradiant表示:

    wow, awesome blog.Much thanks again. Cool.

  27. HomerFaw表示:

    https://apotheekmax.com/# de online drogist kortingscode

  28. Michaeltor表示:

    Kamagra Oral Jelly: Kamagra kaufen – Kamagra Oral Jelly kaufen

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

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