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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:42:44+00:00 2026-05-13T17:42:44+00:00

I am writing a bit of actionscript that loads an xml file and displays

  • 0

I am writing a bit of actionscript that loads an xml file and displays movie clips etc.. appropriately on the stage. However I have come to bit of problem where i want to reset the display via a function through loading a different xml file. I have loaded the new file but the display doesn’t change as if its still loaded the previous xml.

Below is the first bit of code that loads the first xml object and runs my function that alters the mcs on the stage.

function CallLineFunction1() {
 xmlFile1="test.xml"
 // set up XML object
 var my_xml1 = new XML();
 my_xml1.ignoreWhite = true;
 my_xml1.onLoad = function(success){ 
 generateRW(my_xml1);
 }
 // load xml into object
 my_xml1.load(xmlFile1); 
}

This works fine. However on the click of a button, I want to load a new xml file to again alter the mcs on the stage. I am using this code to do this:

function CallLineFunction2() {
 xmlFile2="with_disruption_statuses.xml"
 // set up XML object
 var my_xml2 = new XML();
 my_xml2.ignoreWhite = true;
 my_xml2.onLoad = function(success){ 
 generateRW2(my_xml2);
 }
 // load xml into object
 my_xml.load(xmlFile2); 
}

Whilst I’ve tested that my second generateRW2 statement is run (which it is) the display stays the same using the attributes of the old xml.

I’ve tried using the delete command but to no avail,

I’m hoping I don’t have to copy everything to a second frame and run it from there as there are multiple layers and hundreds of mcs that require alteration depending on the xml data.

Any help appreciated!

  • 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-13T17:42:45+00:00Added an answer on May 13, 2026 at 5:42 pm

    Without seeing generateRW and generateRW2, it’s hard to tell what the issue is. However, there are a few things to look for: make sure your previously-loaded movie clips are being removed from the stage, and if you don’t want to remove them, make sure you’re using unique IDs for the clips.

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

Sidebar

Related Questions

I'm writing a bit of LINQ to SQL that needs to perform a search
I am writing a small application with Qt 4.6 (64-bit Arch Linux, though that
I'm writing a bit of code that I want to populate a TreeView, which
I am writing a bit of code that appends my site nav with and
I'm writing a bit of code that will open a MessageBox on a separate
I'm current writing a short bit of code that will compare an etag for
I am writing an encryption application that requires a 64 bit key. I am
So I'm writing a bit of code that needs to raise a function's return
I'm writing a bit of logic that requires treating null dates as meaning forever
I'm writing a bit value to a database in the CheckboxProcess_CheckedChanged event. However, nothing

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.