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

  1. Donaldabula表示:

    buy Viagra online FastPillsForMen Cheap Sildenafil 100mg

  2. Barrybib表示:

    buy ed meds: FastPillsEasy – ed meds on line

  3. BrettTIT表示:

    Viagra Tablet price: best price for viagra 100mg – Cheapest Sildenafil online

  4. Donaldabula表示:

    buy Viagra over the counter FastPillsForMen.com Cheap Viagra 100mg

  5. Barrybib表示:

    discount ed meds: FastPillsEasy – erectile dysfunction medications online

  6. BrettTIT表示:

    cheap ed meds online: order ed pills – online erectile dysfunction prescription

  7. Donaldabula表示:

    boner pills online FastPillsEasy cheapest ed treatment

  8. RogerFaf表示:

    http://fastpillsformen.com/# Cheap Viagra 100mg

  9. Donaldabula表示:

    sildenafil online buy viagra online Cheapest Sildenafil online

  10. BrettTIT表示:

    cheap ed medication: cheap cialis – discount ed meds

  11. Barrybib表示:

    edmeds: FastPillsEasy – erection pills online

  12. BrettTIT表示:

    ed online prescription: low cost ed meds – online prescription for ed

  13. Donaldabula表示:

    Viagra online price FastPillsForMen Generic Viagra online

  14. Barrybib表示:

    viagra canada: Fast Pills For Men – buy viagra here

  15. xvideos表示:

    If sone onee wantys expert vjew about runnjing a blokg fter hat
    i sugggest him/her tto ppay a visut thus website, Keep
    up tthe good work.

  16. Donaldabula表示:

    Viagra online price viagra canada Viagra generic over the counter

  17. BrettTIT表示:

    over the counter sildenafil: Buy generic 100mg Viagra online – cheap viagra

  18. BrettTIT表示:

    online ed medications: erectile dysfunction pills for sale – п»їed pills online

  19. Donaldabula表示:

    buy cialis pill Cialis 20mg price Tadalafil price

  20. Barrybib表示:

    Cheap generic Viagra online: cheap viagra – Cheap generic Viagra online

  21. RogerFaf表示:

    http://fastpillseasy.com/# ed meds cheap

  22. Donaldabula表示:

    Tadalafil price MaxPillsForMen.com Buy Tadalafil 5mg

  23. BrettTIT表示:

    Buy Tadalafil 20mg: Buy Tadalafil 10mg – Tadalafil price

  24. Barrybib表示:

    Tadalafil price: buy cialis online – Cialis over the counter

  25. RogerFaf表示:

    https://maxpillsformen.com/# Cialis over the counter

  26. BrettTIT表示:

    cheap ed medicine: FastPillsEasy – cheapest ed pills

  27. Donaldabula表示:

    п»їcialis generic MaxPillsForMen Generic Tadalafil 20mg price

  28. Charlesbot表示:

    http://maxpillsformen.com/# п»їcialis generic

  29. RogerFaf表示:

    https://fastpillsformen.com/# Viagra online price

  30. Donaldabula表示:

    discount ed meds cheap ed medication ed treatment online

發佈留言

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