load movieclips sequentially

  • YvorL
  • Newbie
  • Newbie
  • YvorL
  • Posts: 6

Post 3+ Months Ago

I'm making a big flash movie which contains many separate flash files ( like a big puzzle and it's pieces ), but I want to load these files sequentially. So when the first movie has been loaded than it starts loading the second. Here's a piece from the AS:

var arrPaths:Array = new Array();
for (var k:Number=1;k<=9;++k) arrPaths.push(k+".swf");
var arrX:Array = new Array();
var arrY:Array = new Array();
load_btn.onRelease = function () {
for (i=0; i<nSwfCount; i++)
{
crtSwf = mcHolder.createEmptyMovieClip("swfHolder"+i, i);
crtSwf.loadMovie(arrPaths[i]);
crtSwf._x = arrX[i];
crtSwf._y = arrY[i];
}
}

Thank you,
YvorL
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

then just wait untill a movie clip is loaded, and load the next one.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.