我有一个Flash应用程序,它会生成一个生成一些xml,大约958b数据的php页面。 Flash应用程序吐出“脚本运行缓慢....中止是或否”。如果我没有,该应用程序只是加载就好了。如果我直接点击页面,页面加载大约20ms(根据firebug)。如果我们将url指向静态xml文件,它可以正常工作。有什么想法可以尝试吗?
Flash代码:
function loadComicXML(p_comic_id){
m_panel_xml = new XML();
m_panel_xml.ignoreWhite = true;
m_panel_xml.onLoad = function(success){
_level0.setComicXML(this);
};
var url = _root.siteUrl + "page.php?action=load&id="+p_comic_id;
m_panel_xml.load( url );
}
XML
<?xml version="1.0" encoding="UTF-8" ?>
<comic_data><theme_id>1</theme_id><unit_id>0</unit_id><name>User Name</name><title>Test</title><school></school><panels>
<panel_info>
<bg>4</bg>
<lc>1</lc>
<rc>4</rc>
<fum>1</fum>
<text_info>
<index>0</index>
<text>feawef%20awef%20awefawef</text>
</text_info>
<text_info>
<index>1</index>
<text>waefawefa%20wefa%20wefa%20we</text>
</text_info>
<fum_x0></fum_x0>
<fum_y0></fum_y0>
<fum_x1></fum_x1>
<fum_y1></fum_y1>
</panel_info>
<panel_info>
<bg>2</bg>
<lc>1</lc>
<rc>7</rc>
<fum>1</fum>
<text_info>
<index>0</index>
<text>awef%20awef%20awefa</text>
</text_info>
<text_info>
<index>1</index>
<text>awef%20awef%20awef%20a</text>
</text_info>
<fum_x0></fum_x0>
<fum_y0></fum_y0>
<fum_x1></fum_x1>
<fum_y1></fum_y1>
</panel_info>
<source_info>
<text0>0</text0>
<text1>0</text1>
<userTheme></userTheme>
</source_info>
</panels>
</comic_data>