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

  1. Larrylab表示:

    recommended canadian pharmacies International Pharmacy delivery canadian pharmacy no rx needed

  2. Larrylab表示:

    buy medicines online in india Generic Medicine India to USA best online pharmacy india

  3. LamarSix表示:

    canadianpharmacymeds: Pharmacies in Canada that ship to the US – reliable canadian pharmacy reviews

  4. Roscoeevern表示:

    https://canadianpharmgrx.xyz/# best canadian online pharmacy reviews

  5. Chasefounc表示:

    buy canadian drugs: International Pharmacy delivery – legit canadian pharmacy

  6. Larrylab表示:

    canadian pharmacy prices Canada pharmacy online canadian pharmacy cheap

  7. Larrylab表示:

    best mail order pharmacy canada Canadian pharmacy prices canadian pharmacy meds

  8. DavidJeado表示:

    my canadian pharmacy: Canada pharmacy – canadian pharmacies that deliver to the us

  9. Larrylab表示:

    my canadian pharmacy rx Canadian pharmacy prices canadian pharmacy uk delivery

  10. Roscoeevern表示:

    http://mexicanpharmgrx.com/# best online pharmacies in mexico

  11. LamarSix表示:

    world pharmacy india: indian pharmacy – п»їlegitimate online pharmacies india

  12. Roscoeevern表示:

    http://canadianpharmgrx.xyz/# canadian drugs pharmacy

  13. LamarSix表示:

    canadianpharmacymeds: canadian pharmacy – best mail order pharmacy canada

  14. Larrylab表示:

    indian pharmacy Healthcare and medicines from India indian pharmacy online

  15. Larrylab表示:

    mexican pharmaceuticals online Mexico drugstore purple pharmacy mexico price list

  16. Larrylab表示:

    pharmacy website india Healthcare and medicines from India india pharmacy

  17. DavidJeado表示:

    mexican border pharmacies shipping to usa: mexican pharmacy – medicine in mexico pharmacies

  18. Chasefounc表示:

    mexican mail order pharmacies: Pills from Mexican Pharmacy – buying prescription drugs in mexico

  19. Larrylab表示:

    canadian pharmacy sarasota My Canadian pharmacy canada pharmacy online legit

  20. Larrylab表示:

    Online medicine order Online medicine order reputable indian pharmacies

  21. Larrylab表示:

    top 10 online pharmacy in india indian pharmacy delivery india online pharmacy

  22. DavidJeado表示:

    canadian pharmacy online: Pharmacies in Canada that ship to the US – canadianpharmacyworld

  23. Roscoeevern表示:

    https://indianpharmgrx.com/# indian pharmacy online

  24. LamarSix表示:

    india online pharmacy: indian pharmacy – reputable indian pharmacies

  25. Roscoeevern表示:

    https://indianpharmgrx.com/# top online pharmacy india

  26. Larrylab表示:

    purple pharmacy mexico price list purple pharmacy mexico price list mexico drug stores pharmacies

  27. Larrylab表示:

    canadian pharmacy no rx needed List of Canadian pharmacies canadian pharmacy prices

  28. Larrylab表示:

    top 10 pharmacies in india indian pharmacy delivery best india pharmacy

  29. DavidJeado表示:

    india pharmacy mail order: indian pharmacy delivery – pharmacy website india

  30. LamarSix表示:

    indian pharmacy online: indian pharmacy – reputable indian pharmacies

發佈留言

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