網頁全螢幕化的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. Manuelgript表示:

    https://indianpharmacyabp.com/# Indian Pharmacy Abp
    mexico drug stores pharmacies

  2. Manuelgript表示:

    https://indianpharmacyabp.com/# IndianPharmacyAbp
    pharmacies in mexico that ship to usa

  3. MorganThymn表示:

    mexican pharmacy acp: medicine in mexico pharmacies – mexican pharmacy acp

  4. MorganThymn表示:

    buying prescription drugs in mexico: mexican drugstore online – mexican pharmacy acp

  5. Charlescek表示:

    India pharmacy ship to USA Indian pharmacy online indian pharmacy

  6. RandallLoone表示:

    Indian pharmacy online: IndianPharmacyAbp – Indian Pharmacy Abp

  7. RandallLoone表示:

    canada drugs online review: canadian pharmacy 24h com – legit canadian pharmacy

  8. ErnestgeoFt表示:

    http://indianpharmacyabp.com/# India pharmacy ship to USA
    reputable indian pharmacies

  9. Manuelgript表示:

    https://mexicanpharmacyacp.shop/# purple pharmacy mexico price list
    best online pharmacies in mexico

  10. MorganThymn表示:

    canadian pharmacies: canadian pharmacy 24 com – canadian valley pharmacy

  11. MorganThymn表示:

    mexican drugstore online: mexican border pharmacies shipping to usa – mexico drug stores pharmacies

  12. RandallLoone表示:

    best mail order pharmacy canada: reputable canadian pharmacy – onlinecanadianpharmacy

  13. Charlescek表示:

    mexican pharmacy acp mexican drugstore online mexican pharmacy acp

  14. ErnestgeoFt表示:

    https://indianpharmacyabp.shop/# India pharmacy ship to USA
    top 10 pharmacies in india

  15. RandallLoone表示:

    Indian Pharmacy Abp: IndianPharmacyAbp – India pharmacy ship to USA

  16. Manuelgript表示:

    https://canadianpharmacyaapd.shop/# pet meds without vet prescription canada
    medication from mexico pharmacy

  17. RichardAXORP表示:

    https://topmaxfarma.com/# Top Max Farma
    acquistare farmaci senza ricetta

  18. HaroldJally表示:

    Top Max Farma: Top Max Farma – migliori farmacie online 2024

  19. DavidVex表示:

    Top Max Farma Top Max Farma Top Max Farma

  20. Davidornax表示:

    farmacia online senza ricetta: Top Max Farma – п»їFarmacia online migliore

  21. RichardAXORP表示:

    https://topmaxfarma.com/# farmacia online piГ№ conveniente
    Top Max Farma

  22. HaroldJally表示:

    Top Max Farma: farmacia online piГ№ conveniente – Top Max Farma

  23. Davidshony表示:

    https://farmaciamedic.com/# Farmacia Medic
    farmacias online seguras en espaГ±a

  24. JoshuaReill表示:

    Farmacia Medic: Farmacia Medic – Farmacia Medic

  25. Davidshony表示:

    https://farmaciamedic.com/# farmacias online seguras en espaГ±a
    farmacias online seguras

  26. VictorNough表示:

    Farmacia Medic: Farmacia Medic – Farmacia Medic

  27. JamesMax表示:

    Fast From India Fast From India Fast From India
    online shopping pharmacy india

  28. Henryutisa表示:

    Fast From India: Online medicine order – Online medicine home delivery

  29. Jerryacast表示:

    https://fastfromindia.com/# online pharmacy india
    Fast From India

  30. Aaroncrasy表示:

    indianpharmacy com: top 10 online pharmacy in india – Fast From India

發佈留言

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