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

  1. RussellVog表示:

    ciprofloxacin 500 mg tablet price: cipro 500mg best prices – buy cipro online canada

  2. Larrylab表示:

    mexican online pharmacies prescription drugs Pills from Mexican Pharmacy buying prescription drugs in mexico

  3. Larrylab表示:

    canada rx pharmacy world Best Canadian online pharmacy legal canadian pharmacy online

  4. Larrylab表示:

    canadian online drugstore CIPA approved pharmacies reliable canadian pharmacy

  5. Roscoeevern表示:

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

  6. DavidJeado表示:

    canadian discount pharmacy: Pharmacies in Canada that ship to the US – my canadian pharmacy reviews

  7. Chasefounc表示:

    the canadian pharmacy: International Pharmacy delivery – real canadian pharmacy

  8. Roscoeevern表示:

    https://canadianpharmgrx.com/# canadian pharmacy

  9. Larrylab表示:

    canadapharmacyonline Canadian pharmacy prices pharmacies in canada that ship to the us

  10. Larrylab表示:

    best online pharmacies in mexico mexican pharmacy mexico pharmacy

  11. Larrylab表示:

    mexico drug stores pharmacies Pills from Mexican Pharmacy buying prescription drugs in mexico

  12. LamarSix表示:

    п»їbest mexican online pharmacies: Mexico drugstore – medication from mexico pharmacy

  13. Roscoeevern表示:

    https://indianpharmgrx.com/# reputable indian pharmacies

  14. DavidJeado表示:

    Online medicine order: Generic Medicine India to USA – best online pharmacy india

  15. Wxflyw表示:

    brand cleocin 150mg – order vibra-tabs without prescription buy chloromycetin generic

  16. Roscoeevern表示:

    http://canadianpharmgrx.com/# reddit canadian pharmacy

  17. LamarSix表示:

    mail order pharmacy india: Healthcare and medicines from India – indian pharmacies safe

  18. Phwbet表示:

    buy zithromax 500mg – order ciprofloxacin 500mg ciprofloxacin 500mg uk

  19. LamarSix表示:

    reputable indian pharmacies: indian pharmacy online – india online pharmacy

  20. Roscoeevern表示:

    https://indianpharmgrx.shop/# india online pharmacy

  21. Larrylab表示:

    canadian drug prices List of Canadian pharmacies legitimate canadian pharmacy

  22. Larrylab表示:

    canada rx pharmacy List of Canadian pharmacies canadian pharmacy service

  23. Larrylab表示:

    reputable indian online pharmacy Generic Medicine India to USA Online medicine home delivery

  24. Chasefounc表示:

    legit canadian pharmacy: CIPA approved pharmacies – the canadian drugstore

  25. Roscoeevern表示:

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

  26. DavidJeado表示:

    buying from online mexican pharmacy: online pharmacy in Mexico – mexico drug stores pharmacies

  27. Roscoeevern表示:

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

  28. Roscoeevern表示:

    https://mexicanpharmgrx.com/# buying from online mexican pharmacy

  29. DavidJeado表示:

    indian pharmacy paypal: indian pharmacy – india pharmacy mail order

  30. Larrylab表示:

    pharmacy website india indian pharmacy п»їlegitimate online pharmacies india

發佈回覆給「Wxflyw」的留言 取消回覆

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