¹ØÓÚFlash lite ¼ÓÔØXMLµÄÎÊÌâ
ÎÒ×î½üÔÚ×öÒ»¸öNokia 5800 XMÉϵÄFlash lite¿ª·¢£¬ÔÚ¶ÁÈ¡Êý¾ÝµÄʱºòÓöµ½ÁËÎÊÌ⣬µ±ÎÒ³¢ÊÔʹÓÃXML.load¼ÓÔØÒ»¸öÔ¶³ÌXMLÎļþµÄʱºò£¬´íÎóÌáʾ£ºFTPS033£¬·¢ÏÖ¶Ô loadVariables (http://xxx.xxx.xxx.xxx/mashup/blocks/blocks.xml) µÄºô½Ð£¬¿ÉÄÜÓ¦ÓÃÏÞÖÆ¡£
ͬʱ¼ÓÔØXMLÎļþʧ°Ü
ÎҵķþÎñÆ÷ÉÏÒѾÓÐÁËcrossdomain.xmlÎļþ¡£
ÎÒĿǰʹÓõĿª·¢¹¤¾ßÊÇAdobe Flash CS4 + Device Central CS4
ÎÒÔÚGoogleÉÏËÑÁ˺ܶàÌû×Ó£¬ÏÖÔڵõ½µÄÐÅÏ¢´ó¸ÅÊÇ£ºÔÚÄ£ÄâÆ÷Éϳ¢ÊÔͨОͻá³öÏÖÕâÑùµÄÎÊÌ⣬µ«ÊÇÈç¹ûÔÚʵ¼ÊÊÖ»úÉϽøÐоÍÊÇ¿ÉÒԵġ£
ÎÒÏÖÔÚûÓа취Äõ½ÊÖ»ú½øÐпª·¢£¬Ö»ÄÜÔÚÄ£ÄâÆ÷ÉÏ×ö£¬ÎÒÏëÇëÎÊһϣ¬Äܲ»ÄÜͨ¹ý¶ÔÄ£ÄâÆ÷µÄһЩÉèÖã¬À´½â¾öÕâЩÎÊÌâÄØ£¿ÎÒ¶ÔDevice Central²»Ê죬ÊÖ»ú¿ª·¢Ò²ÊǵÚÒ»´Î£¬Ï£ÍûµÃµ½´ó¼ÒµÄ°ïÖú£¬Ð»Ð»¡£
ÁíÍ⣬ÏÂÃæÊÇÎҵIJ¿·Ö´úÂ룺
JScript code:
stop ();
var xmlDoc:XML = new XML ();
xmlDoc.onLoad = function (success) {
trace (xmlDoc);
}
xmlDoc.onData = function (_data) {
trace (xmlDoc);
}
xmlDoc.load("http://xxx.xxx.xxx.xxx/mashup/blocks/blocks.xml");
flashlite µÄ°æ±¾ÊÇʲô£¿ Ö»ÓÐ2.0ÒÔÉϲÅÖ§³ÖxmlµÄ
°æ±¾ÊÇ3.0
flash lite °æ±¾3.0, actionscript °æ±¾2.0
ÌùÏÂÎÒÒÔÇ°µÄ´úÂë°É¡£¡£
var movie_name = new Array();
var movie_url = new Array();
var movie_other = new Array();//´´½¨Êý×é
System.useCodepage = tru
Ïà¹ØÎÊ´ð£º
ÎÒµÄXMLÅäÖÃÎļþÀïÃæÓÐÖÐÎÄ×Ö·û,Ò²ÓÐÀàËÆÓÚ=~@!ÕâÖÖ×Ö·û,encodeingÉèÖÃΪgb2312 ºÍ unicode,unicode UTF-8,½á¹û¶¼Ìáʾϵͳ´íÎó,,,Èç¹ûÉèÖÃΪgb2312µÄ»°,È¥µô=!@ÕâÖÖ×Ö·û,Ò»Çж¼Õý³£.
ÓÉÓÚÎ ......
ǰ̨µ÷ÓÃ
swfobject.embedSWF("cu3er.swf", "cu3er-container", "600", "300", "9", "expressInstall.swf", flashvars, attributes);
ÎÒÏÖÔÚÓÐ2¸öÎÊ ......
HTML code:
<div id="tessx">
<ALEXA VER="0.9" URL="163.com/" HOME="0" AID="=">
<RLS PREFIX="http://" more="79" ......
ÎÒÔÚʹÓÃDom¶ÁxmlÎļþʱÓöµ½Ò»¸öÎÊÌ⣬¾ÍÊǵ±123.xmlÎļþ²»´æÔÚʱ£¬load(123.xml)¾Í±¨´í£¬ÔõôÑù²ÅÄÜÅжÏÕâ¸öÎļþÊÇ·ñ´æÔÚ°¡£¬ÎÒÒªµÄÊÇ´æÔÚʱ¾Í¶ÁÈ¡£¬²»´æÔÚ¾ÍÌø¹ý£¬¼ÌÐøµÄ¶ÁÏÂÒ»¸öxml£¬Çë½Ì¸÷λ´óÏÀ£¬
$file ......
ÓÐÕâÑùÒ»¶ÎÓÉ.netÉú³ÉµÄxml(ÓÉdatasetת»¯¶øÀ´):
<NewDataSet> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata=& ......