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

  1. Trenterone表示:

    www india pharm: www india pharm – Online medicine home delivery

  2. EdwinWency表示:

    legit canadian pharmacy online: go canada pharm – canadian online pharmacy

  3. Trenterone表示:

    canadian pharmacies online: go canada pharm – canadian world pharmacy

  4. ChesterFus表示:

    canadian pharmacy: GoCanadaPharm – best canadian pharmacy

  5. RobertPaync表示:

    canadian pharmacy meds legitimate canadian online pharmacies maple leaf pharmacy in canada

  6. MatthewTek表示:

    http://agbmexicopharm.com/# medicine in mexico pharmacies

  7. EdwinWency表示:

    indianpharmacy com: www india pharm – best india pharmacy

  8. Trenterone表示:

    canadian online pharmacy reviews: reputable canadian online pharmacies – canada pharmacy world

  9. ChesterFus表示:

    www india pharm: www india pharm – indian pharmacy online

  10. Trenterone表示:

    safe online pharmacies in canada: go canada pharm – canada drug pharmacy

  11. ChesterFus表示:

    canadianpharmacymeds com: GoCanadaPharm – prescription drugs canada buy online

  12. EdwinWency表示:

    www india pharm: mail order pharmacy india – top 10 online pharmacy in india

  13. all we want is of course a firm skin that is very smooth. great skin comes with great genetics and proper maintennance~

  14. RobertPaync表示:

    india online pharmacy www india pharm mail order pharmacy india

  15. Trenterone表示:

    www india pharm: www india pharm – best online pharmacy india

  16. Trenterone表示:

    indian pharmacy online: best india pharmacy – www india pharm

  17. ChesterFus表示:

    www india pharm: www india pharm – buy prescription drugs from india

  18. RobertPaync表示:

    Agb Mexico Pharm best online pharmacies in mexico Agb Mexico Pharm

  19. EdwinWency表示:

    buying prescription drugs in mexico: pharmacies in mexico that ship to usa – pharmacies in mexico that ship to usa

  20. MatthewTek表示:

    https://agbmexicopharm.com/# mexican mail order pharmacies

  21. Trenterone表示:

    reputable indian online pharmacy: www india pharm – best online pharmacy india

  22. ChesterFus表示:

    canada pharmacy online: online canadian pharmacy – canadian pharmacy

  23. Trenterone表示:

    Agb Mexico Pharm: best online pharmacies in mexico – Agb Mexico Pharm

  24. RobertPaync表示:

    safe canadian pharmacy GoCanadaPharm canadian world pharmacy

  25. EdwinWency表示:

    canadian pharmacies online: canadian pharmacy in canada – best canadian online pharmacy

  26. MatthewTek表示:

    https://gocanadapharm.shop/# my canadian pharmacy

  27. Trenterone表示:

    Agb Mexico Pharm: Agb Mexico Pharm – Agb Mexico Pharm

  28. ChesterFus表示:

    canadian online pharmacy: reputable canadian pharmacy – canadian pharmacy

  29. EdwinWency表示:

    canadian pharmacy sarasota: go canada pharm – reputable canadian online pharmacy

  30. Trenterone表示:

    canada pharmacy reviews: go canada pharm – my canadian pharmacy review

發佈留言

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