Flash翻轉式影片播放器

這是一個結合Tweener和影片的範例,主要的目的是利用Flash載入外部視訊來播放,順帶利用ActionScript來做畫面的翻轉,翻轉後可以詳細介紹該影片的資訊,或是版權宣告等,先看看範例頁面檔案下載,要製作這樣的動畫,首先要先準備一段影片檔,我的範例中所準備的是利用數位相機拍攝出來的影片,再利用Adobe Media Encoder轉換成大小為640×360,F4V格式的影片,再利用Flash內建的組件FLVPlayback來播放。

資料夾檔案結構如下:

3D Video Flip 檔案結構

  • Caurina是Tweener Class大家可以到Tweener的官網下載,前述文章有連結。
  • 3dflip.fla、3dflip.html、3dflip.swf是Flash的原始檔、網頁檔以及播放檔。
  • Shengxing為本範例所使用到的影片檔。
  • SkinUnderPlaySeekMute為播放器的面板檔。

而在下圖是在Flash中的結構:

3D Video Flip 動畫結構

  • 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;
}

You may also like...

18,732 Responses

  1. Если вы искали где отремонтировать сломаную технику, обратите внимание – тех профи

  2. paglabas表示:

    I like reading a post that can make people think. Also, thanks for allowing for me to comment.

  3. Sazrdzn表示:

    Аттестат школы купить официально с упрощенным обучением в Москве
    loms-moodle.envytheme.com/blog/index.php?entryid=2758

  4. Cazrtfv表示:

    Добрый день!
    Купить диплом академии
    где купить диплом

  5. Lazrxgn表示:

    Привет, друзья!
    Мы изготавливаем дипломы психологов, юристов, экономистов и других профессий по выгодным тарифам.
    kroosuriya.com/krusuriya/modules.php?name=Journal&file=display&jid=10816

  6. A Good Party Planning Guide 서울밤문화

  7. RobertWap表示:

    Клининг после разложившегося трупа http://uborka-posle-umershego-moskva.ru/

  8. Sazruxv表示:

    Привет!
    Приобрести документ университета
    en.kgeu.ru/Home/Page/141?idShablonMenu=121

  9. Профессиональный сервисный центр по ремонту радиоуправляемых устройства – квадрокоптеры, дроны, беспилостники в том числе Apple iPad.
    Мы предлагаем: квадрокоптеры сервис
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  10. Профессиональный сервисный центр по ремонту радиоуправляемых устройства – квадрокоптеры, дроны, беспилостники в том числе Apple iPad.
    Мы предлагаем: ремонт квадрокоптеров москва
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  11. где можно зарабатывать в интернете https://kak-zarabotat-v-internete11.ru/ .

  12. That is a really good tip particularly to those new to the blogosphere. Short but very precise info… Appreciate your sharing this one. A must read post.

  13. Если вы искали где отремонтировать сломаную технику, обратите внимание – сервис центр в петербурге

  14. Если вы искали где отремонтировать сломаную технику, обратите внимание – выездной ремонт бытовой техники в петербурге

  15. Профессиональный сервисный центр по ремонту планетов в том числе Apple iPad.
    Мы предлагаем: ремонт планшетов айпад в москве
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  16. Профессиональный сервисный центр по ремонту планетов в том числе Apple iPad.
    Мы предлагаем: срочный ремонт айпада
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  17. MichaelTaipt表示:

    Клининг после затопления канализацией http://uborka-posle-zatopleniya-moskva.ru/

  18. Sazrywr表示:

    Приобретение диплома ПТУ с сокращенной программой обучения в Москве
    networksbusiness.mn.co/posts/65294169

  19. Scottdiz表示:

    1вин сайт: 1win вход – 1win зеркало

  20. Профессиональный сервисный центр по ремонту планетов в том числе Apple iPad.
    Мы предлагаем: мастер по ремонту ipad
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  21. Scottdaurf表示:

    пин ап казино вход: пин ап казино вход – pin up казино

  22. Если вы искали где отремонтировать сломаную технику, обратите внимание – сервисный центр в екб

  23. Профессиональный сервисный центр по ремонту радиоуправляемых устройства – квадрокоптеры, дроны, беспилостники в том числе Apple iPad.
    Мы предлагаем: квадрокоптеры сервис
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  24. JamesNut表示:

    Have the Charges Against Vasilenko for Fraud Been Dropped?
    Гермес
    According to various sources, the criminal prosecution of Roman Vasilenko, the founder of the marketing company “Life-is-Good” and the cooperative “Best Way,” may be discontinued. Law enforcement agencies, as informed by several senators and State Duma deputies, have re-evaluated the charges against him, taking into account that several witnesses, including those critical of Vasilenko, suggest that he is unlikely to be involved in fraud. This is primarily because he did not have direct access to the payment system servers, and it was the former IT director of “Life-is-Good,” Evgeny Naboychenko, who had been previously implicated in fraudulent activities. Vasilenko may be at fault only for having recruited Naboychenko in 2014, despite negative signals regarding his behavior and tendencies to appropriate others’ property.

    Roman Viktorovich Vasilenko is a business consultant from Saint Petersburg, the creator of a network of independent entrepreneurs promoting financial products under the auspices of the company he founded, “Life-is-Good,” and the founder of the International Business Academy (IBA).

    The network under the “Life-is-Good” brand promoted financial products such as Vista accounts for passive income by the foreign investment company “Hermes,” registered in Belize, and the acquisition of apartments in installments through the “Best Way” cooperative, which allowed members to either make an initial share payment or accumulate it in the cooperative’s account without interest. Notably, these legal entities are not directly connected.

    Vasilenko was neither a top manager nor an owner of “Hermes”—he cooperated with the company to promote its products in Russia. However, Naboychenko was an employee of “Hermes” and managed its payment system in Russia. He likely took this position on Vasilenko’s recommendation, but Vasilenko was not responsible for managing the payment system for “Hermes.”

    Unlike “Hermes,” Vasilenko was the founder and chairman of the board of the “Best Way” cooperative until the spring of 2021 (later serving as head of the supervisory board for about a year). Since spring 2022, he has been an ordinary member of the cooperative and is no longer part of its governing bodies.

    Vasilenko has worked not only in Russia but also in Kazakhstan, Kyrgyzstan, Belarus, Ukraine, Cyprus, Austria, and Hungary. Cooperative housing projects have been established in many of these countries.

    Additionally, Vasilenko is known as a philanthropist who has invested millions of rubles in supporting federal business initiatives (such as the “Synergy” forum), cultural initiatives (such as the “Dobrovidenie” festival), and other charitable activities (including support for children’s medical institutions).

    The Case

    The criminal case involving the Saint Petersburg marketing company “Life-is-Good,” the foreign investment company “Hermes,” and the “Best Way” cooperative registered in Saint Petersburg and operating throughout Russia was initiated in the fall of 2021 by the Main Investigation Department of the Ministry of Internal Affairs of Russia for Saint Petersburg and the Leningrad Region. In February of this year, the case was referred to the court and is currently being heard in the Primorsky District Court of Saint Petersburg.

    Ten people are on trial, including technical staff from “Life-is-Good” and Victor Vasilenko, Roman Vasilenko’s 83-year-old father, who is a retiree.

    The criminal case, currently being considered by the Primorsky District Court, raises many questions—these concerns existed from the beginning and have intensified as the case progressed. The defendants are charged with three articles: creating a financial pyramid, fraud, and organizing a criminal community.

    The total amount of damage is 282 million rubles, which is incomparable to the more than 8 billion rubles seized in the case, including 4 billion rubles in the accounts of the “Best Way” cooperative. The investigation has recognized 221 citizens as victims in the case.

    Roman Vasilenko was also charged in the criminal case being considered by the court and was put on the wanted list, including by Interpol, as he had reportedly been living abroad for family reasons since the COVID-19 pandemic. However, according to sources, Interpol and foreign states, including neighboring countries where he has been actively working, deemed his prosecution unjustified.

    Another criminal investigation related to Vasilenko, handled by the Saint Petersburg Main Directorate of the Ministry of Internal Affairs, concerns the management team of “Life-is-Good.”

    Questionable Accusations

    The court proceedings in the Primorsky District Court have so far not been very successful for the investigation and the prosecution: the vast majority of those who have testified in court so far have made claims against “Hermes” for amounts ranging from several hundred to several tens of thousands of rubles, which raises eyebrows—this is not a small claims court to discuss such sums! Prosecution witness Roman Roganovich, an IT service employee, testified that he did not post any illegal information on the “Life-is-Good” website or the cooperative’s website and did not witness any illegal activity.

    Moreover, the overwhelming majority of “Hermes” clients, numbering over two hundred thousand in Russia, and tens of thousands of “Best Way” cooperative members, according to representatives of organizations defending these entities, consider law enforcement agencies to be the source of their problems. They emphasize that it was Evgeny Naboychenko, the Saint Petersburg system administrator hired by “Hermes,” who dismantled the Russian payment system. And if anyone is responsible for the thefts, it is Naboychenko. It seems that law enforcement authorities are beginning to understand this fact as well.

  25. Uazrgpm表示:

    Здравствуйте!
    Заказать диплом о высшем образовании.
    telegra.ph/kupit-diplom-v-naberezhnyh-chelnah-08-13-6

  26. Если вы искали где отремонтировать сломаную технику, обратите внимание – тех профи

  27. Если вы искали где отремонтировать сломаную технику, обратите внимание – ремонт бытовой техники в петербурге

發佈留言

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