flex内嵌html网页示例代码

这篇文章主要介绍了flex如何内嵌html网页,需要的朋友可以参考下

首先下载flex-iframe.swc,并添加到libs中

下面直接上代码
复制代码 代码如下:


xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:code="http://code.google.com/p/flex-iframe/"
minWidth="955" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)">

import mx.events.FlexEvent;
protected function application1_creationCompleteHandler(event:FlexEvent):void
{
this.myiframe.source = "http://m.weather.com.cn/m/pn11/weather.htm";
}
]]>






以上就是flex内嵌html网页示例代码的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » Flex