PDA

View Full Version : Fading External Images Onto Stage



tomyknoker
03-20-2007, 05:57 AM
Hi my Flash file loads 1 of 6 random images onto the stage when it loads using the following code, how can I make the random images fade onto the stage? Starting at alpha 0 and ending at 100?

[code]
var myClip = this.createEmptyMovieClip("mcl", this.getNextHighestDepth());
var myLoader = new MovieClipLoader();
var myListener = new Object();
var myTest = random(6) + ".jpg";
myListener.onLoadInit = function () {
trace("load init");
};

myLoader.addListener(myListener);
myLoader.loadClip(myTest,myClip);
[code]