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

  • Home
  • SEARCH
  • 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
  • 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-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

after debbuging i am getting following url of my webproject: http://localhost:54594/Home/Home /Home-Controller/Home-Action http://localhost:54594/AboutUs/AboutUs /AboutUs-Controller/AboutUs-Action
Is it possible to use HTMl.RenderAction using ajax to provide the parameter? I have
how can i post xml to https web service and get the xml in
I've got an HTTP service I defined in Flash Builder, via the Data Services
I have a DataTable and DataSource (YUI 2.6). The XHRDataSource connects to an XML
We began a project using WebForms, and developed a somewhat complex portal system to
Hello i have just started learning mvc2 and im having a problem with the
I recently created an MVC2 application. I am having trouble bringing it up on
I am doing a delete on a table using jquery, $('table#chkbox td a.delete').click(function() {
I have writing Java code Using Jersey library to call Rest APIs. For my

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.