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

14,488 Responses

  1. Richardevics表示:

    plavix best price best price on generic Cost of Plavix without insurance

  2. Trenttat表示:

    http://stromectol1st.shop/# ivermectin 250ml
    ed drug prices

  3. Charleszed表示:

    buy clopidogrel online: clopidogrel – plavix best price

  4. Travismut表示:

    buy plavix: Cost of Plavix without insurance – antiplatelet drug

  5. Richardevics表示:

    Semaglutide pharmacy price more good price

  6. Arthurfrunc表示:

    https://stromectol1st.shop/# ivermectin 3
    online shopping pharmacy india

  7. Trenttat表示:

    https://stromectol1st.shop/# what does minocycline treat
    male enhancement pills

  8. Charleszed表示:

    cheap plavix antiplatelet drug: check clopidogrel pro – buy plavix

  9. Travismut表示:

    semaglutide: rybelsus price – order Rybelsus

  10. Richardevics表示:

    rybelsus generic cheaper cheaper

  11. Distilling hard to understand concepts into readable content, or what I like to call, a miracle.

  12. Trenttat表示:

    https://paxlovid1st.shop/# paxlovid cost without insurance
    best pills for ed

  13. Arthurfrunc表示:

    https://stromectol1st.shop/# minocycline 50mg without prescription
    reputable indian pharmacies

  14. Charleszed表示:

    paxlovid buy: shop – п»їpaxlovid

  15. Travismut表示:

    Semaglutide pharmacy price: rybelsus generic – Semaglutide pharmacy price

  16. Trenttat表示:

    http://clopidogrel.pro/# clopidogrel bisulfate 75 mg
    canadian online drugs

  17. Gregorypurne表示:

    causes of ed https://mexicanpharm24.pro/# mexico pharmacies prescription drugs

  18. Dlqopk表示:

    cozaar brand – buy losartan buy keflex

  19. AgustinBougs表示:

    https://indianpharmdelivery.com/# cheapest online pharmacy india
    buy prescription drugs from india

  20. BrandonJer表示:

    cialis without a doctor’s prescription drugs and medications viagra without doctor prescription amazon

  21. AgustinBougs表示:

    http://drugs24.pro/# medications online
    indian pharmacy

  22. BrandonJer表示:

    homeopathic remedies for ed is ed reversible ed medications over the counter

  23. DennisKah表示:

    world pharmacy india: indianpharmacy com – pharmacy website india

  24. AgustinBougs表示:

    http://indianpharmdelivery.com/# buy medicines online in india
    indian pharmacy

  25. BrandonJer表示:

    natural ed drugs pet meds without vet prescription can ed be reversed

  26. Mkufvo表示:

    buy cleocin 150mg without prescription – indomethacin 75mg tablet buy indomethacin no prescription

  27. RichardThini表示:

    indianpharmacy com: cheapest online pharmacy india – online pharmacy india

  28. BrandonJer表示:

    ed cures that work ed meds pills drugs comfortis without vet prescription

  29. DennisKah表示:

    best ed solution: canadian drugs – vitality ed pills

  30. RichardThini表示:

    indian pharmacy paypal: best online pharmacy india – pharmacy website india

發佈留言

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