Flash翻轉式影片播放器
這是一個結合Tweener和影片的範例,主要的目的是利用Flash載入外部視訊來播放,順帶利用ActionScript來做畫面的翻轉,翻轉後可以詳細介紹該影片的資訊,或是版權宣告等,先看看範例頁面,檔案下載,要製作這樣的動畫,首先要先準備一段影片檔,我的範例中所準備的是利用數位相機拍攝出來的影片,再利用Adobe Media Encoder轉換成大小為640×360,F4V格式的影片,再利用Flash內建的組件FLVPlayback來播放。
資料夾檔案結構如下:
- Caurina是Tweener Class大家可以到Tweener的官網下載,前述文章有連結。
- 3dflip.fla、3dflip.html、3dflip.swf是Flash的原始檔、網頁檔以及播放檔。
- Shengxing為本範例所使用到的影片檔。
- SkinUnderPlaySeekMute為播放器的面板檔。
而在下圖是在Flash中的結構:
- container是包含播放器、解說文字的影片片段,該元件包含FLVPlayback播放器組件(Video)和解說文字(Text)兩個圖層。
- FLVPlayback是Flash內建的影片播放器組件。
- loading影片載入時會出現的文字。
- spin影片右上角旋轉的按鈕。
- text包含有介紹文字的影片片段,文字中亦製作有超連結(維基百科)。
- vid如果有自己的影片想要更換,請進入名為Vid的影片片段中利用屬性面板修改。
本範例所包含的ActionScript都在場景中的第一個影格,程式碼如下:
import caurina.transitions.*; import fl.video.*; con.visible = false; var flv:FLVPlayback = con.vid.flvp; flv.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, onStart); function onStart(e:Event):void { con.visible = true; loading.visible = false; } con.vid.spin.addEventListener(MouseEvent.CLICK, cl); con.tclip.spin.addEventListener(MouseEvent.CLICK, cl); var isTurning:Boolean = false; function cl(e:Event):void { if(!isTurning) { Tweener.addTween(con, {rotationY:con.rotationY+180,time:1, onComplete:function(){isTurning=false;}}); isTurning = true; } } addEventListener(Event.ENTER_FRAME, loop); function loop(e:Event):void { if(con.rotationY > 90 && con.rotationY < 270) con.addChild(con.tclip); else con.addChild(con.vid); if(con.rotationY >= 360) con.rotationY = 0; }
rabeprazole canada – domperidone canada domperidone pill
Great post but I was wanting to know if you could write a litte more on this subject? I’d be very grateful if you could elaborate a little bit more. Thanks!
@@G@@
https://www.mysportsgo.com/forums/topic/27702/i-m-curious-about-the-process-of-converting/view/post_id/789948
https://kkc-cleaning.ru/
https://www.nytimes.com/2017/10/10/arts/design/augmented-reality-jeff-koons.html
купить энтеогены https://travelservic.ru
https://bicrypto.exchange – crypto exchange software. White label, open-source exchange solution with a focus on a super-fast, pixel-perfect interface and robust security. High-performance platform with a robust internal architecture. Leverages the capabilities of Nuxt3 to create a cutting-edge user interface.
ауяска в москве дикая дагга купить
рефераты на заказ https://kupit-referat213.ru
решение задач на заказ https://resheniye-zadach7.ru заказать онлайн
курсовые работы на заказ https://zakazat-kontrolnuyu7.ru
заказ такси в новочеркасске по телефону недорого аренда такси
вызвать такси в новочеркасске служба такси телефон
Hmm is anyone else encountering problems with the pictures on this blog loading? I’m trying to find out if its a problem on my end or if it’s the blog. Any responses would be greatly appreciated.
@@G@@
https://npbau.ru/kak-oformit-virtualnyj-nomer-dlya-priema-sms
Hey very nice website!! Guy .. Excellent .. Amazing .. I will bookmark your blog and take the feeds also? I’m glad to search out numerous helpful info right here in the submit, we want develop extra techniques on this regard, thank you for sharing. . . . . .
@@G@@
https://sylnaukraina.com.ua/servis/ip-telefoniya-dlya-ofisa-ili-doma.html
https://cleanprofispb.ru/
https://primexdon.ru/
заказ такси недорого https://taxi-vyzvat.ru
такси новочеркасск https://zakaz-taxionline.ru
телефон такси https://taxi-novocherkassk.ru
This piece of writing gives clear idea designed for
the new people of blogging, that truly how to do running a blog. http://sgtest.wikiwake.org/mediawiki-1.39.6/Utente:BJYRubye2356
https://kristall-klining.ru/
https://vulkan-na-dengy.com/
курсовые работы на заказ https://zakazat-kursovuyu-rabotu7.ru
корпоративное такси вызов такси в новочеркасске
hip hop music marketing companies free soundcloud plays
buy real targeted youtube views https://promobanger.com/
get votes for online contest https://promobanger.com/
free music promotion music promotion
cheapest smm panel https://promospanel.com
smm provider smm panels list