我使用一個主SWF文件,它有一些動畫。它使用來自指定幾個項目的.php文件的XML。圖像和其他SWF將在主SWF中使用。本地一切都完美,但通過我的家庭服務器或託管服務提供商調用它時,它不再工作,我不明白爲什麼。所有鏈接都是相對的和正確的。主SWF無法完全加載,或者與.php文件中的XML存在問題。我不確定,現在只有一個黑盒子沒有顯示任何其他應有的內容。 檢查出來:http://deoshermes.ath.cx/cc-common/templates/dynamiclead/dynamic_leadee.swfSWF(使用XML)只能在本地工作,不能在家庭服務器或網絡託管服務器上
的XML:
<?xml version="1.0" ?><dynamic_content>
<item
blurb="Text 1"
content_url=""
content_source=""
content_timer="8000"
content_target="_self"
tab_color="0x000000"
tab_border_color="0x000000"
tab_arrow_color="0xFFFFFF"
tab_text_color="0xFFFFFF"
tab_image="/template/images/dle_TOPmay06.jpg"
cycle="true"
content_border_color="0x"
content_bg_image=""
tab_hl_color="0x000000"
tab_highlight_color="0x"
tab_highlight_text_color="0x"
tab_highlight_image="" >
</item>
<item blurb="Text 2"
content_timer="5000"
cycle="true"
content_border_color="0x"
content_bg_image=""
tab_hl_color="0xFFFFFF"
tab_border_color="0xFFFFFF"
tab_color="0xFFFFFF"
tab_arrow_color="0xFFFFFF"
tab_text_color="0xFFFFFF"
tab_image="/template/images/dle_MIDandBOTmay06.jpg"
tab_highlight_color="0x"
tab_highlight_text_color="0x"
tab_highlight_image=""
content_url=""
content_source=""
content_target="_self" >
</item>
<item blurb="Text 3"
content_timer="5000"
cycle="true"
content_border_color="0x"
content_bg_image=""
tab_hl_color="0xFFFFFF"
tab_border_color="0xFFFFFF"
tab_color="0xFFFFFF"
tab_arrow_color="0xFFFFFF"
tab_text_color="0xFFFFFF"
tab_image="/template/images/dle_MIDandBOTmay06.jpg"
tab_highlight_color="0x"
tab_highlight_text_color="0x"
tab_highlight_image=""
content_url=""
content_source=""
content_target="_self" >
</item>
</dynamic_content>
這個本地調用主SWF時就像一個魅力。 來自主sWF的ActionScript可以在與上面相同的域中找到/ Actionscript_mainmovie.txt
這似乎也很好。函數formattabs(第68行)使用了一些javascript。本地主SWF的功能,即使沒有這個hbx文件,它位於 /cc-common/wss/hbx.js並在網頁中實際使用。 我還沒有弄清楚什麼讓主SWF無法正常工作,因爲所有其他單個SWF在使用直接鏈接調用時都能正常工作。而這只是不工作...我可能需要添加一些在php.ini文件? 任何幫助,將不勝感激!