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

  1. Jamesavata表示:

    пинап казино – пинап казино

  2. Dwayneseisa表示:

    Generic 100mg Easy Generic100mgEasy Generic100mgEasy

  3. JesseDex表示:

    пин ап казино зеркало: https://pinupkz.life/

  4. Williamuniot表示:

    пин ап – пин ап вход

  5. JesseDex表示:

    пин ап зеркало: https://pinupkz.life/

  6. Jamesavata表示:

    пин ап зеркало – пин ап зеркало

  7. Dwayneseisa表示:

    buy cialis pill cialis without a doctor prescription TadalafilEasyBuy.com

  8. JesseDex表示:

    пинап казино: https://pinupkz.life/

  9. JesseDex表示:

    пин ап казино: https://pinupkz.life/

  10. Muchos Gracias for your blog post.Much thanks again. Great.

  11. Muchos Gracias for your blog post.

  12. Jamesavata表示:

    пин ап казино зеркало – пин ап зеркало

  13. JesseDex表示:

    pinup 2025: https://pinupkz.life/

  14. Dwayneseisa表示:

    Tadalafil Easy Buy TadalafilEasyBuy.com Generic Cialis price

  15. GregoryJough表示:

    TadalafilEasyBuy.com: Tadalafil Easy Buy – Tadalafil Easy Buy

  16. Kennethslity表示:

    https://kamagrakopen.pro/# Kamagra Kopen Online

  17. WilliamNop表示:

    kamagra pillen kopen: Kamagra Kopen – KamagraKopen.pro

  18. TerryDus表示:

    https://generic100mgeasy.com/# buy generic 100mg viagra online

  19. Dwayneseisa表示:

    Generic 100mg Easy Generic 100mg Easy Generic100mgEasy

  20. GregoryJough表示:

    TadalafilEasyBuy.com: TadalafilEasyBuy.com – cialis without a doctor prescription

  21. GregoryJough表示:

    Kamagra Kopen: Kamagra – kamagra jelly kopen

  22. Kennethslity表示:

    https://generic100mgeasy.shop/# buy generic 100mg viagra online

  23. Dwayneseisa表示:

    KamagraKopen.pro Kamagra Kopen Online Kamagra Kopen

  24. TerryDus表示:

    https://kamagrakopen.pro/# Officiele Kamagra van Nederland

  25. WilliamNop表示:

    cialis without a doctor prescription: Tadalafil Easy Buy – Tadalafil Easy Buy

  26. GregoryJough表示:

    cialis without a doctor prescription: Tadalafil Easy Buy – cialis without a doctor prescription

  27. check out表示:

    When someоne writers an piece of writing he/shе retainsthe image оf a user in һis/her brain thathߋw a uѕer can understand it. Thus that’s why this post is perfect.Thanks!My blog ρost – agen poker online

  28. Kennethslity表示:

    https://tadalafileasybuy.shop/# Tadalafil Easy Buy

  29. Heya i am for the first time here. I came across this board and I to find It truly useful & it helped me out a lot. I am hoping to present one thing back and aid others like you helped me.

  30. GregoryJough表示:

    Kamagra Kopen Online: Officiele Kamagra van Nederland – kamagra kopen nederland

發佈留言

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