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

  1. CarlosSlala表示:

    ed vacuum pumps: canada pharmacy online – shots for ed

  2. Frankmor表示:

    buy prescription drugs online https://mexicanpharmeasy.com/# medicine in mexico pharmacies

  3. Scottlully表示:

    best online pharmacies in mexico: Pharm Easy – mexican pharmaceuticals online

  4. AdolfoAnove表示:

    ed pills that work: canadianpharm1st.com – ed clinics

  5. Thomasjoync表示:

    mail order pharmacy india IndianPharmStar.com pharmacy website india

  6. Frankmor表示:

    male erection http://mexicanpharmeasy.com/# medication from mexico pharmacy

  7. CarlosSlala表示:

    how to fix ed: canadian pharm – buy prescription drugs without doctor

  8. Scottlully表示:

    is it illegal to buy prescription drugs online: canadian pharm – buy ed pills

  9. AdolfoAnove表示:

    buying prescription drugs in mexico online: Pharm Easy – п»їbest mexican online pharmacies

  10. Frankmor表示:

    cheapest ed pills http://canadianpharm1st.com/# top ed pills

  11. Scottlully表示:

    best pill for ed: canadian pharm 1st – injectable ed drugs

  12. Ckopoo表示:

    eriacta reasonable – sildigra breathless forzest blossom

  13. CarlosSlala表示:

    mexican pharmaceuticals online: MexicanPharmEasy – buying from online mexican pharmacy

  14. Thomasjoync表示:

    erectile dysfunction pills canadian pharm sildenafil without a doctor’s prescription

  15. Thomasjoync表示:

    ed and diabetes canada pharmacy online natural treatments for ed

  16. AdolfoAnove表示:

    shots for ed: canadianpharm1st – best over the counter ed pills

  17. Scottlully表示:

    male dysfunction treatment: canadianpharm1st – ed medications online

  18. CarlosSlala表示:

    top 10 online pharmacy in india: IndianPharmStar – indian pharmacy

  19. Scottlully表示:

    ed treatment drugs: canadianpharm1st.com – ed natural remedies

  20. AdolfoAnove表示:

    ed treatments that really work: canadianpharm1st.com – drug store online

  21. Thomasjoync表示:

    indian pharmacy indian pharm india online pharmacy

  22. AdolfoAnove表示:

    best india pharmacy: indian pharm star – Online medicine order

  23. Frankmor表示:

    cheap pet meds without vet prescription http://canadianpharm1st.com/# ed drugs compared

  24. CarlosSlala表示:

    п»їbest mexican online pharmacies: mexican pharmacy – best online pharmacies in mexico

  25. Scottlully表示:

    mail order pharmacy india: IndianPharmStar – reputable indian online pharmacy

  26. Thomasjoync表示:

    purple pharmacy mexico price list mexican pharmacy mexican drugstore online

  27. sexo hero表示:

    I got thhis ite freom my ppal who told me onn the topic
    of this sitte aand now this timee I am browsing this website and reading veryy informative posts here.

  28. Frankmor表示:

    natural ed https://mexicanpharmeasy.com/# mexican drugstore online

  29. AdolfoAnove表示:

    Online medicine home delivery: indian pharm star – reputable indian pharmacies

  30. Scottlully表示:

    indian pharmacies safe: indian pharm star – pharmacy website india

發佈留言

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