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; }
additional hints MetaMask Download
read the full info here MetaMask Download
az parayla cok kazandiran slot oyunlar? slot casino siteleri az parayla cok kazandiran slot oyunlar?
sweet bonanza demo oyna: sweet bonanza slot – sweet bonanza slot
быстрый вывод из запоя в стационаре быстрый вывод из запоя в стационаре .
Go Here Metamask Extension
What Is 99 Litre Chest Freezer And How To Utilize What Is 99 Litre Chest Freezer And
How To Use chest freezers sale uk (Marie)
deneme bonusu veren siteler: yeni deneme bonusu veren siteler – deneme bonusu veren yeni siteler
Hello, after reading this awesome post i am also glad to share my knowledge here with friends.
https://slovo-pacana.info/
https://babaiki.ru/ — Узнайте больше о наших услугах и возможностях по индивидуальному заказу кухни.
Great post. I will be experiencing many of these issues as well..
What’s The Job Market For Slim Wine Refrigerator
Professionals? inbuilt wine fridge
http://www.jfair.ru — современный подход к проектированию кухни.
slot casino siteleri: guvenilir slot siteleri – en cok kazand?ran slot oyunlar?
en cok kazand?ran slot oyunlar?: slot oyunlar? puf noktalar? – en cok kazand?ran slot oyunlar?
вывод из запоя круглосуточно сочи вывод из запоя круглосуточно сочи .
I really love your site.. Great colors & theme. Did you develop this amazing site yourself? Please reply back as I’m trying to create my own personal site and want to know where you got this from or just what the theme is named. Appreciate it.
slot siteleri slot oyunlar? guvenilir slot siteleri
sweet bonanza oyna: sweet bonanza yorumlar – sweet bonanza
кухни на заказ цены — Узнайте цены на кухни на заказ и выберите идеальный вариант для вашего бюджета.
https://denemebonusuverensiteler25.com/# deneme bonusu veren siteler
Hello there I am so grateful I found your weblog, I really found you by accident, while I was researching on Aol for something else, Regardless I am here now and would just like to say kudos for a fantastic post and a all round exciting blog (I also love the theme/design), I don’t have time to read it all at the minute but I have saved it and also included your RSS feeds, so when I have time I will be back to read much more, Please do keep up the great work.
https://slovo-pacana.info/
Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.
https://slovo-pacana.info/
Unquestionably believe that which you stated. Your favourite reason appeared to be on the web
the easiest thing to be aware of. I say to you,
I certainly get irked while other folks consider issues that they just don’t recognize about.
You managed to hit the nail upon the top and also defined out the entire thing without having side-effects , folks can take a signal.
Will probably be back to get more. Thanks https://Blogs.Koreaportal.com/bbs/board.php?bo_table=free&wr_id=2566199
The subject matter of forward contract must be purchase or sale of a specified underlying asset at some time in the future at a certain (preagreed) price (supply cost, forward price).
Hi! I’m at work surfing around your blog from my new
iphone 3gs! Just wanted to say I love reading through
your blog and look forward to all your posts! Keep up the superb work! http://old.amerit.Org.mk/question/agence-de-design-web-comment-choisir-le-partenaire-ideal-30/
Hi, of course this paragraph is really nice and I have learned lot of things from it about blogging. thanks.
https://slovo-pacana.info/
кухни под заказ — Профессиональный дизайн и качественные материалы для создания кухни вашей мечты.
Hello! This post couldn’t be written any better! Reading this post reminds me of my good old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!
https://slovo-pacana.info/
I want to to thank you for this good read!! I definitely enjoyed every little bit of it. I have got you book-marked to look at new stuff you post…