Results 1 to 5 of 5

Thread: swf trouble reading XML document. Locally works.

  1. #1
    Join Date
    Dec 2010

    swf trouble reading XML document. Locally works.


    I've been busy to customise a flash banner with XML content.
    The XML document should call the images, texts and url.

    Well, running locally everything is fine but uploading the whole thing gives nothing.

    someone already tried to help me but they failed to. Probably the XML file isn't complete?!

    here the XML:

    <?xml version="1.0" encoding="utf-8" ?>
    <!--Blur Filter-->
    <buttonTitle><![CDATA[HP Touchsmart]]></buttonTitle>
    <buttonDescription><![CDATA[IQ830, NQ852AA]]></buttonDescription>

    the HTML in a cms:

    <object width="700" height="140"> <embed src="/App_Themes/ol-OL/images/content/banner/rotating/banner.swf" height="140" width="700" align="center" border="0" wmode="transparent"> </embed> </object><!-- top_banner-->

    the SFW should automatically get the XML file at the same directory.



  2. #2
    Join Date
    Feb 2008
    NW Washington State
    Almost always when it works locally but not on the server, then it's a pathing issue. Since neither your .swf or the .xml file are in the same folder as the Web page, pathing is by far the most likely problem. You have to realize that once you place the .swf on a Web page in a different folder than the physical location of the .swf file, you are in effect, removing the .swf from that folder. So now... from the location on the web page... what is the path to the .xml file? The path to the xml needs to be relative to the location on the Web page, not it's physical location.
    From an old post:
    Pathing issues

    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do not have to be in the root. But if sticking them in there worked, then you know that the issue was a pathing problem.
    Just remember that paths become relative to the Web page on which those Flash files are used. So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, etc), the path used inside the .swf to the .xml file has to be relative to it's new location in root and back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    So just be sure that you use addresses relative to the final locations and you can put the files wherever you want.
    Best wishes,
    Eye for Video

  3. #3
    Join Date
    Dec 2010

    Thank you for your answer. I also read the other thread, so I removed temporary the xml file and re-export the swf file. An error report came in looks like this:

    Streamfout. URL: file:///C|/Documents&#37;20and%20Settings/test/banner.xml
    at net.flashden.flashblue::Main/loadXML()
    at net.flashden.flashblue::Main/init()

    The question is: Where in the flash file can I change the path to a relative path?
    I checked the source code and nowhere seem to written to link to an xml file.

    Thanks again

  4. #4
    Join Date
    Feb 2008
    NW Washington State
    Streamfout. URL: file:///C|/Documents%20and%20Settings/test/banner.xml
    This is a path on a local machine, is that what you entended?
    If the path from the Web page to the .swf is:
    <embed src="/App_Themes/ol-OL/images/content/banner/rotating/banner.swf"
    and your .xml is in the same folder as that .swf, then the path from the .swf on the Web page back down to the .xml file would be:
    The pathing issue is just one of any number of things that might be causing the problem. It's just a good idea to get the pathing correct and then move on if there are still other issues.
    When testing locally have you tested in both IE and FF? The reason I ask is that your <embed> code looks lacking. If you can get it to work in IE that way, fine, but <embed> is normally used just for FF and will not work in IE.
    If needed, you could place the Flash on the Web page like this:
    <object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">                    
              	<param name="movie" value="path_to_file/file.swf">
    	        <param name="SomeOtherParam" value="ParamValue">
    Best wishes,
    Eye for Video

  5. #5
    Join Date
    Dec 2010
    Hey Eye for Video,

    Finally it works!! There was also an main.as hidden somewhere which had a URL path written to the XML document. I changed the path and used your object description.

    Thanks a lot!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.10944 seconds
  • Memory Usage 2,889KB
  • Queries Executed 15 (?)
More Information
Template Usage (34):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (5)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (73):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates