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; }
doxycycline pharmacy uk: generic doxycycline 3626 – п»їdoxycycline 100mg tablets for sale
doxycycline cheap: DoxHealthPharm – doxcyclene
14 Cartoons On Mental Health Assessment Near Me That’ll Brighten Your Day
emergency Mental Health Assessment
I am really impressed with your writing skills and also with the layout on your blog.
Is this a paid theme or did you customize it yourself?
Anyway keep up the nice quality writing, it’s rare to see a great blog
like this one today. http://buyzoomed.com/__media__/js/netsoltrademark.php?d=www.onestopclean.kr%2Fbbs%2Fboard.php%3Fbo_table%3Dfree%26wr_id%3D787838
You could definitely see your expertise in the work you write. The world hopes for more passionate writers like you who aren’t afraid to say how they believe. Always go after your heart.
amoxicillin 500 mg without a prescription: Amo Health Pharm – amoxicillin 30 capsules price
doxycycline cost india: doxycycline 100mg online uk – order doxycycline online
how to get cheap clomid pills: where to buy cheap clomid – buy cheap clomid without prescription
https://amohealthpharm.shop/# buy amoxicillin online no prescription
zithromax 250 mg pill: zithromax z-pak – zithromax 250 mg australia
Kudos, Useful information!
https://zithropharm.com/# zithromax over the counter
How Replacing A Window Handle Became The Hottest Trend In 2024 window handle stiff to close (dokuwiki.stream)
order doxycycline capsules online: doxycycline online india – 100 doxycycline
cost cheap clomid no prescription: ClmHealthPharm – where can i get generic clomid now
can you buy clomid for sale: ClmHealthPharm – how can i get clomid tablets
Good post. I learn something totally new and challenging on websites I stumbleupon on a daily basis.
It’s always exciting to read content from other writers and use a little something from their websites. http://Energypop.CO.Kr/gnuboard5/bbs/board.php?bo_table=qna&wr_id=302598
Astherus: Your Partner in Decentralized Finance Innovation
Astherus offers a groundbreaking platform that combines blockchain technology with powerful financial tools. Whether you’re a seasoned investor or new to the world of DeFi, Astherus provides a secure, transparent, and efficient solution for managing assets. https://astherus.org
Why Astherus?
Trustworthy Technology: Blockchain ensures transparency and security.
Innovative Features: Advanced tools tailored for DeFi users.
User-Centric Design: Accessible, intuitive, and adaptable to all needs.
Discover the next generation of decentralized finance with Astherus!
doxycycline 30 can i buy doxycycline in india cheap doxycycline online uk
get clomid without rx: ClmHealthPharm – can you get clomid for sale
amoxicillin online without prescription: how to buy amoxicillin online – buy amoxicillin online mexico
кухни под заказ – Изготовление кухонь под заказ с учетом ваших пожеланий.
Com o codigo promocional 1XBET: GRATIS777 voce recebe bonus de boas-vindas de ate R$1200 para fazer suas apostas esportivas. Use o codigo no cadastro para liberar beneficios em grandes eventos de futebol e outras vantagens.
1xbet codigo promocional e bonus de deposito
Hi there to every body, it’s my first pay a quick visit of this webpage;
this webpage contains remarkable and really good material in favor of visitors. https://www.aaesthetics.Co.kr/bbs/board.php?bo_table=free&wr_id=1165211
Unlock New Opportunities with MachFi.
MachFi is at the forefront of decentralized finance on the Sonic Chain, providing an advanced borrow-lending platform. Our platform supports custom trading strategies, helping you unlock the full potential of your digital assets in a decentralized environment. visit to https://machfi.net/
Key Features of MachFi:
– Sonic Chain: Fast, secure, and reliable blockchain for DeFi transactions.
– Customizable Lending: Choose strategies that work best for you.
– Higher Returns: Capitalize on innovative DeFi solutions for superior returns.
Join MachFi now and redefine your digital financial strategy!
MachFi: Revolutionizing DeFi with Sonic Chain.
MachFi is leading the way in decentralized finance (DeFi), offering a next-gen borrow-lending platform on the Sonic Chain. Our platform supports customizable trading strategies, giving users more control over their assets in a secure, decentralized ecosystem. visit to https://machfi.net/
Why Choose MachFi?
– Decentralized: Powered by the Sonic Chain for transparency and security.
– Flexible Borrow-Lending: Tailored to your financial goals with custom trading strategies.
– Innovative Technology: Harness the power of the latest blockchain technology to maximize yields.
Start your journey with MachFi today and experience the future of DeFi!
https://zithropharm.com/# generic zithromax over the counter
buying generic clomid tablets cost of clomid now order generic clomid tablets
where buy generic clomid no prescription: how to get clomid without insurance – order cheap clomid
How To Determine If You’re Are Ready For Replacing Sealed Units Repair Window With Broken Seal (https://Botdb.Win)