【发布时间】:2011-06-21 14:03:05
【问题描述】:
初学者问题: 我在 Flex 4 中为 Flex 使用 IFrame 组件。下面的代码在将其放在滚动区域的顶部时有效。但是,如果我将它放在可视区域下方的位置,它将不会呈现。我是 Flex 的完全初学者。有趣的是,当我在 HBox 处于视图中时调整窗口大小时,Iframe 将加载。但滚动到它不会。下面是我的代码。我已经确保一切都是可见的=真,但似乎我需要添加一个侦听器或以某种方式欺骗它认为窗口已调整大小以使其呈现。任何人都知道如何解决这个问题?谢谢!
<mx:HBox visible="true" backgroundColor="#cccccc" id="facebookhbox" width="100%" height="100" horizontalAlign="center" verticalAlign="middle" verticalGap="0" verticalScrollPolicy="off">
<mx:Canvas id="facebookcanvas" visible="true" x="0" y="0" width="650" height="80">
<flexiframe:IFrame visible="true" y="0" x="0" id="facebookIFrame" source="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.examplelink.com&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" width="450" height="80"/>
</mx:Canvas>
</mx:HBox>
【问题讨论】:
标签: apache-flex iframe components