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 4255664
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:14:57+00:00 2026-05-21T05:14:57+00:00

I’ve got a SWF that collects feedback from users on a website. The questions

  • 0

I’ve got a SWF that collects feedback from users on a website. The questions asked are pulled in as XML, using a URL supplied via flashvars embedded in the page. Unfortunately, this appears to have broken in the latest version of my SWF.

Here is how I am embedding the object:

<script src="swfobject.js"></script>
    <script type="text/javascript">
        swfobject.embedSWF("http://localhost/mysite/q.swf", "flashcontent", "900", "360", "9.0.0", "http://localhost/mysite/expressInstall.swf", { loadurl: escape("http://localhost/mysite/q.php?q=13") }, {}, {});
    </script>
  </head>
  <body>
    <div id="flashcontent">

    </div>
  </body>

I’m attempting to pull out the loadurl flashvar like this:

this.loaderInfo.addEventListener(Event.COMPLETE, function(e:Event) {
                                    init();
                                 });
function init()
{
    *snip*
    loadurl = unescape((loaderInfo.parameters.loadurl));
}

Using ExternalInterface.call() to call console.log in the browser outputs null, yet in a previous version (where this code has remained unchanged) it works and outputs the URL as I would expect. I can switch between them see it working on the earlier, then update to the newer one and it outputs null again.

The only change in this newer version of the asset is that I added a symbol and a bit of code to add that to the stage after the XML has been loaded – but that did not in any way change the code getting the URL from the page’s HTML.

I’m using Flash CS5 and it is an ActionScript 3.0 project.

Can anyone suggest where I am going wrong? I’ve spent ages pulling my hair out over this one, so any help would be greatly appreciated. I did read somewhere that this could be done via ExternalInterface – would it be more appropriate for a scenario such as this? Is it a viable alternative if for some reason I can’t get this to work properly?

Thanks!

  • 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-21T05:14:58+00:00Added an answer on May 21, 2026 at 5:14 am

    The workaround here was to eventually use ExternalInterface.call. Unfortunately I could not work out why the flashvars where not being passed to the SWF correctly, despite much messing about with HTML, SWFObject etc.

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

Sidebar

Related Questions

No related questions found

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.