Results 1 to 6 of 6

Thread: Swf file shows white box..???

  1. #1
    Join Date
    Mar 2007

    Question Swf file shows white box..???

    Hi Guys,
    I hope you can help me out here.
    I loaded a page on the server and is not showing up the flash object. You can hover the screen and you know the object is there but is showing a white box.
    Locally in my computer I can see it.
    Anybody knows what is the problem?
    The test page is http://www.flyawaytrip.com/test.html
    Thank you very much

  2. #2
    Join Date
    Feb 2008
    NW Washington State
    The problem appears to be the failure to correctly load the xml file. After I downloaded test.html and checked my Temp Internet Folder, only 3 files had downloaded, test, world_map.swf, and swfobject. Nothing displayed on the page, just as you mentioned.
    Downloading the .swf direct from
    also displays nothing on the page. Opening the .swf directly shows a multicolored map. So apparently the .swf needs the .xml file to load in order for the display to work properly. So I downloaded the world_map.xml (since it's called by swfobject) and put it in the same folder as the other 3 files and the map now displays just fine.
    The xml path appears to be correct, since I downloaded the xml file from the same folder as test and the .swf. So Iím not sure why it doesnít work from the link you posted. For me, your code for the page ďtestĒ worked fine after I downloaded all 4 files into the same folder. Page displays a single color, light blue, map with hotspots that display continent names, and allows you to drill down into the continent.
    For testing you may want to delete all files from you Temp Internet Folder, ensure that all the files are uploaded correctly and then try again.
    I really like the map by the way! Was that an original creation or from a template or something?
    Best wishes,
    Eye for Video

  3. #3
    Join Date
    Mar 2007
    Eye for Video,
    The file works fine in my computer, only doesn't show up when is in the server. The XML file lives in the same folder.
    So I still don't know what the problem might be.
    A friend of mine sent me the swf file and xml.
    Thank you

  4. #4
    Join Date
    Feb 2008
    NW Washington State
    Well I must say that Iíve tried everything I can think of, but canít figure this one out. It works just fine on the local machine but not on the server.
    There was one small bit of coding error, but that was not the problem.
    div id="flash"></div>
    Thereís an extra </div> tag and the one to keep should be like this:
        // ]]>
    I tested by removing all the params and variables to see if that was causing any problems, tried a different version of swfobject, just couldnít get it to work.
    One thing that really seems odd on the Web downloaded version is the cursor turns to a hand pointer at the edge of the <div>, not just over the top of the continents, as it does on the local machine. For testing purposes I created a couple versions. Delete all files from your Temp Internet Folder and then download this page:
    I set the background color to blue, and commented out all the params and variables, just to test that this line of code was working. The blue background shows just only until the whole swf has downloaded, then everything turns white. You can also see very clearly that the cursor changes at the edge of the div, not over the continents.
    var swfObject = new SWFObject('world_map.swf', 'kartta', '636', '309', '8', '#0000ff');
    There may be something else in the swf that prevents it from working on the server, I just donít think itís in the code as you posted it. Youíd need access to the .fla to find out. My suggestion is that you talk to your friend who created the swf and see if he has any suggestions, Iím stumped.
    If you do ever get this fixed, Iíd really appreciate learning how you did it.
    Best wishes,

  5. #5
    Join Date
    Mar 2007
    I was searching for flash map and I found this website. It looks like they are using the same map.
    Here it is www dot cosmerba dot com
    Maybe this could help us to figure this one out.
    Last edited by elyfrank; 08-17-2009 at 07:28 AM.

  6. #6
    Join Date
    Feb 2008
    NW Washington State
    Well it looks like the other map is correctly downloading the xml file while your is not. Attached are two photos of the Temp Internet folder and the files that are downloaded for each map.
    Below is some differences in code. You may want to test using this method. First is a different Doc Type,
    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    second is using <object> and <embed> instead of swfobject.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="700" height="700" id="world_usa_map" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="world_usa_map.swf" />
    <PARAM NAME=FlashVars VALUE="xmlfile1=world_map.xml&show_map=0">
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="world_usa_map.swf?xmlfile1=world_map.xml&show_map=0" quality="high" bgcolor="#ffffff" width="700" height="700" name="world_usa_map" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    I'm still thinking that it could be a problem in the swf in the line of code that loads the xml file. Without see the Actionscript, I just don't know.
    Anyway, good luck on this.

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.09579 seconds
  • Memory Usage 2,903KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (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
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (6)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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