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

    best online pharmacies in mexico: mexican pharmacy acp – mexico drug stores pharmacies

  2. RandallLoone表示:

    canadian pharmacies compare: canadian pharmacy india – canadian pharmacy 24 com

  3. RandallLoone表示:

    canadian pharmacy uk delivery: Canadian Pharmacy AAPD – onlinecanadianpharmacy

  4. MorganThymn表示:

    mexican pharmacy acp: mexican pharmacy acp – mexican border pharmacies shipping to usa

  5. MorganThymn表示:

    best canadian online pharmacy: Canadian Pharmacy AAPD – canadadrugpharmacy com

  6. Manuelgript表示:

    https://indianpharmacyabp.com/# IndianPharmacyAbp
    best online pharmacies in mexico

  7. RandallLoone表示:

    canadian pharmacy service: online canadian pharmacy reviews – canadian pharmacy ltd

  8. RandallLoone表示:

    canadian pharmacy near me: Canadian Pharmacy AAPD – safe reliable canadian pharmacy

  9. Noytxw表示:

    atorvastatin 10mg cost – order amlodipine for sale oral lisinopril

  10. MorganThymn表示:

    mexican pharmacy acp: reputable mexican pharmacies online – mexican pharmacy acp

  11. Manuelgript表示:

    https://indianpharmacyabp.com/# Best online Indian pharmacy
    mexican pharmaceuticals online

  12. MorganThymn表示:

    Best online Indian pharmacy: Indian pharmacy international shipping – IndianPharmacyAbp

  13. Manuelgript表示:

    http://indianpharmacyabp.com/# Online medicine home delivery
    mexico drug stores pharmacies

  14. RandallLoone表示:

    canada pharmacy online: Canadian Pharmacy AAPD – canadian pharmacy

  15. RandallLoone表示:

    Indian pharmacy international shipping: indian pharmacy – Best online Indian pharmacy

  16. Charlescek表示:

    IndianPharmacyAbp indian pharmacy online shopping pharmacy india

  17. MorganThymn表示:

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

  18. Manuelgript表示:

    https://canadianpharmacyaapd.shop/# canada online pharmacy
    mexican pharmaceuticals online

  19. MorganThymn表示:

    mexican pharmacy acp: mexico drug stores pharmacies – п»їbest mexican online pharmacies

  20. Manuelgript表示:

    http://mexicanpharmacyacp.com/# mexican pharmacy acp
    mexican mail order pharmacies

  21. RandallLoone表示:

    my canadian pharmacy reviews: canadian pharmacy meds reviews – canadian world pharmacy

  22. Charlescek表示:

    п»їlegitimate online pharmacies india Indian Pharmacy Abp Best online Indian pharmacy

  23. RandallLoone表示:

    Best online Indian pharmacy: Indian pharmacy online – Indian pharmacy international shipping

  24. Manuelgript表示:

    https://canadianpharmacyaapd.com/# canada discount pharmacy
    mexican pharmaceuticals online

  25. MorganThymn表示:

    Online medicine home delivery: Indian pharmacy international shipping – Online medicine home delivery

  26. Manuelgript表示:

    https://mexicanpharmacyacp.shop/# mexican pharmacy acp
    п»їbest mexican online pharmacies

  27. MorganThymn表示:

    mexican pharmacy acp: mexican pharmaceuticals online – mexican pharmacy acp

  28. RandallLoone表示:

    canadian pharmacy meds review: Canadian Pharmacy AAPD – safe canadian pharmacy

  29. Charlescek表示:

    canada discount pharmacy canadian drugs online canadian world pharmacy

  30. RandallLoone表示:

    pharmacy in canada: canadian pharmacy ltd – canadian pharmacy

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

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