'Kalıp' (. Php oluşturulan xml) bunu diğer. Swf bulunuyor ve. Jpg bulunuyor kullanır. SWF sadece lokal olarak çalışır

0 Cevap php

My problem is that a .swf I would like to put on my website works only when requested locally. When requested from my home web server or company web server it doesn't work. I believe all files are in the proper folders and all links are well, otherwise it wouldn't work locally. Now, the SWF I place on the html page has several shapes, fonts, texts, buttons, scripts and frames. The scripts are in v1.0 and descrive how the SWF should behave. The SWF uses 2 different JPG's and 3 different SWF's. It also has a .php file with xml in it which tells the main SWF which JPG's and SWF's to use and where to find them. The main script in the main SWF also links to this .php file.

So everything works properly when opening the SWF locally in IE like U:\common\templates\dynamic.swf Everythins shows perfectly. When requesting exactly the same file, but with a domain (as I can access the web server folder like a local drive) only the main .swf shows which is black with some test forms etc in it. PHP is enabled on the server. This is my code in the .php I just edited some links to conceal domains and file names:

<?xml version="1.0" ?><dynamic_content>
<item blurb="Text 1" content_timer="8000" cycle="true"
 content_border_color="0x" content_bg_image="" tab_hl_color="0x000000"
 tab_border_color="0x000000" tab_color="0x000000" tab_arrow_color="0xFFFFFF"
 tab_text_color="0xFFFFFF" 
 tab_image="/template/images/file.jpg"
 tab_highlight_color="0x" tab_highlight_text_color="0x" tab_highlight_image=""
 content_url="http://sub.domain.com" 
 content_source="/template/images/file.swf" 
 content_target="_self" ></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/file.jpg"     
tab_highlight_color="0x" tab_highlight_text_color="0x" tab_highlight_image="" 
content_url="http://www.domain.com/" 
content_source="/template/images/file.swf" 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/file.jpg" tab_highlight_color="0x" 
tab_highlight_text_color="0x" tab_highlight_image=""   
content_url="http://www.domain.com/page.html" 
content_source="/template/images/file.swf" content_target="_self"     
></item></dynamic_content>    

Yani diğer resimlerim ve swf yıllardan tarafından kurulan dinamik SWF var, anlıyorum. Bu php değiştirmek ve yeni bir flash dosyası her vb oluşturmak daha sunucusunda yeni dosyaları koymak için daha kolay ve diğer swf dosyalarını kullanırken bir swf bazı işlevler inşa etmek oldukça zordur.

What could be the problem here that it works well when incurred locally but not from a server (using the domain etc) Any help is much appreciated. Thanks!

EDIT: When I open the .swf in firefox by using the direct link to the .swf, the status bars hangs on 'Waiting for www.domain.com... (domain = mydomain) Maybe this is of any help? and when clicking on it (I have hyperlinks in the swf it goes to 'undefined'

0 Cevap