I’m trying to preload a movie inside a MC now how can re-use this code to preload other movies in different MC in someway that i need only to change this line of code:
mcl.loadClip(“movie1.swf”, e1_mc);
mcl.loadClip(“movie2.swf”, e2_mc);
mcl.loadClip(“movie3.swf”, e3_mc);
mcl.loadClip(“movie4.swf”, e4_mc);
My knowledge of flash and AS is basic so I don’t know how to do it thank you for any help :hangover:
My code:
this.createEmptyMovieClip("e_mc", 2)
//controlar la pocicion
with(_root.e_mc){
_x=300
_y=300};
var mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mcl.addListener(mclListener);
mclListener.onLoadProgress = function(e_mc, bl, bt)
{
var percentage = Math.round(bl / bt * 100);
trace(percentage);
};
mclListener.onLoadComplete = function(e_mc)
{
// do what you want
trace("finished!");
};
mcl.loadClip("movie2.swf", e_mc);