Hi,
You could always use movieClipLoader, like soor setInterval(), like soPHP Code:MyLoader = new MovieClipLoader();
MyListen = new Object();
MyLoader.addListener(MyListen);
MyLoader.onLoadStart = function(ContainerMC)
{
my.text = "0%";
};
MyLoader.onLoadProgress = function(ContainerMC)
{
L = Math.round(ContainerMC.getBytesLoaded());
T = Math.round(ContainerMC.getBytesTotal());
P = int(L / T * 100);
my.text = P + "%";
trace(P);
};
MyLoader.onLoadComplete = function(ContainerMC)
{
my.text = "Complete";
};
MyLoader.onLoadInit = function(ContainerMC)
{
// Now do things
};
MyLoader.loadClip("target.swf",ContainerMC);
PHP Code:function DoLoad()
{
ContainerMC._alpha = 0;
L = Math.round(ContainerMC.getBytesLoaded());
T = Math.round(ContainerMC.getBytesTotal());
P = int(L / T * 100);
my.text = P + "%";
if (P >= 100)
{
ContainerMC._alpha = 100;
my.text = "Complete";
clearInterval(DoLoader);
}
}
loadMovie("target.swf", ContainerMC);
DoLoader = setInterval(DoLoad, 100);




Reply With Quote