我可以将 Flash/Flex Drop Down 延伸到 Flash 对象边界之外吗?

发布于 2024-08-18 17:46:39 字数 432 浏览 4 评论 0原文

我们正在 flash/flex 构建器中开发我们的应用程序,用于前端命中 .NET 后端 Web 服务。旧应用程序的一部分最初不会被转换,因此我们需要将其显示在 iFrame 中。

到目前为止一切正常。

我们将主页中 SWF 的大小缩小为菜单/导航区域。在下面,我有一个 iframe 控件,可以从旧站点加载到此页面中。

现在问题来了。 SWF 中有一个下拉列表,用于选择客户端。由于 SWF 已缩小至约 100 像素高,因此下拉菜单将仅占据其打开的 100 像素区域内。这并不像你想象的那么好。

所以问题是。如何使下拉列表下降到 IFRAME 控件的顶部,从而扩展到 SWF 尺寸之外?这可能吗?

我尝试使内部舞台透明,并让 SWF 稍大一些,大约 400 像素高,但 IFRAME 仍然出现在 SWF 后面。

任何有关如何执行此操作的建议将不胜感激!

We are developing our app in flash/flex builder for the front end hitting .NET backend webservices. There is one section of the old app that will not be initially converted, so we need have it appear in an iFrame.

So far all that works fine.

We shrink the size of the SWF in the host page to just be the menu/nav area. And underneat that I have an iframe control that loads in this page from the old site.

Now the problem. in the SWF is a drop down list to enable picking a client. Since the SWF has been shrunk to about 100px high, the drop-down will only occupy within that 100px area which it's opened. This is NOT good as you can imagine.

So the question is. How can I make the drop-down list descend over-top of the IFRAME control and thus extend outside the SWF dimensions? Is this possible?

I tried to make the internal stage transparent and leave the SWF a little larger, about 400 px high, but the IFRAME still appears behind the SWF.

Any suggestions on how to do this would be MUCH appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

孤檠 2024-08-25 17:46:39

快速的答案是将 Flash 影片设置为 500px(或其他),然后使用 wmode 使其背景透明。然后,当您打开下拉菜单时,它会出现在 IFRAME 上方。

现在,wmode 的问题是,上次我检查它时,除了 Windows + IE 组合之外,它还会带来噩梦般的副作用。

性能下降、非英语键盘问题、奇怪的制表符索引......

所以基本上你需要在利弊之间做出决定。如果您碰巧拥有大量使用 Firefox、Mac 或 Linux 的受众,那么您就完蛋了,因为人们会在使用该网站时遇到问题。

我的建议是永远不要使用 wmode,这是不值得的。但您可能会迟到为网站提供新的设计。

祝你好运!

J

The quick answer is make your Flash movie 500px (or whatever) and then use wmode to make its background transparent. Then when you open the drop down, it appears over the IFRAME.

Now, the problem with wmode is that last time I checked it was coming with a nightmare of side effects in anything that is not Windows + IE combination.

Performance lost, problem with non English keyboards, weird tab indexes...

So basically you need to make a decision between pros and cons. If you happen to have an audience with a significant amount of Firefox, Mac or Linux, then you are screwed, that people is going to have problems with the site.

My advice is NEVER use wmode, it's not worth it. But you might be late for affording a new design for the site.

Good luck!

J

今天小雨转甜 2024-08-25 17:46:39

Google 代码有一个 flex-iframe 组件

http://code.google.com/p/flex- iframe/

它提供了一个很好的功能,可以在显示菜单等弹出窗口时自动隐藏 iframe
当overlayDetection =“true”设置为true时

来源=“www.google.com”
宽度=“100%”
高度=“100%”/>

如果您不想使用该组件,我已经查看了代码。

Google code has a flex-iframe component

http://code.google.com/p/flex-iframe/

It provide a nice feature to autohide the iframe when a popups like menu are show
when overlayDetection="true" is set to true

source="www.google.com"
width="100%"
height="100%" />

In case you dont want to use the component you I have looked into the code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文