Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Flex»òFlashµÄ¿çÓò·ÃÎʵĽâ¾ö·½°¸


¹ØÓÚFlex»òFlashµÄ¿çÓò·ÃÎʵĽâ¾ö·½°¸£¬ÊÂÇéµÄÆðÒòÊÇ£¬ÓÉÎÒ¹«¿ªµÄÒ»¸öwebservice£¨²»Çå³þÕâ¸öwebservice¸ÉʲôµÄÇë¿´ÕâÀ¿ªÊ¼µÄ£¬kenshinµÄÅóÓÑsensunÔÚÕâ¸ö¹«¿ªµÄwebserviceµÄ»ù´¡ÉÏÖÆ×÷ÁËÒ»¸öweather²éѯµÄ£¬ÔÚ±¾»ú²âÊÔok£¬Ò»Äõ½ÍøÉÏ£¬¾Í»á³öÏÖerror£¨ÊÇ¿çÓò·ÃÎʵĴíÎ󣩣¬ºóÀ´£¬kenshinÖÕÓÚÕÒµ½ÁËÕâ¸öÎÊÌâµÄ½â¾ö·½°¸£¬ÈçÏ£º
дһ¸öÃû×ÖΪ crossdomain.xml µÄXMLÎļþ£¬Õâ¸ö·½·¨ÊÇÔÊÐíÈκÎFlash¶¼¿ÉÒÔµ÷Ó㬷ŵ½±»µ÷ÓÃÎļþµÄÍøÕ¾¸ùĿ¼Ï£º
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
Ö»ÈÃÄãÔÊÐíµÄÍøÕ¾À´µ÷ÓÃÄãµÄÊý¾Ý~.
<?xml version="1.0"?> 
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy> ²ÖqWCÒ¸ 闬 
<allow-access-from domain="www.yoursite.com" />
<allow-access-from domain="yoursite.com" />
<allow-access-from domain="*.k-zone.cn" />
</cross-domain-policy>
Èç¹ûʹÓÃXMLSocketÒª°Ñ¶Ë¿ÚºÅ¼ÓÉÏ
<cross-domain-policy>
<allow-access-from domain="*.foo.com" to-ports="507,516" />
<allow-access-from domain="*.bar.com" to-ports="516-523" />
<allow-access-from domain="www.foo.com" to-ports="507,516-523" />
<allow-access-from domain="202.117.80.2" to-ports="*" />
</cross-domain-policy>
Èç¹û°²È«²ßÂÔÎļþ·ÅÔÚ¸ùĿ¼£¬ÎļþÃû×Ö±ØÐëΪcrossdomain.xml£¬Èç¹û²»·ÅÔÚ¸ùĿ¼£¬ÒªÓÃSystem.security.loadPolicyFile(http://webservice.k-zone.cn/crossdomain.xml   )ÕâÑùµÄ·½·¨¼ÓÔØ°²È«²ßÂÔÎļþ¡£


Ïà¹ØÎĵµ£º

FlashÖÐÏÔʾPdfÎĵµ

ÏîÄ¿ÒªÇóÔÚflashÖÐÏÔʾpdfÎĵµ¡£ÆäÖиÃflashµÄ×ó²àÓÐÒ»¸öµ¼º½À¸£¬Óû§¿ÉÒÔÑ¡Ôñ²é¿´ÄǸöpdfÎĵµ£¬ÏàÓ¦µÄpdfÎĵµ¾ÍÔÚÓÒ²àÏÔʾ¡£googleһϷ¢ÏÖflashÄ¿Ç°²¢²»Ö§³ÖÏÔʾpdf£¬Ö»ÓÐAIR¿ÉÒÔ¡£ÕæÊǸ㲻¶®ÕâÊÇΪʲô¡£ÐҺ÷¢ÏÖ¿ÉÒÔÄÚǶһ¸öpdf readerÕâÑùµÄ¶«Î÷ÔÚÍøÒ³ÖУ¬È»ºóÔÙ×öÒ»¸öflashµ¼º½À¸£¬Ö®¼äͨ¹ýjavascript½øÐÐͨÐÅ¡£ÈçºÎÔ ......

Flex Ê鼮ѡÔñ

ÉÏÃæÊÇÒ»¸öflex×öµÄÑ¡Ôñ£¬Ö÷ҪѧϰÊý¾Ý  Model¸úDateGridµÄÓ÷¨ ¹þ£¬Ô´ÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" fontSize="12">
 <mx:Model id="books">
  <datas>
  <book>
  ......

flash¶ÁÈ¡xmlÊý¾ÝÏÔʾͼƬÔÚ»ðºüÖв»ÄÜÕý³£ÏÔʾµÄÎÊÌâ

ÔÚhtmlÎļþÖÐǶÈëµÄ´úÂëÈçÏÂ:
<script type="text/javascript">
var xmlUrl="news.xml";
var swfURL="news.swf";
var img_Speed=2;
var page_Speed=3000;
var TextPosition="down";
var HeadlineColor="#ff0000";
var HeadlineFont="14px";
va ......

iPadȱ·¦¶àÈÎÎñºÍFlashÖ§³ÖÊÇÑÏÖØȱÏÝ

¡¡¡¡Ò»Ð©Æ»¹û°®ºÃÕßÒÑÔÚ¸ÃÁãÊÛµêÖÜΧÅŶÓÊýÌìʱ¼ä¡£¶ÓÎé·ÖΪÁ½Ìõ£¬Ò»ÌõÕë¶Ô´ËÇ°ÒÑÔÚÏßÔ¤¶©iPadµÄÓû§£¬ÁíÒ»ÌõÔòÕë¶ÔÏ£ÍûÖ±½ÓÔÚÉ̵êÖйºÂòiPadµÄÏû·ÑÕß¡£´Óµ±µØʱ¼äÉÏÖÜÁùÉÏÎç9µã¿ªÊ¼£¬ÈËÁ÷¿ªÊ¼»º»º½øÈëÆ»¹ûÁãÊÛµêÖУ¬Ò»´Î·ÅÐÐ10ÈË»ò15ÈË¡£ÄѵÀiPadÕæµÄÊÇÒ»´úÉñ»ú£¿ÏÂÀ´Ð¡±à´øÄã×ß½øiPad......
¡¡¡¡¹¤ÒµÉè¼Æ
¡¡¡¡iPadÅ䱸Á ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ