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

  1. RobertPaync表示:

    mexico drug stores pharmacies buying prescription drugs in mexico pharmacies in mexico that ship to usa

  2. EdwinWency表示:

    www india pharm: reputable indian online pharmacy – world pharmacy india

  3. Malcolmseern表示:

    apotek pa nett apotek pa nett Apotek hemleverans recept

  4. Louislen表示:

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

  5. HomerFaw表示:

    https://apotheekmax.shop/# Betrouwbare online apotheek zonder recept

  6. Major thankies for the blog post. Great.

  7. Derekgroum表示:

    Apotheek Max: Apotheek online bestellen – Beste online drogist

  8. Malcolmseern表示:

    Apotheek online bestellen online apotheek Online apotheek Nederland met recept

  9. Michaeltor表示:

    Kamagra kaufen ohne Rezept: Kamagra Gel – Kamagra Gel

  10. Louislen表示:

    https://apotheekmax.shop/# Apotheek online bestellen

  11. Derekgroum表示:

    ApotheekMax: de online drogist kortingscode – Betrouwbare online apotheek zonder recept

  12. HomerFaw表示:

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

  13. Malcolmseern表示:

    kamagra Kamagra kaufen Kamagra Oral Jelly

  14. Derekgroum表示:

    Apotek hemleverans idag: apotek online – apotek pa nett

  15. Michaeltor表示:

    apotek online recept: apotek online recept – apotek online

  16. local seo表示:

    I need to to thank you for this very good read!! I definitely enjoyed every little bit of it. I have you saved as a favorite to look at new stuff you post…

  17. Derekgroum表示:

    Kamagra kaufen ohne Rezept: Kamagra online bestellen – Kamagra kaufen ohne Rezept

  18. HomerFaw表示:

    https://apotekonlinerecept.shop/# apotek online recept

  19. Malcolmseern表示:

    Kamagra Oral Jelly kaufen Kamagra Gel Kamagra Oral Jelly

  20. Derekgroum表示:

    apotek online recept: apotek online – Apoteket online

  21. Michaeltor表示:

    Kamagra kaufen: Kamagra kaufen ohne Rezept – Kamagra Oral Jelly kaufen

  22. Michaeltor表示:

    de online drogist kortingscode: ApotheekMax – online apotheek

  23. Malcolmseern表示:

    Kamagra Original Kamagra kaufen ohne Rezept Kamagra kaufen

  24. Derekgroum表示:

    ApotheekMax: ApotheekMax – ApotheekMax

  25. Louislen表示:

    http://apotekonlinerecept.com/# Apotek hemleverans idag

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

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