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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:41:37+00:00 2026-05-13T19:41:37+00:00

Hey everyone, today I’m trying to get a link to an XML file passed

  • 0

Hey everyone, today I’m trying to get a link to an XML file passed from the Object Embed code into my Flash movie. (Not using SWFobject). I have 1 swf file that should be able to connect to 3 different XML files.

Attempt 1


Below is the HTML code (I’m trying to get theXML path):

<div class="left">
<h2>300 x 353 Green Accent Color</h2>

<script type="text/javascript">
        AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','353','src','TEN','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','TEN' ); //end AC code
</script><noscript>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="353">
  <param name="movie" value="player.swf" />
  <param name="quality" value="high" />
  <param name="XML" value="client_user.xml" />
  <embed src="T.swf" allowscriptaccess="always" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="353"></embed>
</object></noscript>

</div>

Document Class

private var theXML:String = root.loaderInfo.parameters.xmlPath;


public function TEN():void
{
    if (stage) init();
    else addEventListener(Event.ADDED_TO_STAGE, init);
}

private function init(e:Event = null):void 
{
    removeEventListener(Event.ADDED_TO_STAGE, init);

    xmlLoader.addEventListener(Event.COMPLETE, xmlCompleteHandler);
    xmlLoader.load(new URLRequest(root.loaderInfo.parameters.xmlPath));

    loader = new BulkLoader("bulky");
    loader.logLevel = BulkLoader.LOG_INFO;
    loader.addEventListener(BulkLoader.COMPLETE, onBulkLoadComplete);
    loader.addEventListener(BulkLoader.PROGRESS, onBulkLoadProgress);
    //loader.add("client.xml",{id:"xmldata"});              //<- for TESTING
    //loader.add(theXML+".xml",{id:"xmldata"}); //<- for LIVE
    loader.add(xmlPath+".xml",{id:"xmldata"}); //<- for LIVE
    loader.start();
}

Attempt 2


HTML with different PARAM passing syntax:

<div class="right">
        <h2>520 x 477 Blue Accent Color</h2>
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','353','src','TEN','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','TEN' ); //end AC code
</script><noscript>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="353">
  <param name="movie" value="T.swf?xmlPath=0" />
  <param name="quality" value="high" />
  <param name="xmlPath" value="520.xml" />
  <embed src="T.swf" allowscriptaccess="always" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="353"></embed>
</object></noscript>
    </div>

Attempt 3


Flash Code Updated:

private var theXML:String = "";

private function init(e:Event = null):void 
{
    removeEventListener(Event.ADDED_TO_STAGE, init);

    theXML = stage.loaderInfo.parameters.xmlPath;

    loader = new BulkLoader("bulky");
    loader.logLevel = BulkLoader.LOG_INFO;
    loader.addEventListener(BulkLoader.COMPLETE, onBulkLoadComplete);
    loader.addEventListener(BulkLoader.PROGRESS, onBulkLoadProgress);
    //loader.add("client_user.xml",{id:"xmldata"}); //<- for TESTING
    loader.add(theXML,{id:"xmldata"}); //<- for LIVE
    //loader.add(theXML+".xml",{id:"xmldata"}); //<- for LIVE
    loader.start();
}

Updated HTML code:

<div class="right">
        <h2>520 x 477 Blue Accent Color</h2>
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','353','src','TEN','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','T' ); //end AC code
</script><noscript>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="353">
  <param name="movie" value="T.swf?xmlPath=0.xml" />
  <param name="quality" value="high" />
  <param name="xmlPath" value="520.xml" />
  <embed src="T.swf?xmlPath=520.xml" allowscriptaccess="always" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="353"></embed>
</object></noscript>
    </div>

Right now it’s not loading the XML file from the param 🙁

  • 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-13T19:41:37+00:00Added an answer on May 13, 2026 at 7:41 pm

    Look at FlashVars–this is the standard way of passing variables through the object tags to the SWF.

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="353">
      <param name="movie" value="http://www.howdini.com/TEN/TEN.swf" />
      <param name="quality" value="high" />
      <param name="flashVars" value="theXML=client_user.xml" />
      <embed src="TEN.swf" 
             flashVars="theXML=client_user.xml"
             allowscriptaccess="always" 
             quality="high" 
             pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" 
             type="application/x-shockwave-flash" width="300" height="353">
      </embed>
    </object>
    

    Using FlashVars this way, or setting query parameters in the SWF’s URL (TEN.SWF?theXML=client_user.xml), will fill in your loaderInfo.parameters field.


    I’m used to Flex (where the FlashVars are stored in application.parameters, but in AS3, I think you’d use the loaderInfo:

    // constructor
    public function init():void {
        theXML = this.loaderInfo.parameters.theXML;
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey everyone. While I'm trying to learn some PHP and mySQL, I ran into
Hey, I have 2 classes. When I'm trying to create an XML structure from
Hey everyone, I am trying to run the following program, but am getting a
Hey everyone. I'm trying to make a swing GUI with a button and a
Hey everyone, I am trying to figure out a way to query my mysql
Hey everyone, I'm working on a widget for Apple's Dashboard and I've run into
Hey everyone. The following is the code that I am using to play random
Hey everyone... I'm not too familiar with PHP... but I have PHP code that
Hey everyone, take a look at the code below and appreciate how messy the
Hey everyone, I am trying to ( temporarily! ) do some ASP.NET and C#

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.