Here's what I do:

this.stop();
//
var mcImageWindow:MovieClip;
var mcImageContent:MovieClip;
var mcImageMask:MovieClip;
var mcl:MovieClipLoader = new MovieClipLoader();
//
mcl.addListener(this);
//
mcImageWindow = this.createEmptyMovieClip("mcImageWindow",
this.getNextHighestDepth());
mcImageContent = mcImageWindow.createEmptyMovieClip("mcImageWindow",
mcImageWindow.getNextHighestDepth());
mcl.loadClip("image.jpg", mcImageContent);
//
function onLoadInit() {
        mcImageMask = mcImageWindow.attachMovie("mcImageMask", "mcImageMask",
mcImageWindow.getNextHighestDepth());
        mcImageWindow.setMask(mcImageMask);
}



heres a sample of the above code:
http://www.jasonvancleave.com/examples/mask.zip



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to