View Full Version : loadClip error...

03-20-2007, 02:41 AM
Hi all,

When I run this on my timeline it works fine

mcl.loadClip(Math.floor(Math.random() * 6) + ".jpg", this);

I changed the code so that it will load a specific image but when I run this it gives me an error! Any ideas?

mcl.loadClip(Math.floor("1.jpg", this);

This is the fucntion at the beginning of my movie, but don't need to change that just need to edit the above line...

var mcl:MovieClipLoader = new MovieClipLoader();

function onLoadInit(targ:MovieClip):Void
// Fade to 100 in 3 seconds using the easeoutquad tween
targ.alphaTo(100, 3, "easeoutquad");

// Start the MCL working

03-20-2007, 11:43 AM
here, paste this one in - you need to get rid of the math floor bit
(this is for flash 8 - if your using something else you should be able to figure out the subtle equivelent)