have a big problem with one site that have just finished.
i’m not a master in action scripting, i used a simple image loader class with action script 2 with preloader, it works well, preloads and loads the image perfectly.
the problem is that after a while (maybe 1 mn) the image disappers.
here is the code i used:
[COLOR=Red]bar2._visible = false;
per2._visible = false;
this.createEmptyMovieClip(“container2”, “100”);
my_mc2= new MovieClipLoader();
preload2 = new Object();
my_mc2.addListener(preload2);
preload2.onLoadStart = function(targetMC2) {
//trace("started loading "+targetMC);
container2._visible = false;
bar2._visible = true;
per2._visible = true;
pText2._visible = true;
};
preload2.onLoadProgress = function(targetMC2, l2Bytes, t2Bytes) {
bar2._width = (l2Bytes/t2Bytes)*100;
per2.text= "Loading: % "+Math.round((l2Bytes/t2Bytes)*100);
};
preload2.onLoadComplete = function(targetMC2) {
targetMC2._visible = true;
targetMC2._alpha = 0;
targetMC2.onEnterFrame= function(){targetMC2._alpha+=10};
per2._visible = false;
bar2._visible = false;
pText2._visible = false;
//trace(targetMC+" finished");
};
my_mc2.loadClip(“img/01.jpg”, “ima”);
//default image
b1.onPress=function(){my_mc2.loadClip(“img/01.jpg”, “ima”);}
b2.onPress=function(){my_mc2.loadClip(“img/02.jpg”, “ima”);}
b3.onRelease=function(){my_mc2.loadClip(“img/03.jpg”, “ima”);}
b4.onRelease=function(){my_mc2.loadClip(“img/04.jpg”, “ima”);}
b5.onRelease=function(){my_mc2.loadClip(“img/05.jpg”, “ima”);}
b6.onRelease=function(){my_mc2.loadClip(“img/06.jpg”, “ima”);}
[COLOR=Black]please can someone help me!!:pa:[/COLOR]
[/COLOR]