ÔÚFlexÖÐÓÃIframeǶÈëHTMLÍøÒ³
ÓÐʱºòÎÒÃÇÐèÒªÔÚFlexÓ¦ÓÃÖÐǶÈëHTML´úÂ룬¸ù¾ÝǶÈëHTMLÒªÇóµÄ²»Í¬ÓÐÒÔÏÂÈýÖÖ·½·¨£º
1¡¢FlexÎı¾×é¼þ£¨Label¡¢Text¡¢TextArea£©µÄhtmlTextÊôÐÔÖ§³ÖһЩ»ù±¾µÄHTML´úÂ룬ÀýÈ磺
<mx:TextArea>
<mx:htmlText>
<!--[CDATA[
<p align="center"><font size="15" color="#3399ff">this is a html code</font></p>
]]-->
</mx:htmlText>
</mx:TextArea>
2¡¢ÎÒÃÇ¿ÉÒÔ½«FlexÓ¦ÓÃǶÈëµ½HTMLÒ³ÃæÖУ¬È»ºóͨ¹ýFlex2ÖеÄExternalInterface(Flex1.5ʹgetURL("javascript.:javascriptMethod"))
À´ÊµÏÖFlexÓëHTML javascriptµÄÏ໥½»»¥£¬½øÒ»²½µÄ£¬Èç¹ûÒªÔÚFlexÓ¦ÓÃÖÐǶÈëÍêÕûµÄHTMLÄØ£¿
ÆäʵʵÏֵķ½·¨ºÜ¼òµ¥£¬Ö»ÐèҪʹÓÃHTMLµÄIframe±êÇ©À´µ¼ÈëÐèǶÈëµÄHTMLÒ³Ã棬
È»ºóʹÓÃExternalInterfaceµ÷ÓÃÏàÓ¦µÄjavasript½«¸ÃIframeÒƶ¯µ½ÎÒÃÇFlexÒ³ÃæÐèҪǶÈëHTMLÒ³ÃæµÄ²¿·ÖÖ®ÉϾͿÉÒÔÁË£¬Ê¾ÒâͼÈçÏ£º
Ò²¾ÍÊÇ˵£¬ÎÒÃÇ°üº¬Flex SWFÎļþµÄHTMLÒ³ÃæÖ÷ÒªÓÐÈý¸ö²¿·Ö£º
1¡¢Flex swf ²å¼þÈÝÆ÷£¬FlexBuilder×Ô¶¯Éú³É²¿·Ö
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="IFrameDemo" width="100%" height="100%"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
<param name="movie" value="IFrameDemo.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca 7" />
<embed src="IFrameDemo.swf" mce_src="IFrameDemo.swf" quality="high" bgcolor="#869ca7"
width="100%" height="100%" name="detectiontest" aligh="middle"
play="true" loop="false" quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
wmode="opaque"
swLiveConnect="true"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
2¡¢HTML Iframe±êÇ©,¾ø¶Ô¶¨Î»£¬ÓÃÀ´µ¼ÈëHTMLÒ³Ãæ
<iframe id="myFrame" name="myFrame" frameborder="0"
style="position:abso
Ïà¹ØÎĵµ£º
£¨×ª×ÔCSDNÂÛ̳ÎÊÌâ»ØÌû£©
metaÊÇÓÃÀ´ÔÚHTMLÎĵµÖÐÄ£ÄâHTTPÐÒéµÄÏìӦͷ±¨ÎÄ¡£meta ±êÇ©ÓÃÓÚÍøÒ³µÄ£¼head£¾Ó룼/head£¾ÖУ¬meta ±êÇ©µÄÓô¦ºÜ¶à¡£meta µÄÊôÐÔÓÐÁ½ÖÖ£ºnameºÍhttp-equiv¡£
nameÊôÐÔÖ÷ÒªÓÃÓÚÃèÊöÍøÒ³£¬¶ÔÓ¦ÓÚcontent£¨ÍøÒ³ÄÚÈÝ£©£¬ÒÔ±ãÓÚËÑË÷Òý ......
Flex4ºÍFlex3µÄÇø±ðÔÚÕâÀï¾Í²»¶à˵ÁË£¬ÓÐÐËȤ¿ÉÒÔÉÏÍøÕÒ×ÊÁÏ¡£
±¾´ÎµÄʵ¼ù½«Í¨¹ý²âÊÔÓÃÀýÀ´ËµÃ÷Flex4Öв»Í¬ThemeµÄÓ¦ÓÃЧ¹û
ÔÚFlash Builder4ÖгöÏÖÁËÁ½¸öÃüÃû¿Õ¼ä
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
ÏàÓ¦µÄ£¬¿Ø¼þÒ²³öÏÖÁËÁ½ÖÖ²»Í¬µÄ·ç¸ñ£¬´´½¨Theme.mx ......
Ò»¡¢ÎªÊ²Ã´ÒªÖØд×é¼þ
1¡¢ÔÚFLEXÒÑÓÐ×é¼þÎÞ·¨Âú×ãÒµÎñÐèÇ󣬻òÊÇÐèÒª¸ü¸ÄÆä¿ÉÊÓ»¯Íâ¹ÛµÈÌØÐÔʱ£¬Ö±½Ó½øÐм̳ÐÀ©Õ¹¡£¾ÙÀý£¬¼Ì³ÐBUTTON×é¼þµÄ³¤Îı¾È´²»×Ô¶¯»»ÐеÄ×Ô¶¨Òå¿Ø¼þ¡£
2¡¢ÎªÁËÄ£¿é»¯Éè¼Æ»ò½øÒ»²½ÖØÓã¬ÐèÒª¶ÔFLEX×é¼þ½øÐÐ×éºÏ¡£±ÈÈçÒ»¸ö°üÀ¨TEXTAREA,BUTTONµÄ¸´ºÏ¿Ø¼þ¡£
¶þ¡¢ÖØд×é¼þÐèÒª¾³£»»Î»Ë¼¿¼µÄÈý¸ö½ÇÉ«
......
Ò»¡¢title ÍøÒ³±êÌâ¡£
¶þ¡¢meta±ê¼Ç
˵Ã÷£º<meta>±ê¼Ç±ØÐë·ÅÔÚ<head>Óë</head>Ö®¼ä
¸ù¾ÝHTMLÓïÑÔ±ê×¼×¢ÊÍ£ºmeta±êÇ©ÊǶÔÍøÕ¾·¢Õ¹·Ç³£ÖØÒªµÄ±êÇ©£¬Ëü¿ÉÒÔÓÃÓÚ¼ø±ð×÷Õߣ¬
É趨ҳÃæ¸ñʽ£¬±ê×¢ÄÚÈÝÌáÒªºÍ¹Ø¼ü×Ö£¬ÒÔ¼°Ë¢ÐÂÒ³ÃæµÈµÈ¡£
meta±êÇ©·ÖÁ½´ó²¿·Ö£ºHTTP-EQUIVºÍNAME±äÁ¿¡£
HTTP-EQUIVÀàËÆÓÚHTTPµ ......
HTMLÓ¢ÓïÒâ˼ÊÇ£ºHypertext Marked Language£¬¼´³¬Îı¾±ê¼ÇÓïÑÔ,ÊÇÒ»ÖÖÓÃÀ´ÖÆ×÷³¬Îı¾ÎĵµµÄ¼òµ¥±ê¼ÇÓïÑÔ¡£ÓÃHTML±àдµÄ³¬Îı¾Îĵµ³ÆΪHTMLÎĵµ£¬ËüÄܶÀÁ¢ÓÚ¸÷ÖÖ²Ù×÷ϵͳƽ̨£¨ÈçUNIX£¬WINDOWSµÈ£©¡£×Ô1990ÄêÒÔÀ´HTML¾ÍÒ»Ö±±»ÓÃ×÷World Wide Web µÄÐÅÏ¢±íʾÓïÑÔ£¬ÓÃÓÚÃèÊöHomepageµÄ¸ñʽÉè¼ÆºÍËüÓëWWWÉÏÆäËüHomepage µÄÁ¬½á ......