简体   繁体   English

Flash-ComboBox控件的替代方法

[英]Flash - alternative to ComboBox control

I need a drop-down for my form. 我需要一个下拉菜单。 It looks like ComboBox control is what I need to use. 看起来ComboBox控件是我需要使用的控件 It works but it adds 50k to my SWF. 它可以工作,但是会增加我的SWF 50k。 I'm wondering if there is stuff that I can do to mitigate such file size increase. 我想知道是否可以做些减轻这种文件大小增加的事情。 Or are there other alternatives to ComboBox control? 还是ComboBox控件还有其他替代方法?

You can: 您可以:

  1. Write your own simplistic ComboBox implementation that could be smaller, because it won't compile all framework dependencies. 编写自己的简单的ComboBox实现,它可能会更小,因为它不会编译所有框架依赖项。 Though it can be non-trivial task, especially if you want to have similar flexibility as standard components provide out of the box. 尽管这可能不是一件容易的事,但特别是如果您希望具有与标准组件一样的灵活性,则是开箱即用的。
  2. Find another UI solution for your problem if applicable. 如果您的问题找到另一个UI解决方案。
  3. Use HTML tag outside your Flash application and communicate between HTML and Flash using ExternalInterface if applicable. 在Flash应用程序外部使用HTML标签,并在适用的情况下使用ExternalInterface在HTML和Flash之间进行通信。

我可能会尝试使用Liquid Components ,看看有什么区别。

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

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