大多数 AS3 视频播放器是如何创建的?
大多数 Flash 视频播放器都是以编程方式创建的吗? 或者他们使用类中引用的静态按钮来完成? 即时创建所有按钮是更好还是其实并不重要?
Are most flash video players created all programmatically? 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我发现最简单的方法是使用 AS3 视频组件并根据需要自定义它们。 例如,播放头会自动为您完成所有清理工作,但您可以控制放置和设计。
这是一个很棒的教程:
http://www.adobe.com/devnet/flash/articles/skinning_as3_flvcomp_03。 html
I've found the easiest way was to use AS3 video components and customize them as needed. 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
大多数视频播放器尚未使用 AS3,但不同的视频播放器的做法有所不同。 这取决于您想要什么级别的可配置性。 就我个人而言,我主要以编程方式完成此操作,以便我可以使用 XML 配置文件或 FlashVars 配置所有内容。
Most video players aren't using AS3 yet, but different ones do it differently. 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.
我认为使用静态按钮或编程按钮在内部没有太大区别。 这更多是个人喜好。 如果我的按钮设计得很复杂,那么我会导入它们,然后在类中引用它们; 但例如,如果它们是简单的框和文本,那么我会对它们进行编程,因为它可以提供更好的控制。 我个人更喜欢所有事情都在课堂上而不是在舞台上,但有时不这样做更容易。
这是一个很好的视频教程 http://www .thetechlabs.com/tutorials/audionvideo/how-to-build-a-as3-videoplayer/
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/