Flex 3:添加图像,使其漂浮在 PopWindow 上方
有没有办法在我的主应用程序中添加图像,以便它位于 popWindow 之上? Z-index 的等效项应将其呈现在顶部。
所以,我有一个 popWindow,我想在 popWindow 顶部添加一个图像。
如果在我的主应用程序中我使用:
var floatingImage:Image = new Image;
floatingImage.source = image_path;
floatingImage.y = 200;
floatingImage.x = 200;
addChild(floatingImage);
那么图像位于主应用程序的顶部,但它仍然位于我的 popWindow 下方。
我会将图像直接添加到 popWindow,但我使用的是 FlashEff 2,由于某种原因,如果我在 popUp 中有图像,效果将不起作用。所以,我想我应该在主应用程序中添加图像,并将其浮动在 popWindow 上方。
另一种可能性可能是以某种方式检查 popWindow 是否打开,然后将图像直接添加到 popWindow。
如果有人有任何建议,我很想听听。
谢谢。
-拉克斯米迪
Is there a way to add an image in my main app, so that it is on top off a popWindow? The equivalent of the Z-index should render it on top.
So, I've got a popWindow and I want to add an image on top of the popWindow.
If in my main app I use:
var floatingImage:Image = new Image;
floatingImage.source = image_path;
floatingImage.y = 200;
floatingImage.x = 200;
addChild(floatingImage);
Then the image is on top of main App, but it is still below my popWindow.
I would add the image directly to the popWindow, but I'm using FlashEff 2, and for some reason the effect won't work if I have an image in the popUp. So, I thought that I would add the image in the main app and have it float above the popWindow.
Another possibility might be to check somehow if the popWindow is open and then add the image directly to the popWindow.
If anyone has any suggestions, I'd love to hear them.
Thank you.
-Laxmidi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不太推荐,但这是代码。这不适用于仅 DisplayObjects 的 UIComponents。
Not really recommended but here is the code. This won't work well with UIComponents just DisplayObjects.