Click to See Complete Forum and Search --> : Load External Images Into A Mask


tomyknoker
04-01-2007, 07:00 PM
I have 6 frame labels on my stage and on each one I have a mask animation, it's the same animation but on each frame label loads a different image, basicaly the image just fade's into the mask. I was hoping to try and do this with actionscript, just not sure how. Would also like to load the images externally too if possible... Anyone have any ideas?

tomyknoker
04-01-2007, 07:22 PM
so i am able to lad an image from a folder no problem and have it fade in, but can i make it fade into an mc which contains a mask? this is what i've got so far


var myNewClip = this.createEmptyMovieClip("mclsub", this.getNextHighestDepth());
var myNewLoader = new MovieClipLoader();
var myNewListener = new Object();
var myNewTest = "images" + 2 + ".jpg";

myNewListener.onLoadInit = function (mclsub) { // Create fade in function
trace("load init");
mclsub._alpha=0; // Make mc 'mcl' _alpha 0
mclsub.onEnterFrame=function(){ // Create new function
mclsub._alpha +=15; // Speed 15

if(mclsub._alpha >=100){
delete mclsub.onEnterFrame;
}
}
};

Stage.addListener(myNewListener);
myNewLoader.addListener(myNewListener);
myNewLoader.loadClip(myNewTest,myNewClip);