rzazueta
05-24-2004, 07:15 PM
I just did a search through both the Flash MX and the ActionScript.org sites and am just not seeing what it is I'm doing wrong. But that's why there's a community for these things.
All I have is one frame with two movie clips being linked from the library. The first movie clip (col_sanders) is nothing but a single frame movie clip with a bitmap. The second movieclip, circMask, is nothing but a small black circle.
What I'm trying to do is load both dynamically and resize the circleMask dynamically. To test it, I've written the following code on the first frame of the main stage:
_root.attachMovie("col_sanders", "movie1", 1);
_root.attachMovie("circMask", "mask1", 2);
_root.movie1.setMask(_root.mask1);
_root.mask1._width = 360;
_root.mask1._height = 360;
All I keep getting, though, is a black circle the size I specified sitting on top of my JPG image -- absolutely no masking. Am I insane? What am I doing wrong?
Thanks!
Rob Z.
All I have is one frame with two movie clips being linked from the library. The first movie clip (col_sanders) is nothing but a single frame movie clip with a bitmap. The second movieclip, circMask, is nothing but a small black circle.
What I'm trying to do is load both dynamically and resize the circleMask dynamically. To test it, I've written the following code on the first frame of the main stage:
_root.attachMovie("col_sanders", "movie1", 1);
_root.attachMovie("circMask", "mask1", 2);
_root.movie1.setMask(_root.mask1);
_root.mask1._width = 360;
_root.mask1._height = 360;
All I keep getting, though, is a black circle the size I specified sitting on top of my JPG image -- absolutely no masking. Am I insane? What am I doing wrong?
Thanks!
Rob Z.