ÔÚflexÖÐʹÓÃǶÈëhtmlÎļþÒÔ½â¾öÏÔʾhtmlµÄÎÊÌâ
ÏëÔÚflexÖÐÕæÊµµÄÏÔʾhtml,µ«ÊÇtexteara,lable,textÖÐÖ»Ö§³Ö²¿·Öhtml±êÇ©
<a>¡¢<b>¡¢<br>¡¢<font>¡¢<img>Èç¹ûÓÃimgÓÖ´æÔÚÏÔʾ×Ô¶¯»»ÐеÄÎÊÌâ¡£Ö»ÓвÉÓÃǶÈëhtmlµÄ·½·¨À´½â¾ö¡£
1.flexdemo1
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*" width="427" height="282" viewSourceURL="srcview/index.html">
<mx:Panel x="10" y="10" width="407" height="262" layout="absolute" title="TabNavigator with HTML IFrame Enclosures">
<mx:TabNavigator x="10" y="10" width="367" height="202">
<local:IFrame source="http://www.ff-power.com" label="TÍø" width="100%" height="100%">
</local:IFrame>
<local:IFrame source="http://www.ctott.com" label="·É·²¶¯Á¦" width="100%" height="100%">
</local:IFrame>
<local:IFrame source="http://www.ff-power.com/bbs" label="·É·²¶¯Á¦-BBS" width="100%" height="100%">
</local:IFrame>
</mx:TabNavigator>
</mx:Panel>
</mx:Application>
2.Iframe.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
resize="callLater(moveIFrame)"
move="callLater(moveIFrame)">
<mx:Script>
<![CDATA[
import flash.external.ExternalInterface;
import flash.geom.Point;
import flash.net.navigateToURL;
private var _source: String;
private function moveIFrame(): void {
var localPt:Point = new Point(0, 0);
var globalPt:Point = this.localToGlobal(localPt);
 
Ïà¹ØÎĵµ£º
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<title>CSS</title>
<style type="text/css">
<!--
*{margin:0;padding:0;}
body {
fo ......
ǰ̨½Å±¾µÄÔªËØ×Ô¶¯ÏÂÀÀ©Õ¹:
¾ßÌåÊǵ±Êó±ê·ÅÔÚÒ»¸öÔªËØÉÏʱ,Õâ¸öÔªËØÈç¹ûÏÔʾ²»È«,¾Í×Ô¶¯À©Õ¹,²¢ÇÒ²»»áÓ°ÏìÆäËüµÄÔªËØ.ÒÆ¿ªÊó±ê¸ÃÔªËØ×Ô¶¯»¹Ô³ÉÔÀ´µÄÑùʽ.
ÔÚCoding µÄ¹ý³ÌÖÐ,Ò»¸ö¿çBrowserµÄÎÊÌâÊÇ:
ÔÚÿһ´ÎÏÔʾ float divǰ ......
Public Function CHTMLEncode(ByVal fString As String) As String '=========Êý¾Ý¿â»Ø³µ·ûºÍ¿Õ¸ñ·ûת»»=========
fString = Replace(fString, Chr(32), " ")
' fStr ......
Ëæ×Å Adobe Flex ¼¼ÊõµÄ³ÉÊ죬ԽÀ´Ô½¶àµÄÆóÒµ¿ªÊ¼²ÉÓà Adobe Flex ¼¼Êõ¿ª·¢ RIA (Rich Internet Application)¡£ÔÚ³£¼ûµÄ RIA Ó¦ÓóÌÐò¼Ü¹¹ÖУ¬¿Í»§¶ËÓà Adobe Flex äÖȾ³öƯÁÁµÄ½çÃæ£¬¶øäÖȾ½çÃæËùÐèÒªµÄÊý¾ÝÔò´Ó·þÎñÆ÷¶ËµÄÓ¦ÓóÌÐò»ñÈ¡¡£ÔÚ Java EE ÁìÓò£¬·þÎñÆ÷¶ËµÄÓ¦ÓóÌÐòͨ³£ÊÇÔ ......