load movieclips sequentially

  • YvorL
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 12, 2006
  • Posts: 6
  • Status: Offline

Post October 31st, 2006, 3:40 am

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
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 31st, 2006, 3:40 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post October 31st, 2006, 7:56 am

then just wait untill a movie clip is loaded, and load the next one.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 50 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.