简体   繁体   English

大多数AS3视频播放器是如何创建的?

[英]How are most AS3 Video Players Created?

Are most flash video players created all programmatically? 是否大多数Flash视频播放器都是以编程方式创建的? Or they done using static buttons that are referenced in classes? 还是使用类中引用的静态按钮来完成? Is it better to create all your buttons on the fly or does it not really matter? 即时创建所有按钮是更好还是真的没有关系?

I've found the easiest way was to use AS3 video components and customize them as needed. 我发现最简单的方法是使用AS3视频组件并根据需要自定义它们。 For example, the play head does all the scrubbing for you automatically, but you can control placement and design. 例如,播放头会自动为您进行所有擦洗,但您可以控制放置和设计。

Here's a great tutorial: http://www.adobe.com/devnet/flash/articles/skinning_as3_flvcomp_03.html 这是一个很棒的教程: http : //www.adobe.com/devnet/flash/articles/skinning_as3_flvcomp_03.html

Most video players aren't using AS3 yet, but different ones do it differently. 大多数视频播放器尚未使用AS3,但不同的播放器使用的方式有所不同。 It depends on what level of configurability you want. 这取决于所需的可配置性级别。 Personally I mostly do it programmatically so that I can configure everything with an XML config file or FlashVars. 就我个人而言,我主要是通过编程方式进行操作,以便可以使用XML配置文件或FlashVars配置所有内容。

I don't think there is much difference internally if you use static buttons or programmed ones. 我不认为如果使用静态按钮或编程按钮在内部没有太大区别。 Its more a personal preference. 它更多是个人喜好。 If my buttons have been complexly designed then I would import them, then reference them in classes; 如果我的按钮设计复杂,则可以导入它们,然后在类中引用它们; but if they are simple boxes and text, for example, then I would program them as it gives better control. 但是,例如,如果它们是简单的框和文本,那么我将对其进行编程,因为它可以提供更好的控制。 I personally prefer all things being in classes not on the stage, but sometimes its easier not to. 我个人更喜欢所有的东西都不在课堂上,但有时更容易。

here is a good video tutorial http://www.thetechlabs.com/tutorials/audionvideo/how-to-build-a-as3-videoplayer/ 这是一个很好的视频教程http://www.thetechlabs.com/tutorials/audionvideo/how-to-build-a-as3-videoplayer/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM