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

  1. Jaimevoink表示:

    cytotec abortion pill cytotec buy online usa Cytotec 200mcg price

  2. JimmieTup表示:

    https://cytotec.top/# Abortion pills online

  3. RobertUnmab表示:

    2 prinivil: zestoretic 20 25mg – 10 mg lisinopril tablets

  4. Zxhltr表示:

    valif online introduce – valif online fascinate sinemet medication

  5. JimmieTup表示:

    https://cytotec.top/# buy cytotec online fast delivery

  6. ArmandoDat表示:

    buy generic ciprofloxacin: buy cipro online without prescription – cipro pharmacy

  7. Jaimevoink表示:

    buy cytotec over the counter purchase cytotec purchase cytotec

  8. JimmieTup表示:

    http://ciprofloxacin.cheap/# ciprofloxacin

  9. RobertUnmab表示:

    cytotec online: buy cytotec online fast delivery – cytotec pills buy online

  10. ArmandoDat表示:

    lisinopril 12.5: cheap lisinopril no prescription – rx drug lisinopril

  11. RobertUnmab表示:

    buy zithromax: zithromax price south africa – zithromax 1000 mg online

  12. JimmieTup表示:

    https://ciprofloxacin.cheap/# cipro pharmacy

  13. JimmieTup表示:

    http://clomid.store/# where can i buy cheap clomid without a prescription

  14. Jaimevoink表示:

    zestril medication buy zestril 20 mg online lisinopril 20 mg canadian

  15. ArmandoDat表示:

    zithromax over the counter uk: zithromax 500 mg – order zithromax without prescription

  16. Jaimevoink表示:

    generic zithromax india zithromax 500 mg lowest price pharmacy online how to get zithromax over the counter

  17. JimmieTup表示:

    https://clomid.store/# where can i buy cheap clomid without insurance

  18. RobertUnmab表示:

    order cytotec online: order cytotec online – buy cytotec over the counter

  19. JimmieTup表示:

    https://ciprofloxacin.cheap/# buy cipro online canada

  20. Jaimevoink表示:

    buy ciprofloxacin cipro pharmacy ciprofloxacin 500mg buy online

  21. Jaimevoink表示:

    lisinopril cost 5mg lisinopril 40 mg india generic prinivil

  22. RobertUnmab表示:

    lisinopril india price: lisinopril 5 mg over the counter – lisinopril 100mcg

  23. JimmieTup表示:

    https://cytotec.top/# buy cytotec pills

  24. RobertUnmab表示:

    buy misoprostol over the counter: cytotec buy online usa – buy cytotec in usa

  25. JimmieTup表示:

    http://clomid.store/# how to buy generic clomid for sale

  26. Jaimevoink表示:

    lisinopril 420 1g lisinopril 10mg price in india zestoretic 20 25 mg

  27. RobertUnmab表示:

    lisinopril tab 5 mg price: zestoretic 20 12.5 mg – lisinopril price

  28. JimmieTup表示:

    https://ciprofloxacin.cheap/# buy cipro online without prescription

  29. RobertUnmab表示:

    zestril 10mg price: lisinopril 5mg pill – cost of prinivil

  30. ArmandoDat表示:

    zithromax cost uk: buy zithromax canada – zithromax capsules australia

發佈留言

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