flex内嵌html网页示例代码

网络编程 2021-07-05 11:32www.168986.cn编程入门
这篇文章主要介绍了flex如何内嵌html网页,需要的朋友可以参考下
,并添加到libs中

狼蚁网站SEO优化直接上代码
代码如下:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe./mxml/2009"
xmlns:s="library://ns.adobe./flex/spark"
xmlns:mx="library://ns.adobe./flex/mx"
xmlns:code="http://code.google./p/flex-iframe/"
minWidth="955" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function application1_creationCompleteHandler(event:FlexEvent):void
{
this.myiframe.source = "http://m.weather../m/pn11/weather.htm";
}
]]>
</fx:Script>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<code:IFrame id="myiframe" width="100%" height="100%"/>
</s:Application>

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by