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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:53:11+00:00 2026-05-14T06:53:11+00:00

I have a Flash slideshow that plays SWFs listed in an XML file. I

  • 0

I have a Flash slideshow that plays SWFs listed in an XML file. I would like to have the upcoming SWF load while the current one displays. I’ve tried all sorts of combinations of LoadMovie and LoadMovieNum, including creating an empty movie clip, but there’s something I’m just not getting.

Right now, after making the first round through all the files, it transitions smoothly from slide to slide, but I’d like for it to preload so that it transitions without the “Loading…” screen the first time around.

It can be viewed here: slideshow

Where should I put the LoadMovie line to load the next file (image[p+1]), and how should it look?

function loadXML(loaded) { 
if (loaded) { 
    xmlNode = this.firstChild; 
    image = []; 
    description = []; 
    total = xmlNode.childNodes.length; 
    for (i=0; i<total; i++) { 
    image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue; 
    description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue; 
} 
firstImage(); 
} else {
    content = "file not loaded!"; 
} 
}

xmlData = new XML(); 
xmlData.ignoreWhite = true; 
xmlData.onLoad = loadXML; 
xmlData.load("xmlfile.xml");

///////////////////////////////////// 

back_btn.onRelease = function ()
{
backImage();
};

next_btn.onRelease = function ()
{
nextImage();
};

p = 0;

function nextImage() {
if (p<(total-1)) {
    p++;
    trace(this);
    _root.mc_loadfile.loadMovie (image[p]);
    _root.movie_name.text = image[p];
    next_btn._visible = true;
    back_btn._visible = true;
    if (getBytesLoaded() == getBytesTotal())
        slideshow();
}

else if (p == (total-1)) {
    p = 0;
    firstImage();
}
}

function backImage() {
clearInterval(myInterval);
if (p>0) {
    --p;
    _root.mc_loadfile.loadMovie (image[p]);
    _root.movie_name.text = image[p];
    next_btn._visible = true;
    if (p != 0) {
        back_btn._visible = true;
    }
    else {
        back_btn._visible = false;
    }
    slideshow();
}
}

I’d appreciate any help.

  • 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-14T06:53:12+00:00Added an answer on May 14, 2026 at 6:53 am

    You can do it with the MovieClipLoader class. A brief tutorial can be found at actionscript.org, or you can check the docs on it.

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

Sidebar

Related Questions

i have a flash video called abc.swf that i would like to play when
I have a flash movie that loads images dynamically from an xml file. I
I have a flash .swf file that I embed on my webpage. On my
I have Flash application (main_container.swf) that loads another swf file (page1.swf). I want to
How can I have Flash reading XML ignore white spaces that would be ignored
I have a slideshow built in flash that I want to mimic in jQuery.
I have a Flash program that loads AS2 and AS3 SWF files dynamically with
I have flash animation (swf) in my HTML Page. Now, I like to have
I would like to have different style for different type of flash messages: error,
I have a flash program that loads movie clips dynamically and sometimes they want

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.