Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 944905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:40:11+00:00 2026-05-15T22:40:11+00:00

I have a flash file with an xml file as flashvars. when I use

  • 0

I have a flash file with an xml file as flashvars. when I use this code it works in every browser, but not in IE 7 or higher.

OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
         codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
         WIDTH="530" HEIGHT="410" id="usa_locator" ALIGN="">
         PARAM NAME=movie VALUE="app_themes/theme1/usa_locator_demo.swf">
         PARAM NAME=FlashVars VALUE="app_themes/theme1/usa_locator.xml"> 
         PARAM NAME=quality VALUE=high>
         param name="wmode" value="transparent">
         PARAM NAME=bgcolor VALUE=#F5F5F5>
         EMBED src="app_themes/theme1/usa_locator_demo.swf?xmlfile1=app_themes/theme1/usa_locator.xml" quality=high  wmode="transparent" bgcolor=#F5F5F5  WIDTH="530" HEIGHT="410" NAME="usa_locator" ALIGN=""
         TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
EMBED>
        /OBJECT>

After reading a lot, SWFObject seem to be a good option. All u need to do is:

1- Include swfobject.js in header
2- Create an empty div for the flash object to be included

<div id="myContent">
  <p>Alternative content</p>
</div>

3- Embed the flash in the div via javascript:

<script type="text/javascript">
        swfobject.embedSWF("app_themes/theme1/usa_locator_demo.swf", "myContent", "530", "410", "6", false, **flashvars**);
    </script>

The only problem I have is: I don’t know how to pass the flashvars via a url for an xml file. It seems to me that SWFObject does not support this. Instead, you need to create a list of flashvars as

var flashvars = {
  name1: "hello",
  name2: "world",
  name3: "foobar"
};

and pass the variable to the javascript. The xml file i have is very large, and has many variables, I don’t know how to do this. Please help.

My XML file is something like:

usa_map_locator>
config>
  color_state_name>0xffffff</color_state_name>
  color_state_name_over>0xffffff</color_state_name_over>
  type_of_gradient>1</type_of_gradient>
  background_color>0xffffff</background_color>
  show_links>0</show_links>
  light_effect>1</light_effect>
  border_color>0xffffff</border_color>
  sound>on</sound>
/config>


map_data>
state>
  id>1</id>
  name>Washington</name>
  link>#</link>
  comment>Address:
Phone:
E-mail:
  /comment>  
  color_map>0x7798BA</color_map>
  color_map_over>0x0054A6</color_map_over>
  frame>_top</frame>
  image>photo.jpg</image>
/state>
state>
  id>2</id>

….. for all 50 states

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:40:12+00:00Added an answer on May 15, 2026 at 10:40 pm

    you should only need to do something like:

    var flashvars = { xmlfile1: "app_themes/theme1/usa_locator.xml" }
    

    What you would normally pass as the GET (that is, the flashvars) is a simple list of key/value parameters, and in that same spirit you convert that list to a key/value object in javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 473k
  • Answers 473k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I've solved the issue, see http://jsfiddle.net/ujTDf/3/. Be sure to read… May 16, 2026 at 3:59 am
  • Editorial Team
    Editorial Team added an answer What you need is a proper logout method rather than… May 16, 2026 at 3:59 am
  • Editorial Team
    Editorial Team added an answer In your controller, access the form values directly: var value… May 16, 2026 at 3:59 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.