Skip to main content
Participant
February 19, 2011
Pregunta

Help with AS3, loading multiple files into a movieclip in specific order in scrollbar

  • February 19, 2011
  • 1 respuesta
  • 1162 visualizaciones

Hello! I am in need of some advice. We are trying to build a site with these features:

Our site will be built in Actionscript 3.

1. A navigation menu that, when a button is clicked, will scroll the site quickly to a specific Y position using swfaddress.

2. The entire site is controlled by a flash scroll bar, which will be scrolling a single movieclip.
    2A. The movieclip will load content corresponding to the navigation categories, all which is organized into zipped files (using this to extract the contents of each section, example: about.zip for the about         section of the site)
    2B. The movieclip will load multiple zipped files one by one that correspond to the navigation, in order, making the site appear to be very tall.

**What we are in need of is understanding how to load multiple zipped files into a movie clip, in a specific order, and having them scroll between one another through the navigation. The separate navigation categories can be in movieclips instead of zipped files if that is easier.

Here is a reference of something that works like this: http://swfc-shanghai.com/#/about/

Este tema ha sido cerrado para respuestas.

1 respuesta

kglad
Community Expert
Community Expert
February 19, 2011

you want to load a zipped file into flash and then extract that zipped file inside flash and then do something with the unzipped file?

kcluteAutor
Participant
February 24, 2011

Hello kglad! I have set aside the idea of using zipped files, and am now just using multiple external swfs that I'd like to load into the movieclip in a specific order. Any thoughts?

I'm new to AS3, and I'm  attempting to create a scrolling movieclip that will load multiple  external files, in order, into that movieclip. I'm using XML as well. At  this point, nothing is loading into my movieclip (contentMain) and it's  a bit frustrating! Thank you for your help!

Current error: 1180: Call to a possibly undefined method load.

AS3:

//XML Loader
var myXML:XML = new XML();

myXML.ignoreWhite = true;

myXML.load ("master.xml");

myXML.onLoad =function(sucess) {

   if (sucess) {

contentMain.loadAll();{
     load("1_Overview.swf")
     load("2_Webcam.swf")
     load("3_Twounion.swf")
     load("4_Oneunion.swf")
     load("5_Retail.swf")
     load("6_Nearby.swf")
     load("7_Courtyard.swf")
     load("8_Map.swf")
     load("9_Conference.swf")
     load("10_News.swf")
     load("11_Sustainability.swf")
     load("12_Contact.swf")

addEventListener("complete",onLoad)
}
onLoad();{
//load all
}


     }else {


         trace("ERROR LOADING XML");

    }

}