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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:31:29+00:00 2026-05-18T00:31:29+00:00

i am getting the Parameter url must be non-null error while trying to pass

  • 0

i am getting the Parameter url must be non-null error while trying to pass the path of an XML file to an Shockwave flash object.

The javascript code is as follows

<script type="text/javascript">
    var so = new SWFObject("preview.swf", "", "100%", "100%", "9", "#ffffff");
    so.addParam("allowFullScreen", "true");
    so.addParam("scale", "noscale");
    so.addParam("menu", "false");
    so.addVariable("xmlPath", "xml/exampleData.xml");
    so.write("flashcontent");
</script>

As you can see the XML file i am trying to load within the SWF file is the exampleData.xml

Within the ActionScript i declared the variable xmlPath as follows…

 public var xmlPath:String

and in the load event i made the appropriate changes

private function loadComp(data:String):void
        {
            xmlModel.xml = new XML(data);
            new LoadXml(xmlPath, picHandler);
        }

And here comes the question.

What am i doing wrong here?
Why do i get the Parameter url must be non-null error?

P.S. If i hard-code the path, within the actionscript file, everything works great!

private function loadComp(data:String):void
        {
            xmlModel.xml = new XML(data);
            new LoadXml('xml/exampleData', picHandler);
        }
  • 1 1 Answer
  • 1 View
  • 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-18T00:31:29+00:00Added an answer on May 18, 2026 at 12:31 am

    I usually do this kind of thing with a flashvar parameter in the embed code.

       so.addParam('flashvars','xmlPath=xml/exampleData.xml');
    

    And then you’ll need a line like this in your Actionscript…

       private var xmlPath:string;
       xmlPath = root.loaderInfo.parameters.xmlPath;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While sending back parameters getting this error Error : The Out Parameter must be
I have a parameter which I must pass as part of a url. The
I have a simple .pp / puppet file, and I'm getting Parameter provider failed:
We're getting a server error saying Parameter count does not match Parameter Value count.
I am getting error of System.MissingMethodException after I have an optional parameter in one
I'm getting this error, error CS0182: An attribute argument must be a constant expression,
I trying to pass a DateTime object as a query string parameter to a
I'm getting a 302 error returning on a single CSS file on an ASP.NET
With the script I'm making, jquery is getting vars from url parameter. The value
Sending request with URL length ~ 4950 characters. Getting the following XMLHTTPRequest.ResponseText: ERROR The

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.