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; }
Полезная информация как официально купить диплом о высшем образовании
Cheap generic Viagra online: buy viagra online – best price for viagra 100mg
Как правильно приобрести диплом колледжа или ПТУ в России, важные моменты
It could seem within the balance sheet, in a mixed revenue assertion and changes in retained earnings statement, or as a separate schedule.
Hi there! This post could not be written much better! Going through this post reminds me of my previous roommate! He continually kept talking about this. I will send this information to him. Pretty sure he will have a great read. Thanks for sharing!
Each 12 months lots of of 1000’s of Americans fill out a 1040 Type and submit it to the IRS along with several of their hard-earned bucks or to get a ‘rebate’ on money the IRS has previously extorted from them.
https://www.dryshop.ru — откройте для себя лучшие решения для кухни.
Tadalafil Tablet MaxPillsForMen.com Tadalafil price
http://www.babaiki.ru — На нашем сайте вы найдете всё необходимое для создания кухни вашей мечты.
скорая наркологическая помощь скорая наркологическая помощь .
I could not refrain from commenting. Exceptionally well written.
скорая наркологическая помощь скорая наркологическая помощь .
I blog frequently and I genuinely thank you for your content.
The article has really peaked my interest. I’m going to book mark your site and
keep checking for new information about once
a week. I subscribed to your Feed too. http://Bramshillrealtynj.com/__media__/js/netsoltrademark.php?d=fairviewumc.church%2Fbbs%2Fboard.php%3Fbo_table%3Dfree%26wr_id%3D4741921
https://fastpillsformen.com/# over the counter sildenafil
http://fastpillseasy.com/# online ed medicine
Как получить диплом техникума официально и без лишних проблем
Как получить диплом о среднем образовании в Москве и других городах
фабрика кухня — качество производства, проверенное временем.
You’ve got your dream dress, now get your dream makeup look for the big night! Tackle your tone to get the right makeup for prom. Everybody’s skin is slightly different, but, for the most part, there are ranges that people fall within. Skin tone is probably the determining factor behind what makeup complements your face and defines your features the best. Makeup artist Leah Bennett, who’s worked with stars like Carmen Electra and Adrienne Bailon, suggests earth tones for skin with yellow undertones, warm shades for mocha skin tones, and pale pinks for very light complexions. To get the perfect shade for you, try mixing a few colors together. No one shade is perfect, but there’s always a little wiggle room with the possibility of blending. This trick is perfect for that all-natural-but-still-glam-af look we all hope to achieve. Layer on some deep shadows that are in the same color family as your skin tone. It will play up your eyes and your complexion.
https://pasteldirectory.com/listings12877736/ice-ball-facial-roller
Brush & Sponge Duo I really enjoy the quality and softness of these brushes, using them feels Luxurious on my skin. The cute makeup pouch is a plus. I can store the brushes there if I travel somewhere and when I take them out to use my family might be a little jelly of me which can be fun. I adore these brushes. Makeup brushes, like your fingers, allow for a more precise application. As a result, they are ideal for applying powder and shadows. Because you want everything to blend, use a light hand when applying makeup with a professional makeup brush. Rather than applying all of the product at once, gradually add more until you achieve the desired coverage. The Proarte face tapered brush creates the perfect contour. And lastly, don’t over-cleanse your brushes! Sometimes super clean brushes don’t pick up product as well, and a little grit on the brush is ok as long as you don’t go overboard in avoiding cleaning.
наркологическая скорая бесплатная [url=https://www.klin.0pk.me/viewtopic.php?id=4428]https://www.klin.0pk.me/viewtopic.php?id=4428[/url] .
вызов нарколога на дом частная скорая помощь вызов нарколога на дом частная скорая помощь .
5, then 58.Qe4 forces off the queens and Black’s king is too far away to cease his opponent’s passed pawn from queening.
Limited to individuals affiliated with the U.S.
купить диплом образования екатеринбурга купить диплом образования екатеринбурга .
Wrongful demise claims on behalf of households and estates where someone’s negligence has triggered a person to die.
Диплом пту купить официально с упрощенным обучением в Москве
Как быстро и легально купить аттестат 11 класса в Москве
купить диплом рхту 4russkiy365-diplomy.ru .
Survived by a son, Ralph Hopkins, Valencia, CA; sister-in-regulation of Mrs Myrtle Jasper, Spokane, WA.
наркологическая скорая [url=familyportal.forumrom.com/viewtopic.php?id=28624]наркологическая скорая[/url] .