Ah ha! This is what Andrei meant by the strings may be causing the problem.
As far as I can tell, the declaring them MovieClips and the extra
createEmptyMovieClip at the beginning are the keys to making this work. I
made mine work for a single image. Now I have to figure out how to put it
all in a function that I can call multiple times. I just can't sit here
anymore tonight.

THANK YOU BOTH for the great help. I would have never figured this out on my
own.
Teresa

On 2/4/07, jason vancleave <[EMAIL PROTECTED]> wrote:


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

_______________________________________________
[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